Re: kernel 2.6.22: what IS the VM doing?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux kernel Mailing List <linux-kernel@...>
Date: Tuesday, September 4, 2007 - 9:37 pm

Sami Farin wrote:

That means the pageout code was scanning about 70000 pages
per second on your system during peak stress.  You may have
run into a scalability problem in the Linux kernel, where it
wants to clear the referenced bit off all the anonymous pages
before swapping something out.

To make matters worse, that unlucky page gets chosen because
it was the page where kswapd started scanning.  It has little
to do with being the least recently used page, because every
anonymous page tends to have its referenced bit set by the time
we start scanning.

On truly enormous systems, say with 256GB of memory, kswapd
sometimes needs to scan hundreds of thousands or even millions
of pages before finding something to swap out.  Not fun.


Is the system trying to evict pages like crazy when your
system becomes unusable?

If so, I wonder if kswapd is simply doing the wrong thing
and trying to evict data from all zones, simply because the
highmem zone is low on free pages...

-- 
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kernel 2.6.22: what IS the VM doing?, Sami Farin, (Thu Aug 30, 7:54 am)
Re: kernel 2.6.22: what IS the VM doing?, Rik van Riel, (Tue Sep 4, 9:37 pm)
Re: kernel 2.6.22: what IS the VM doing?, Sami Farin, (Wed Sep 5, 7:45 am)
Re: kernel 2.6.22: what IS the VM doing?, Rik van Riel, (Wed Sep 5, 12:24 pm)
Re: kernel 2.6.22: what IS the VM doing?, Sami Farin, (Wed Sep 5, 1:33 pm)
Re: kernel 2.6.22: what IS the VM doing?, Rik van Riel, (Wed Sep 5, 6:48 pm)
Re: kernel 2.6.22: what IS the VM doing?, Sami Farin, (Fri Sep 14, 1:17 pm)
Re: kernel 2.6.23: what IS the VM doing?, Sami Farin, (Fri Nov 2, 10:36 am)