[lkml]   [2000]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: shm swapping in 2.4 again
Hi Rik,

On Wed, 15 Nov 2000, Rik van Riel wrote:
> On 15 Nov 2000, Christoph Rohland wrote:
> You really want to have it in the swap cache, so we have
> a place for it allocated in cache, etc...
> Basically, when we unmap it in try_to_swap_out(), we
> should add the page to the swap cache, and when the
> last user stops using the page, we should push the
> page out to swap.

So in shm_swap_out I check if the page is already in the swap
cache. If not I put the page into it and note the swap entry in the
shadow pte of shm. Right?

So does the page live all the time in the swap cache? This would lead
to a vastly increased swap usage since we would have to preallocate
the swap entries on page allocation.


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

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