From owner-freebsd-hackers Tue Nov 18 14:26:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA29371 for hackers-outgoing; Tue, 18 Nov 1997 14:26:28 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA29363 for ; Tue, 18 Nov 1997 14:26:22 -0800 (PST) (envelope-from devet@adv.IAEhv.nl) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 17997 on Tue, 18 Nov 1997 22:26:14 GMT; id WAA17997 efrom: devet@adv.IAEhv.nl; eto: hackers@freebsd.org Received: (from devet@localhost) by adv.IAEhv.nl (8.8.7/8.8.6) id XAA14266 for hackers@freebsd.org; Tue, 18 Nov 1997 23:25:47 +0100 (CET) From: Arjan de Vet Message-Id: <199711182225.XAA14266@adv.IAEhv.nl> Subject: caching only directory disk blocks To: hackers@freebsd.org Date: Tue, 18 Nov 1997 23:25:47 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 URL: http://www.IAEhv.nl/users/devet/ for PGP key: finger devet@IAEhv.nl