Re: [patch] CFS scheduler, -v18

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Monday, July 2, 2007 - 4:44 am

Hello,

On 6/23/07, Ingo Molnar <mingo@elte.hu> wrote:


I have been running cfs-v18 for a couple of days now, and today I
stumbled upon a rather strange problem. Consider the following short
program:

while(1)
        printf("%ld\r", 1000 * clock() / CLOCKS_PER_SEC);

Running this in an xterm makes the xterm totally unresponsive. Ctrl-C
takes about two seconds to terminate the program, during which the
program will keep running. In fact, it seems that the longer it runs,
the longer it takes to terminate (towards 5 seconds after running for
a couple of minutes). This is rather surprising, as the rest of the
system is quite responsive (even remarkably so). I think this is also
in contrast with the expected behaviour, that Ctrl-C/program
termination should be prioritized somehow.

Some other observations: X.Org seems to be running at about 75% CPU on
CPU 1, the xterm at about 45% on CPU 0, and a.out at about 20% on CPU
0. (HT processor)

Killing with -2 or -9 from another terminal works immediately. Ctrl-Z
takes the same time as Ctrl-C.

Another thing to note is that simply looping with no output retains
the expected responsiveness of the xterm. Printing i++ is somewhere
halfway in between.

Is this behaviour expected or even intended? My main point is that
Ctrl-C is a safety fallback which suddenly doesn't work as usual. I
might even go so far as to call it a regression.

I'd also like to point out that Folding@Home seems to draw more CPU
than it should. Or, at least, in top, it shows up as using 50% CPU
even though other processes are demanding as much as they can get. The
FAH program should be running with idle priority. I expect it to fall
to near 0% when other programs are running at full speed, but it keeps
trotting along. And I am pretty sure that this is not due to SMP/HT (I
made sure to utilize both CPUs).

Lastly, I'd like to mention that I got BUGs (soft lockups) with -v8,
though it has not been reproducible with -v18, so I suppose it must
have been fixed already.

Otherwise, I am satisfied with the performance of CFS. Especially the
desktop is noticably smoother. Thanks!

Kind regards,
Vegard Nossum
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

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