Re: updatedb

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rene Herman <rene.herman@...>
Cc: Jesper Juhl <jesper.juhl@...>, Andika Triwidada <andika@...>, Robert Deaton <false.hopes@...>, <linux-kernel@...>, ck list <ck@...>, <linux-mm@...>
Subject: Re: updatedb
Date: Friday, July 27, 2007 - 5:26 am

On Fri, 2007-07-27 at 10:28 +0200, Rene Herman wrote:

I haven't rummaged around in the VM in quite a long while, so don't know
exactly where the balance lies any more, and have never looked at
swap-prefetch, but the mechanism of how swap-prefetch can help the
"morning after syndrome" seems simple enough:

Reclaim (swapout) a slew of application pages because there are
truckloads of utterly bored pages laying about when updatedb comes along
and introduces memory pressure in the middle of the night.  Updatedb
finishes, freeing some ram (doesn't matter how much) swap-prefetch
detects idle CPU, and begins faulting swapped out pages back in.  In the
process of doing so, memory pressure is generated, and now these freshly
accessed pages are a less lovely target than the now aging VFS caches
that updatedb bloated up, so they shrink back down enough that the
balance you had before updatedb ran is restored... with the notable
exception that cached data is now toast, so what you gained by faulting
god knows how frequently used pages back in isn't _necessarily_ going to
help you.  Heck, it could even step on what was left of your cached
working set after updatedb finished.


I like Andrew's mention of a future option... put that sucker and
everybody who looks like him in a resource limited container.

	-Mike

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
updatedb, Rene Herman, (Wed Jul 25, 11:59 pm)
Re: updatedb, Bongani Hlope, (Thu Jul 26, 2:39 am)
Re: updatedb, Rene Herman, (Thu Jul 26, 2:56 am)
Re: updatedb, Björn, (Thu Jul 26, 5:58 am)
Re: updatedb, Rene Herman, (Thu Jul 26, 7:00 am)
Re: updatedb, Björn, (Thu Jul 26, 6:23 am)
Re: updatedb, Bongani Hlope, (Thu Jul 26, 3:08 am)
Re: updatedb, Rene Herman, (Thu Jul 26, 4:01 am)
Re: updatedb, Bongani Hlope, (Thu Jul 26, 5:25 pm)
Re: updatedb, Andika Triwidada, (Thu Jul 26, 2:23 am)
Re: updatedb, Jesper Juhl, (Thu Jul 26, 8:46 pm)
Re: updatedb, Rene Herman, (Fri Jul 27, 2:00 am)
Re: updatedb, Mike Galbraith, (Fri Jul 27, 3:54 am)
Re: updatedb, Rene Herman, (Fri Jul 27, 4:28 am)
Re: updatedb, Mike Galbraith, (Fri Jul 27, 5:26 am)
Re: updatedb, Rene Herman, (Fri Jul 27, 7:09 am)
Re: updatedb, Mike Galbraith, (Fri Jul 27, 7:48 am)
Re: updatedb, Rene Herman, (Fri Jul 27, 8:28 am)
Re: updatedb, Tilman Schmidt, (Fri Jul 27, 9:32 am)
Re: updatedb, Rene Herman, (Thu Jul 26, 3:49 am)
Re: updatedb, Andika Triwidada, (Thu Jul 26, 5:37 am)