Re: fair group scheduler not so fair?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Srivatsa Vaddagiri
Date: Friday, May 30, 2008 - 4:36 am

On Thu, May 29, 2008 at 03:30:37PM -0600, Chris Friesen wrote:

Hmm ..I cant recreate this 100/50/50 situation (tried about 10 times).


The tuneables I can think of are:

- HZ (higher the better)
- min/max_interval and imbalance_pct for each domain (lower the better)


That seems to be pretty difficult to achieve with the per-cpu runqueue
and smpnice based load balancing approach we have now.


Was this with imbalance_pct set to 105? Does it make any difference if
you change imbalance_pct to say 102?


I honestly don't know if we can do better than 0.8%! In any case, I'd
expect that it would require more drastic changes.


I ran with this configuration:

	HZ = 1000, 
	min/max_interval = 1
	imbalance_pct = 102

My 10-sec fairness looks like below (Error = 1.5%):

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  #C COMMAND
 4549 root      20   0  1384  228  176 R 65.2  0.0   0:36.02  0 hogc
 4547 root      20   0  1384  228  176 R 32.8  0.0   0:17.87  0 hogb
 4548 root      20   0  1384  228  176 R 32.6  0.0   0:18.28  1 hogb
 4546 root      20   0  1384  232  176 R 22.9  0.0   0:11.82  1 hoga
 4545 root      20   0  1384  228  176 R 22.3  0.0   0:11.74  1 hoga
 4544 root      20   0  1384  232  176 R 22.1  0.0   0:11.93  1 hoga

3-sec fairness (error = 2.3% ..sometimes went upto 6.7%)

 4549 root      20   0  1384  228  176 R 69.0  0.0   1:33.56  1 hogc
 4548 root      20   0  1384  228  176 R 32.7  0.0   0:46.74  1 hogb
 4547 root      20   0  1384  228  176 R 29.3  0.0   0:47.16  0 hogb
 4546 root      20   0  1384  232  176 R 22.3  0.0   0:30.80  0 hoga
 4544 root      20   0  1384  232  176 R 20.3  0.0   0:30.95  0 hoga
 4545 root      20   0  1384  228  176 R 19.4  0.0   0:31.17  0 hoga

-- 
Regards,
vatsa
--
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, 4:59 pm)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Wed May 21, 11:56 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 22, 1:02 pm)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Thu May 22, 1:07 pm)
RE: fair group scheduler not so fair?, Li, Tong N, (Thu May 22, 1:18 pm)
RE: fair group scheduler not so fair?, Peter Zijlstra, (Thu May 22, 2:13 pm)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 22, 5:17 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 12:44 am)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Fri May 23, 2:39 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 2:42 am)
Re: fair group scheduler not so fair?, Peter Zijlstra, (Fri May 23, 3:16 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 23, 3:19 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Tue May 27, 10:15 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Tue May 27, 10:28 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Tue May 27, 11:13 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Wed May 28, 9:33 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Wed May 28, 11:35 am)
Re: fair group scheduler not so fair?, Dhaval Giani, (Wed May 28, 11:47 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Wed May 28, 7:50 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Thu May 29, 9:46 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Thu May 29, 9:47 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Thu May 29, 2:30 pm)
Re: fair group scheduler not so fair?, Dhaval Giani, (Thu May 29, 11:43 pm)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 30, 3:21 am)
Re: fair group scheduler not so fair?, Srivatsa Vaddagiri, (Fri May 30, 4:36 am)
Re: fair group scheduler not so fair?, Chris Friesen, (Mon Jun 2, 1:03 pm)