[lkml]   [2001]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: need help interpreting 'free' output.
Linus Torvalds <> writes:

> HOWEVER, _then_ I started wondering about whether the thing needs to be
> removed from the swap cache at all, and came to the conclusion that for
> the only case we really care about (and the only case where we _can_
> re-use the swap cache page), we don't actually need to remove it from the
> cache in the first place.

There is a second case, though you may be handling it differently now.
Typically the case is swap < RAM. But basically when we don't have
enough have enough swap pages it pays to drop pages from the swap
cache. So in as many places as we can figuring out how to drop
swap pages when the swap space is practically full is important.

The other alternative implementation is to create a logical backing
store for anonymous pages (so the don't need a presence in the page
table) and then we could just walk that backing store and free up swap
space on demand. Though if you can put anonymous pages in the page
cache now, a variation on that idea may be possible. We don't
want to remove the swap from pages that aren't in ram.

> Does anybody see why we have to remove it from the swap cache at all?

Not just for cow.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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