lkml.org 
[lkml]   [1999]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: buffer cache behavior on memory-constrained systems (fwd)
On Sat, 27 Mar 1999, Andrea Arcangeli wrote:
> Note that you should also revert to freeing at least the freelist (this is
> the reason Linus posted the patch against 2.2.4) and all other lru-list if
> the BUF_CLEAN is empty.
>
> But more important you could have the first entry in the lru list not
> freeable (don't ask me why ;), and in such case you would have big
> stability problems.

in which case you'd probably see some "out of memory" errors.

> Note that in ftp://e-mind.com/pub/linux/andrea-tree/2.2.4_andrea3.bz2 I am
> just freeing pages in shrink_mmap() in perfect lru basis (taking care also
> of buffer aging). But I am doing it at the pagemap level. I see it far
> more clean and general. I am touching the buffer not in bread but in
> get_hash_table and in getblk if the buffer is not found in the hash table.

nice work, andrea...

i've only tried this patch for a short time, but it seems to exhibit lots
of desirable characteristics when memory becomes constrained. i'll take a
closer look at it as soon as i have time.

- Chuck Lever
--
corporate: <chuckl@netscape.com>
personal: <chucklever@netscape.net> or <cel@monkey.org>

The Linux Scalability project:
http://www.citi.umich.edu/projects/citi-netscape/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.055 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site