Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 1997 23:25:47 +0100 (CET)
From:      Arjan de Vet <Arjan.deVet@adv.IAEhv.nl>
To:        hackers@freebsd.org
Subject:   caching only directory disk blocks
Message-ID:  <199711182225.XAA14266@adv.IAEhv.nl>

next in thread | raw e-mail | index | archive | help
Would it be possible to create a mount option (or something else) which
would only cache disk blocks from directories and not disk blocks from
'normal' files?  Or give the former precedence over the latter for staying
in the buffer cache?

The reason why I'm asking this? I'm currently playing with the Squid
proxy-cache to improve its usage of the file system cache. For
applications like Squid it's very important to keep as much directory
blocks in the buffer cache as possible. Caching of 'normal' files doesn't
make any sense because Squid has its own hot-object cache and most file
access is too random anyway in order for the buffer cache to be useful.

Arjan

-- 
Arjan de Vet, Eindhoven, The Netherlands            <Arjan.deVet@adv.IAEhv.nl>
URL: http://www.IAEhv.nl/users/devet/       for PGP key: finger devet@IAEhv.nl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711182225.XAA14266>