Messages in this thread | | | Date | Sun, 10 May 2009 22:29:38 +0100 | From | Alan Cox <> | Subject | Re: [PATCH -mm] vmscan: make mapped executable pages the first class citizen |
| |
> Our big problem today usually isn't throughput though, > but latency - the time it takes to bring a previously > inactive application back to life.
But if you page back in in 2MB chunks that is faster too. The initial "oh dear we guessed wrong and he's clicked on OpenOffice again" we can't really speed up (barring not paging out those bits and a little bit of potential gain from not ramming stuff down the disks throat at full pelt) but the amount of time it takes after that first "run for the disk" moment is a lot shorter.
One question I have no idea as to the answer or any research on is "if I take a 2MB chunk of an apps pages and toss them out together is there sufficient statistical correlation that makes it useful to pull them back in together"
Clearly working in 512K/2MB chunks reduces the efficiency that we get from memory (which we have lots of) as well as improving our I/O efficiency dramatically (which we are very short of), the question is which dominates under load.
| |