svn commit: samba r13770 - in branches/SAMBA_4_0/source/lib/util: .

tridge at samba.org tridge at samba.org
Thu Mar 2 04:09:06 GMT 2006


Metze,

 > - do fsync() on the debug fd, as we do in samba3,
 >   I have an report that smbd memory usage grows to 1,5 GB or more
 >   without this...

fsync() reduces memory usage?? are you sure? That makes no sense to
me.

I'd expect that the only affects those fsync() calls would have are:

 1) slow down smbd a lot, especially when running with a high debug
    level

 2) ensure that if the OS crashes hard or has a power failure that we
    don't lose any debug logs

fsync() will make dirty pages into clean cached pages, but the kernel
will do that anyway under memory pressure, so all you're doing is
paying the price of moving the disk head far more than you otherwise
would.

Cheers, Tridge


More information about the samba-cvs mailing list