Thread (8 messages) 8 messages, 3 authors, 2001-01-08

Re: Subtle MM bug

From: Rik van Riel <hidden>
Date: 2001-01-08 18:21:10

On Mon, 8 Jan 2001, Linus Torvalds wrote:
On Mon, 8 Jan 2001, Rik van Riel wrote:
quoted
On Sun, 7 Jan 2001, Linus Torvalds wrote:
quoted
	/*
	 * Too many active pages? That implies that we don't have enough
	 * of a working set for page_launder() to do a good job. Start by
	 * walking the VM space..
	 */
	if ((nr_active_pages >> 1) > total_pages)
		swap_out();
That _is_ the problem the above will fix. Don't read
"page_launder()" there: it's more meant to be "this is the old
code that does page_launder() etc.."

Trust me. Try my code. It will work.
Except for the small detail that pages inside the processes
are often not on the active list  ;)

But I agree with your idea that we really should make sure
we have enough pages available to choose from when swapping
stuff out.

regards,

Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

		http://www.surriel.com/
http://www.conectiva.com/	http://distro.conectiva.com.br/

--
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