Re: cp file /dev/zero <-> cache [was Re: increasing page size]

Benjamin C.R. LaHaise (blah@kvack.org)
Tue, 7 Jul 1998 13:32:34 -0400 =?ISO-8859-1?Q?(8UU=01?=)


On Tue, 7 Jul 1998, Rik van Riel wrote:

> There's a good compromize between balancing per-page
> and per-process. We can simply declare the last X
> (say 8) pages of a process holy unless that process
> has slept for more than Y (say 5) seconds.

This is the wrong fix for the case that Andrea is complaining about -
tossing out chunks of processes piecemeal, resulting in a length page-in
time when the process becomes active again. Two things that might help
with this are: read-ahead on swapins, and *true* swapping. If the system
has run out of ram for the tasks at hand, should it not swap out a process
that's inactive in one fell swoop? Likewise, when said process resumes,
it's probably worth bringing that entire working set back into memory.
That way the user will only experience a brief pause on the first
keystroke issued to bash, not the 'pause on first character type, then
pause as line editing code faults back in...'

-ben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu