Re: [patch] CFS scheduler, -v18

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <keith.packard@...>, Mike Galbraith <efault@...>, Vegard Nossum <vegard.nossum@...>, Dmitry Adamushko <dmitry.adamushko@...>, Linux Kernel <linux-kernel@...>
Date: Tuesday, July 3, 2007 - 4:08 am

On Tue, 2007-07-03 at 09:22 +0200, Ingo Molnar wrote:


It's just an Xterm bug.

Xterm will look for X input if it ever manages to fill the input buffer
past 32768 bytes. If it manages to get more than 4096 bytes in one read,
it will invoke sched_yield. and then check for input. Gotta love that
sched_yield call.

As it always processes all of the incoming data before trying to read
again, there doesn't appear to be any way it can ever have more than
32768 characters in the buffer.=20

And, as the kernel will not buffer more than 4095 bytes from a pty,
there isn't any way it will ever read 4096 bytes.

So, it sits there carefully reading every byte from the pty and painting
them on the screen.

You can 'fix' xterm with:

$ xterm -xrm '*minBufSize: 4095'

I hesitate to even suggest a patch to xterm that would solve this
problem correctly. Note that xterm has kludges in several of the output
processing steps which explicitly look for input (most vertical cursor
motion, it seems), which is why any application which scrolls doesn't
cause this problem.

Do you need more reasons to switch to another terminal emulator?
gnome-terminal has finally gotten reasonable; I expect rxvt or konsole
would work just as well.

--=20
keith.packard@intel.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] CFS scheduler, -v18, Ingo Molnar, (Fri Jun 22, 6:02 pm)
Re: [patch] CFS scheduler, -v18, Vegard Nossum, (Mon Jul 2, 7:44 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Tue Jul 3, 3:15 am)
Re: [patch] CFS scheduler, -v18, Vegard Nossum, (Tue Jul 3, 5:11 am)
Re: [patch] CFS scheduler, -v18, Bill Davidsen, (Mon Jul 2, 10:13 am)
Re: [patch] CFS scheduler, -v18, Dmitry Adamushko, (Mon Jul 2, 9:01 am)
Re: [patch] CFS scheduler, -v18, Vegard Nossum, (Mon Jul 2, 9:43 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Mon Jul 2, 11:50 am)
Re: [patch] CFS scheduler, -v18, Vegard Nossum, (Mon Jul 2, 12:40 pm)
Re: [patch] CFS scheduler, -v18, Mike Galbraith, (Tue Jul 3, 3:12 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Tue Jul 3, 3:22 am)
Re: [patch] CFS scheduler, -v18, Andi Kleen, (Wed Jul 4, 8:11 am)
Re: [patch] CFS scheduler, -v18, Keith Packard, (Tue Jul 3, 4:08 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Tue Jul 3, 4:31 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Mon Jul 2, 2:13 pm)
Re: [patch] CFS scheduler, -v18, Vegard Nossum, (Tue Jul 3, 3:01 am)
Re: [patch] CFS scheduler, -v18, Willy Tarreau, (Sat Jun 30, 5:06 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sun Jul 1, 4:31 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sun Jul 1, 4:45 am)
Re: [patch] CFS scheduler, -v18, Willy Tarreau, (Sun Jul 1, 5:00 am)
RE: [patch] CFS scheduler, -v18, Fortier,Vincent [Montreal]..., (Tue Jun 26, 4:17 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Wed Jun 27, 6:51 am)
Re: [patch] CFS scheduler, -v18, Willy Tarreau, (Sat Jun 23, 9:24 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sun Jun 24, 11:52 am)
Re: [patch] CFS scheduler, -v18, Willy Tarreau, (Sun Jun 24, 1:08 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sun Jun 24, 4:31 pm)
Re: [patch] CFS scheduler, -v18, Antonino Ingargiola, (Sat Jun 23, 6:22 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sat Jun 23, 1:25 pm)
Re: [patch] CFS scheduler, -v18, Antonino Ingargiola, (Sun Jun 24, 6:02 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sun Jun 24, 7:07 am)
Re: [patch] CFS scheduler, -v18, Antonino Ingargiola, (Mon Jun 25, 3:27 am)
Re: [patch] CFS scheduler, -v18, Gene Heskett, (Fri Jun 22, 7:08 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Sat Jun 23, 3:11 am)
Re: [patch] CFS scheduler, -v18, Gene Heskett, (Sat Jun 23, 5:55 am)
Re: [patch] CFS scheduler, -v18, S.Çağlar, (Fri Jun 22, 6:09 pm)
Re: [patch] CFS scheduler, -v18, S.Çağlar, (Fri Jun 22, 6:16 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Fri Jun 22, 6:20 pm)
Re: [patch] CFS scheduler, -v18, Andrew Morton, (Mon Jun 25, 11:02 pm)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Tue Jun 26, 4:38 am)
Re: [patch] CFS scheduler, -v18, Andrew Morton, (Tue Jun 26, 5:00 am)
Re: [patch] CFS scheduler, -v18, Ingo Molnar, (Tue Jun 26, 5:38 am)