Re: [patch] CFS scheduler, -v18

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Mike Galbraith <efault@...>, Arjan van de Ven <arjan@...>, Thomas Gleixner <tglx@...>, Dmitry Adamushko <dmitry.adamushko@...>, Srivatsa Vaddagiri <vatsa@...>
Date: Saturday, June 23, 2007 - 9:24 am

Hi Ingo,

On Sat, Jun 23, 2007 at 12:02:02AM +0200, Ingo Molnar wrote:

Today I had a little time to try CFS again (last time it was -v9!). I ran it
on top of 2.6.20.14, and simply tried ocbench again. You remember ? With -v9,
I ran 64 processes which all progressed very smoothly. With -v18, it's not
the case anymore. When I run 64 processes, only 7 of them show smooth rounds,
while all the other ones are only updated once a second. Sometimes they only
progress by one iteration, sometimes by a full round. Some are even updated
once ever 2 seconds, because if I drag an xterm above them and quickly remove
it, the xterm leaves a trace there for up to 2 seconds.

Also, only one of my 2 CPUs is used. I see the rq vary between 1 and 5, with 
a permanent 50% idle... :

   procs                      memory      swap          io     system      cpu
 r  b  w   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id
 1  0  0      0 874400   7864  90436    0    0     0     0  279  2204 50  0 50
 3  0  0      0 874408   7864  90436    0    0     0     0  273  2122 50  1 50
 1  0  0      0 874408   7864  90436    0    0     0     0  253  1660 49  1 50
 3  0  0      0 874408   7864  90436    0    0     0     0  252  1977 50  0 50
 2  0  0      0 874408   7864  90436    0    0     0     0  253  2274 49  1 50
 3  0  0      0 874408   7864  90436    0    0     0     0  252  1846 49  1 50
 1  0  0      0 874408   7864  90436    0    0     0     0  339  1782 49  1 50

I have no idea about what version brought that unexpected behaviour, but it's
clearly something which needs to be tracked down.

My scheduler is at 250 Hz, and here are the values I found in /proc/sys/kernel:
root@pcw:kernel# grep '' sched_*
sched_batch_wakeup_granularity_ns:40000000
sched_child_runs_first:1
sched_features:14
sched_granularity_ns:10000000
sched_runtime_limit_ns:40000000
sched_stat_granularity_ns:0
sched_wakeup_granularity_ns:4000000

I have tried to change each of them, with absolutely no effect. Seems really
strange. Unfortunately, I have to leave right now. Maybe you can try on your
side with this simple command :

  $ ./ocbench -x 8 -y 8

Sorry for not giving more information right now.

Regards,
Willy

-
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)