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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 11 03:24:41 UTC 2018


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

--- Comment #15 from Thomas Hurst <tom at hur.st> ---
As for the use-case, here's the initial report:

> I'm seeing really, *REALLY* bad performance from stat(1) on FreeNAS. Case in point: a `find . -print0 | xargs -0 shasum >file.sha` takes about 7.5h on dirtree with 1.9TiB and 24.5M
>
> while a `find . -print0 | xargs -0 stat -f '%d %i %#p %l %u %g %r %z %a %m %c %B %k %b %f %N%SY' >file.stat` takes 21 hours
>
> almost TRIPLE the time for reading just the metadata versus reading ALL THE DATA, seems really weird!

Seems like they were making a catalogue of the metadata of a large set of small
files.

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


More information about the freebsd-bugs mailing list