Samba and MS Shadow Copy
kcross at nssolutions.com
Tue Aug 5 12:24:43 GMT 2003
> > 2. The VFS routine for "stat" includes a cache for file
> stats. Samba
> > has a HUGE amount of stat requests going on. This code
> will keep the
> > stat in cache for one second. A lot of operations (open
> with create,
> > unlink, etc.) will invalidate the cache. Tests have shown NetBench
> > operations get a 70% cache hit. (!)
> Interesting... Is this of a general use?
Yes. It comes with no warranty, though. :-)
> > 3. I've abused the "log level" parameter to add a new parameter to
> > smb.conf without mucking with loadparam. See the vfs_alfs_init
> > routine. The "statcache_size" isn't really a debug level, it's a
> > value to override a default value. So
> > log level = 2 statcache_size:100
> > will set statcache_size in the DEBUGLEVEL_CLASS array (see
> > Then I
> > use:
> > i = ( DEBUGLEVEL_CLASS_ISSET[ alfs_statcache_index ] ?
> > DEBUGLEVEL_CLASS[ alfs_statcache_index ] :
> > DEFAULT_STATCACHE_SIZE );
> > to retrieve the value or, if not set, use a default value.
> This is incorrect use. For proper specification of your VFS
> module (and other modules' too) parameters use parametric
> options API instead.
Yep, it is absolutely incorrect use. I was lazy. Sorry.
But you're right -- I'll change it to use a parametric option.
> / Alexander Bokovoy
> You had mail, but the super-user read it, and deleted it!
More information about the samba-technical