Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Monday, June 9, 2008 - 6:44 am

On Sun, 8 Jun 2008 23:10:53 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:


That is certainly an option.  We'll still need to keep track of
what kind of page the page is, though, otherwise we won't know
whether or not we can put it back onto the LRU lists at munlock
time.
 

The database shared memory segment got swapped out and the
system crawled to a halt.

Swap IO usually is less efficient than page cache IO, because
page cache IO happens in larger chunks and does not involve
a swap-out first and a swap-in later - the data is just read,
which at least halves the disk IO compared to swap.

Readahead tilts the IO cost even more in favor of evicting
page cache pages, vs. swapping something out.


Swapping out the database shared memory segment is not an option,
because it is mlocked.  Even if it was an option, swapping it out
would be a bad idea because swap IO is simply less efficient than
page cache IO (see above).


Removing mlocked pages from the LRU can be done, but I suspect
we'll still want to keep track of how many of these pages there
are, right?


I'll add more problem descriptions to the next patch submission.
I'm halfway the patch series making all the cleanups and changes
you suggested.


Try running a database with swappiness=100 and then doing a
backup of the system simultaneously.  The database will end
up being swapped out, which slows down the database, causes
extra IO and ends up slowing down the backup, too.

The backup does not benefit from having its data cached,
since it only reads everything once.


That's a problem.  I can run tests on the VM patches, but you know
as well as I do that the code needs to be shaken out by lots of
users before we can be truly confident in it...


I sure hope so.

I'll send you a cleaned-up patch series soon.  Hopefully tonight
or tomorrow.

-- 
All rights reversed.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Fri Jun 6, 1:28 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Fri Jun 6, 6:05 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 1:34 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Sun Jun 8, 1:57 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, KOSAKI Motohiro, (Sun Jun 8, 2:07 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 2:32 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 3:03 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Sun Jun 8, 4:22 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 4:34 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Sun Jun 8, 4:54 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 5:56 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Sun Jun 8, 7:58 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Sun Jun 8, 10:44 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Sun Jun 8, 11:10 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Mon Jun 9, 6:44 am)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Christoph Lameter, (Tue Jun 10, 12:17 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Tue Jun 10, 12:37 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Rik van Riel, (Tue Jun 10, 1:09 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Tue Jun 10, 2:33 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andi Kleen, (Tue Jun 10, 2:48 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Dave Hansen, (Tue Jun 10, 3:05 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Paul Mundt, (Tue Jun 10, 10:09 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andrew Morton, (Tue Jun 10, 11:16 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Paul Mundt, (Tue Jun 10, 11:29 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andi Kleen, (Wed Jun 11, 5:06 am)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andy Whitcroft, (Wed Jun 11, 12:03 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Andi Kleen, (Wed Jun 11, 1:52 pm)
Re: [PATCH -mm 13/25] Noreclaim LRU Infrastructure, Christoph Lameter, (Wed Jun 11, 4:25 pm)