[Top] [All Lists]

[PATCH 0/3] xfs: buffer cache shrinker overhaul V2

To: xfs@xxxxxxxxxxx
Subject: [PATCH 0/3] xfs: buffer cache shrinker overhaul V2
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 29 Nov 2010 11:58:56 +1100
This series adds a per-filesystem LRU to the buffer cache. When
combined with a shrinker per filesystem, this enables us to
prioritise reclaim of buffers under memory pressure. This solves the
current problem of page cache reclaim having no concept of what the
pages actually contain in deciding which pages to reclaim.

The LRU is lazily updated, meaning that we only access the LRU
lists and locks when the last reference to a buffer goes away. As a
result, there is no impact to the hot buffer lookup path and we are
not constantly moving buffers around in the LRU.

This series effectively means that the buffer cache can now be made
independent of the page cache as we now have our own optimised
buffer cache reclaim mechanisms.

Version 2:

- removed buffer lru addition during xfs_buf_find() as it is done
  lazily on the last reference going away.
- removed buffer type additions and used the existing macro to just
  set the reference value.

<Prev in Thread] Current Thread [Next in Thread>