login
Header Space

 
 

fair group scheduler not so fair?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <vatsa@...>, <mingo@...>, <a.p.zijlstra@...>, <pj@...>
Date: Wednesday, May 21, 2008 - 7:59 pm

I just downloaded the current git head and started playing with the fair 
group scheduler.  (This is on a dual cpu Mac G5.)

I created two groups, "a" and "b".  Each of them was left with the 
default share of 1024.

I created three cpu hogs by doing "cat /dev/zero > /dev/null".  One hog 
(pid 2435) was put into group "a", while the other two were put into 
group "b".

After giving them time to settle down, "top" showed the following:

2438 cfriesen  20   0  3800  392  336 R 99.5  0.0   4:02.82 cat 

2435 cfriesen  20   0  3800  392  336 R 65.9  0.0   3:30.94 cat 

2437 cfriesen  20   0  3800  392  336 R 34.3  0.0   3:14.89 cat 



Where pid 2435 should have gotten a whole cpu worth of time, it actually 
only got 66% of a cpu. Is this expected behaviour?



I then redid the test with two hogs in one group and three hogs in the 
other group.  Unfortunately, the cpu shares were not equally distributed 
within each group.  Using a 10-sec interval in "top", I got the following:


2522 cfriesen  20   0  3800  392  336 R 52.2  0.0   1:33.38 cat 

2523 cfriesen  20   0  3800  392  336 R 48.9  0.0   1:37.85 cat 

2524 cfriesen  20   0  3800  392  336 R 37.0  0.0   1:23.22 cat 

2525 cfriesen  20   0  3800  392  336 R 32.6  0.0   1:22.62 cat 

2559 cfriesen  20   0  3800  392  336 R 28.7  0.0   0:24.30 cat 


Do we expect to see upwards of 9% relative unfairness between processes 
within a class?

I tried messing with the tuneables in /proc/sys/kernel 
(sched_latency_ns, sched_migration_cost, sched_min_granularity_ns) but 
was unable to significantly improve these results.

Any pointers would be appreciated.

Thanks,

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

Messages in current thread:
fair group scheduler not so fair?, Chris Friesen, (Wed May 21, 7:59 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Tue May 27, 1:28 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Tue May 27, 1:15 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Tue May 27, 2:13 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Wed May 28, 12:33 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Wed May 28, 2:35 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Thu May 29, 12:46 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 29, 5:30 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 30, 7:36 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Mon Jun 2, 4:03 pm)
Re: fair group scheduler not so fair?, Dhaval Giani, (Fri May 30, 2:43 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 30, 6:21 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Thu May 29, 12:47 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Wed May 28, 10:50 pm)
Re: fair group scheduler not so fair?, Dhaval Giani, (Wed May 28, 2:47 pm)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Thu May 22, 2:56 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 22, 4:02 pm)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Thu May 22, 4:07 pm)
RE: fair group scheduler not so fair?, Li, Tong N, (Thu May 22, 4:18 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 5:42 am)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Fri May 23, 5:39 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 6:19 am)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Fri May 23, 6:16 am)
RE: fair group scheduler not so fair?, Peter Zijlstra, (Thu May 22, 5:13 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 22, 8:17 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 3:44 am)
speck-geostationary