Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 1996 12:43:33 +0900 (JST)
From:      Michael Hancock <michaelh@cet.co.jp>
To:        Julian Assange <proff@suburbia.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: attribute/inode caching
Message-ID:  <Pine.SV4.3.93.960915123640.12726D-100000@parkplace.cet.co.jp>
In-Reply-To: <199609141052.UAA25565@suburbia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Sep 1996, Julian Assange wrote:

> 
> What is the present status of attribute/inode/directory caching under
> freebsd? When performing a 'du' of even a relatively small hierarachy,
> the second 'du' appears no faster than the first and the drive can be
> heard to thrash around in exactly the same manner.

There's a per-process directory cache that benefits things like 'ls' in
large directories.  It just stores the offset of the last successful
search in the directory.  If the next search is in the same directory then
it starts at the cached offset. 

You can watch the namei cache and the per-process directory cache using
systat -vmstat.

The workings of the inode cache is a different story.

Regards,


Mike Hancock




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.93.960915123640.12726D-100000>