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

Re: [PATCH,incomplete] shm integration into shrink_mmap

From: Juan J. Quintela <hidden>
Date: 2000-06-08 15:21:30

quoted
quoted
quoted
quoted
"christoph" == Christoph Rohland [off-list ref] writes:
Hi christoph

christoph> Here is my first proposal for changing shm to be integrated into
christoph> shrink_mmap.

christoph> It gives you a function 'int shm_write_swap (struct page *page)' to
christoph> write out a page to swap and replace the pte in the shm structures.  I
christoph> tested the stuff with no swapping and it seems stable so far. But
christoph> shm_write_swap is completely untested.

christoph> It probably needs to add the pages in shm_nopage_core to your lru
christoph> queues and of course it needs the calls from shrink_mmap.

christoph> I think it would be nicer to only have a notify function instead of
christoph> shm_write_swap, which gets the page and the swap_entry and can simply
christoph> put the swap_entry into the shm structures without handling the
christoph> swapping at all.

christoph> What do you think?
christoph>         		Christoph

It lacks the cleanup of the SHM page bit :)))
But it looks great so far.  I am working just now it the shrink_mmap
integration.

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy
--
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