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 -
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| David Miller | Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Jens Axboe | [PATCH 10/10] Add CONFIG_DEBUG_SG sg validation |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
git: | |
