Messages in this thread | | | Subject | Re: why swap at all? | From | Valdis.Kletnieks@vt ... | Date | Tue, 01 Jun 2004 17:40:43 -0400 |
| |
On Tue, 01 Jun 2004 23:15:36 +0200, FabF said:
> 1.Global inactivity (what you're talking about) > 2.Application isolation (what we're talking about).
Again, be careful there - I wasn't the one who said inactive boxes should be in RL3. ;)
And just because I may not be typing on the keyboard doesn't mean that things are in fact globally inactive - gkrellm is still running, and it has a plugin monitoring the CPU temperature and adjusting the fan speed as needed, and new mail is arriving in the background and causing status changes in my MUA.
And yes, said activity tends to keep the gkrellm and MUA pages "hot" and prevent their swapping out. The problem is that other processes are also doing stuff in the background for me - but there's no really good way for the system to know that I consider the gkrellm lages to be "more important" than those pages taken up by xclock....
> Geek or not, someone backgrounding an application doesn't want it to > down the box for X seconds some minutes later when it comes back and > such things arrive many times a day.
Yes, but a solution to that really *should* take into account that some things will only down the *app* (if OpenOffice is paging in, I can still interact with the system if X and my window manager and an xterm aren't paged out), whereas other things will effectively down the *system* as far as the user is concerned (if X and/or my window manager are paged out, I'm *stuck* till they come back in).
> Maybe you've got an idea about a > better rule(s) then ? (I mean for the 2 cases)
I admit I have slacked and haven't tried Nick Piggin's MM patches - others have commented that those work well. I am however quite sure that the Really Right Answer will require much greater subtlety than a rule like "if it uses libX it shouldn't be swapped out"....
[unhandled content-type:application/pgp-signature] | |