Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 1995 11:36:16 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        davidg@Root.COM, terry@cs.weber.edu
Cc:        current@FreeBSD.org
Subject:   Re: more ETXTBSY bugs
Message-ID:  <199503070136.LAA02797@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>   It's never a good idea to not use free memory for file caching. Using
>memory for file caching that is currently being used to cache VM pages may
>not be such a good idea. We've tried several different approaches - the
>current scheme is escentially to not disturb pages that have faulted in
>and only use memory that would otherwise be free. This sets the upper limit.
>The lower limit comes from the fact that pages are always allocated when
>needed for buffers (even if these pages have to come from a process's VM);
>thus the total number of buffers sets a lower limit on how small the cache
>can shrink. This number is currently about 5% of memory, and we our currently
>considering increasing this to 10%.

Actually, the lower limit is about 0.5% of memory.  On my 16MB system,
there are only 178 buffers, so if all buffers have size 512, then they
only hold 89K.  All buffers may have size 512 if the most-used file system
has a block size of 512 or a fragment size of 512 and there are a lot of
fragments.

Bruce



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