:       I notice that this option is off by default. Can you give a general idea
:of when it should be enabled, when it should be disabled, and what bad
:things might result with it on? 

    There's no downside, really.  The directory cache is so tiny without
    it that you can't lose.  Even the wasteage from caching small directories
    becomes irrelevant -- for several reasons.  First, wasting a little bit
    of ram is worth it if it saves a disk seek.  It saves lots of disk seeks.
    Second, people forget that the namei cache is the first line of defense
    for the system, not the directory block cache.  Most programmatic small
    directory accesses directly reference specific files rather then scan
    the directory.  Human-based accesses often scan the directory (do
    an 'ls'), but the memory footprint for a human is huge in comparison to
    a single page of directory cache.  Scanning whole filesystems with 'find'
    tend to not be cacheable anyway, and since the cache pages get recycled
    you don't actually waste any more ram for that case either.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to