From owner-freebsd-hackers Tue Nov 18 15:01:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA02561 for hackers-outgoing; Tue, 18 Nov 1997 15:01:46 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA02551 for ; Tue, 18 Nov 1997 15:01:40 -0800 (PST) (envelope-from mrcpu@cdsnet.net) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.6/8.8.6) with SMTP id PAA26344; Tue, 18 Nov 1997 15:01:32 -0800 (PST) Date: Tue, 18 Nov 1997 15:01:32 -0800 (PST) From: Jaye Mathisen To: Arjan de Vet cc: hackers@FreeBSD.ORG Subject: Re: caching only directory disk blocks In-Reply-To: <199711182225.XAA14266@adv.IAEhv.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Not sure how useful this would be. If the object is hot, who cares if it's directory blocks or file data blocks? It's just important that it be in RAM, and not on disk. Although it might be an interesting tweak. On Tue, 18 Nov 1997, Arjan de Vet wrote: > 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 >