fstat on Linux in glibc is slow !

Christof Schmitt cs at samba.org
Fri Sep 15 15:54:49 UTC 2023


On Thu, Sep 14, 2023 at 11:46:26AM -0700, Jeremy Allison via samba-technical wrote:
> https://lwn.net/SubscriberLink/944214/ca0c0f366ada686a/
> 
> Maybe an easy performance win if we use a replacement
> for fstat until this gets into glibc ?
> 
> We use fstat a lot and assumed it was fast.

So just call syscall(SYS_fstat, ...) in sys_fstat? That would be an easy
change.  Demonstrating that this has a performance impact would be the
difficult part.

Chhristof



More information about the samba-technical mailing list