Thread (1 message) 1 message, 1 author, 2000-06-07

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

From: Stephen C. Tweedie <hidden>
Date: 2000-06-07 14:43:50

Hi,

On Wed, Jun 07, 2000 at 04:29:15PM +0200, Christoph Rohland wrote:
quoted
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?
It's also trivial: just maintain a struct address_space for each
shm segment, and put the shm segment address in the address_space->
host field.  Index each shm page against that address_space and
the VM will be able to find you for any callbacks it needs to make,
and you will be able to find the shm segment from that.

Cheers,
 Stephen
--
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help