Re: [PATCH] VM kswapd autotuning vs. -ac7

Christoph Rohland
2000-06-07T14:29:15Z

Rik van Riel <riel@conectiva.com.br> writes:
> Basically we need 2 things from the shm code, then I'll
> be able to adapt shrink_mmap with a few minutes of work ;)
>
> 1) shm pages should be marked as such so we can recognise them

O.K. this is trivial.

> 2) we need to be able to swap out shm pages (maybe just
> call a page->mapping->swapout() function?) by knowing just
> the page

This is not that easy. I need a backreference to the shm segment and
the index into it to be able to note the new pte entry. Do you know
where we could put these?

Greetings
Christoph