[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/