Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 1998 18:57:08 +0100
From:      "Stephen C. Tweedie" <sct@redhat.com>
To:        MOLNAR Ingo <mingo@valerie.inf.elte.hu>
Cc:        "Stephen C. Tweedie" <sct@redhat.com>, poipoi@famipow.com, freebsd-fs@FreeBSD.ORG, linux-fsdevel@vger.rutgers.edu
Subject:   Re: name cache wiping in readdir ?
Message-ID:  <199808241757.SAA25353@dax.dcs.ed.ac.uk>
In-Reply-To: <Pine.GSO.3.96.980824155142.9210B-100000@valerie.inf.elte.hu>
References:  <199808240934.KAA21958@dax.dcs.ed.ac.uk> <Pine.GSO.3.96.980824155142.9210B-100000@valerie.inf.elte.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Mon, 24 Aug 1998 15:53:51 +0200 (MET DST), MOLNAR Ingo
<mingo@valerie.inf.elte.hu> said:

> On Mon, 24 Aug 1998, Stephen C. Tweedie wrote:

>> One thing which I would like to try (we did it in earlier versions of
>> the primitive name cache in 2.0) is a two-level name cache, where we
>> promote names up to the next level on a hit and demote them when we want
>> to emply a list. [...]

> we have dentry aging which should take care of these issues. Whenever we
> reply to memory pressure, we are more likely to free unused dentries.

Yes.  The multi-level architecture is just an optimisation which lets us
deal with the common "find" special case without flushing _any_ of our
established dcache entries.  With an aging mechanism, the best that
happens is that a find leaves active entries alone but still ages and
eventually flushes out the initial contents of the cache.

--Stephen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message



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