[Bug 230491] stat(1): Improve performance with getpwuid() and getgrgid() caching

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 11 01:51:42 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230491

--- Comment #7 from Garance A Drosehn <gad at FreeBSD.org> ---
(In reply to Conrad Meyer from comment #4)

Just how much overhead is there in IPC?  It's easy to see that a local cache
will beat the caching done by a separate nscd process, but why would using nscd
be so much slower than doing a totally non-cached look up of the user and group
names each time?  Doesn't that seem a little odd?

And the local-to-stat caching:  won't that only help if many commands are
'stat'-ed in a single command, as opposed to doing many stat-commands with one
file per command?

Does 'ls' do local caching?  If there is a big benefit in doing local-caching
in 'stat', should we also do it with 'ls'?  I know I do a lot more 'ls -l's
than I do 'stat'-commands of any kind.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list