Swap makes X unfair (was Re: Keys get stuck)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Carlos R. Mafra
Date: Thursday, March 13, 2008 - 8:13 am

On Thu 13.Mar'08 at 15:18:10 +0100, Helge Hafting wrote:

Right, but making the mistake of not being very precise
I would not say my desktop was "heavily swapping". 


That would be a great thing for me. But why one wouldn't
want this behaviour to be default for a desktop? I mean
it should be like that already for a desktop experience.

I don't care if xjed takes longer to load the 380MB file 
while swapping something as long as I don't feel my 
desktop has come to an almost frozen state.


Well, Window Maker by itself uses around 5-10 MB of RAM.
The 140 MB figure was with firefox and thunderbird openned,
plus a few xterm + mrxvt.


I tried with emacs and it simply said something like this:
"Are you sure you want to open this big file?"
I said 'yes' and emacs reffused with "Buffer memory excedded" or
something like that.
At least xjed openned the file :-)

Well, I must say that 'vi' could open the file almost
immediately under the same situation tough.


Yeah, xjed uses too much memory for this, but it would be
"harmless" if there were some mechanism to prevent swap (not
too heavy) from starving the whole system.

Why can't there be a swap scheduler for this situation?
(I am sorry for being ignorant about it, there probably 
exists one).
If more than one process is using swap, they should use
it fairly. Put xjed's swap to rest for a moment, load the
swap due to X, and go forward.

My machine has 2 GB of swap area, both X and xjed swaps
could exist simultaneously without "having to wait to
long" for the other process business with swap to finish.

Please forgive me if I am being unfair about something,
I don't understand the internals of all this stuff.
That's why I first asked if having swap _not_ interfering
too much in other processes was impossible by some 
computer principle (like disks are not fast enough).

But it appears that it is something related to the
scheduling of what to read/write from/to swap and when.

Of course that's just what I think, and I would like
to learn more from knowleadgeble lkml people. Maybe
in trying to explain things to me, some hacker may
find that something could be made better, or point
me to some /sys tunnable which makes my experience
better.

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

Messages in current thread:
Keys get stuck, Fred ., (Tue Mar 11, 4:32 pm)
Re: Keys get stuck, Andrew Morton, (Tue Mar 11, 5:04 pm)
Re: Keys get stuck, Sebastien Dugue, (Wed Mar 12, 1:48 am)
Re: Keys get stuck, Jiri Kosina, (Wed Mar 12, 3:32 am)
Re: Keys get stuck, David Newall, (Wed Mar 12, 3:44 am)
Re: Keys get stuck, Theodore Tso, (Wed Mar 12, 7:47 am)
Re: Keys get stuck, Stephen Hemminger, (Wed Mar 12, 8:20 am)
Re: Keys get stuck, David Newall, (Wed Mar 12, 9:47 am)
Re: Keys get stuck, Jiri Kosina, (Wed Mar 12, 9:49 am)
Re: Keys get stuck, Hans-Peter Jansen, (Wed Mar 12, 2:22 pm)
Re: Keys get stuck, Mike Galbraith, (Wed Mar 12, 10:42 pm)
Re: Keys get stuck, Jan Knutar, (Thu Mar 13, 2:48 am)
Re: Keys get stuck, Mike Galbraith, (Thu Mar 13, 4:28 am)
Re: Keys get stuck, Jiri Kosina, (Thu Mar 13, 4:31 am)
Re: Keys get stuck, Mike Galbraith, (Thu Mar 13, 5:02 am)
Re: Keys get stuck, Carlos R. Mafra, (Thu Mar 13, 5:02 am)
Re: Keys get stuck, Jiri Kosina, (Thu Mar 13, 5:06 am)
Re: Keys get stuck, Carlos R. Mafra, (Thu Mar 13, 5:19 am)
Re: Keys get stuck, Mike Galbraith, (Thu Mar 13, 5:21 am)
Re: Keys get stuck, Mark Lord, (Thu Mar 13, 6:01 am)
Re: Keys get stuck, Helge Hafting, (Thu Mar 13, 7:18 am)
Swap makes X unfair (was Re: Keys get stuck), Carlos R. Mafra, (Thu Mar 13, 8:13 am)
Re: Keys get stuck, Pavel Machek, (Thu Mar 13, 10:14 am)
Re: Keys get stuck, Fred ., (Thu Mar 13, 10:56 am)
Re: Keys get stuck, Pavel Machek, (Thu Mar 13, 11:03 am)
Re: Keys get stuck, Jiri Kosina, (Fri Mar 14, 2:21 am)
Re: Swap makes X unfair (was Re: Keys get stuck), Helge Hafting, (Fri Mar 14, 4:02 am)
Re: Keys get stuck, Lennart Sorensen, (Fri Mar 14, 6:30 am)
Re: Keys get stuck, Pavel Machek, (Fri Mar 14, 11:24 am)
Re: Keys get stuck, Pavel Machek, (Fri Mar 14, 11:34 am)
Re: Keys get stuck, Pavel Machek, (Fri Mar 14, 12:35 pm)
Re: Keys get stuck, Lennart Sorensen, (Fri Mar 14, 2:34 pm)
Re: Swap makes X unfair (was Re: Keys get stuck), Carlos R. Mafra, (Sat Mar 15, 3:11 pm)
Re: Swap makes X unfair (was Re: Keys get stuck), Jan Knutar, (Sun Mar 16, 8:27 am)