Re: Keys get stuck



Carlos R. Mafra wrote:
On Thu 13.Mar'08 at 12:28:13 +0100, Mike Galbraith wrote:
[...]
Swap can definitely keep X off the cpu for extended periods,
[...]

So I would like to ask if swap letting X (and everything else
in my experience) out of the cpu for extended periods is
considered normal behaviour, in the sense that nobody is
trying to "fix" it (due to it being considered impossible
to fix)...?
Yes, this is perfectly normal. A heavily swapping machine
will swap out parts of X.

Now, if X has a need for low-latency for keyboard handling,
then the X developers can use mlock to lock
the X keyboard service in memory, and make it a real-time
(or at least high priority) process too. This should
avoid the problem even with extreme swapping and/or
high cpu load.

Sorry for being off-topic, but I run a minimal Window Maker
desktop in a P4 3.0 GHz with 512 MB of RAM (around 140 MB
being used as per 'free'), and trying to load a 380 MB text
file in xjed editor makes my whole desktop quite unfair...
it takes tens of seconds to switch desktop, type things in
the terminal etc.

Seems ou use too much memory then. If xjed
wastes memory (by bringing the entire file into memory
in one go) then you'll get some swapping.

When xjed finishes loading the text file, everything comes
back to "fair" again.

Is there some law in the nature of computers which says
that when swapping everything else waits for swap to finish its business? I hope not :-)
No such law, but there are badly implemented software
around. If xjed is capable of delaying all X events while
loading the file, for example . . .

Helge Hafting
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: hanging programs - ultimate termination method other than power switch?
    ... One thing that blocks it is pending I/O, either from a program or swapping. ... Even so I start to regret my choice on memory more and more. ... I'd also run the Activity Monitor's CPU monitor in the dock or turn on MenuMeter's CPU monitor. ... I have seen UNIX systems with a load of 10 being still pretty normally responsive when it comes to doing simple things in a terminal window. ...
    (comp.sys.mac.system)
  • Re: [patch 00/20] VM pageout scalability improvements
    ... only does it use up CPU time, but it also provokes lock contention ... and can leave large systems under memory presure in a catatonic state. ... all the CPUs in the pageout code and no actual swap IO. ... The noreclaim patches come verbatim from Lee Schermerhorn and ...
    (Linux-Kernel)
  • Re: Swapping even when turned off?
    ... P.S. I've got 4GB of RAM, with 2GB swap files on each of two physical hard ... > Swapping memory is used for one thing and one thing only: ... > Swapping them out would free memory, but that memory would not be used, ... >> What on earth would prompt someone to turn off the swap file. ...
    (microsoft.public.windowsxp.general)
  • Re: [patch 00/20] VM pageout scalability improvements
    ... only does it use up CPU time, but it also provokes lock contention ... and can leave large systems under memory presure in a catatonic state. ... all the CPUs in the pageout code and no actual swap IO. ... The noreclaim patches come verbatim from Lee Schermerhorn and ...
    (Linux-Kernel)
  • Re: OT: memory requirements
    ... and xorg is using 70% of my memory. ... How beefy is the CPU? ... If it uses more than a few MB of swap, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)