From: "Chris Friesen" <cfriesen@nortel.com>
To: vatsa@linux.vnet.ibm.com
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu,
a.p.zijlstra@chello.nl, pj@sgi.com,
Balbir Singh <balbir@in.ibm.com>,
aneesh.kumar@linux.vnet.ibm.com, dhaval@linux.vnet.ibm.com
Subject: Re: fair group scheduler not so fair?
Date: Mon, 02 Jun 2008 14:03:03 -0600 [thread overview]
Message-ID: <484451F7.5090001@nortel.com> (raw)
In-Reply-To: <20080530113653.GI12836@linux.vnet.ibm.com>
Srivatsa Vaddagiri wrote:
> That seems to be pretty difficult to achieve with the per-cpu runqueue
> and smpnice based load balancing approach we have now.
Okay, thanks.
>>Initially I tried a simple setup with three hogs all in the default "sys"
>>group. Over multiple retries using 10-sec intervals, sometimes it gave
>>roughly 67% for each task, other times it settled into a 100/50/50 split
>>that remained stable over time.
> Was this with imbalance_pct set to 105? Does it make any difference if
> you change imbalance_pct to say 102?
It was set to 105 initially. I later reproduced the problem with 102.
For example, the following was with 102, with three tasks created in the
sys class. Based on the runtime, pid 2499 has been getting a cpu all to
itself for over a minute.
2499 cfriesen 20 0 3800 392 336 R 99.8 0.0 1:05.85 cat
2496 cfriesen 20 0 3800 392 336 R 50.0 0.0 0:32.95 cat
2498 cfriesen 20 0 3800 392 336 R 50.0 0.0 0:32.97 cat
The next run was much better, with sub-second fairness after a minute.
2505 cfriesen 20 0 3800 392 336 R 68.2 0.0 1:00.32 cat
2506 cfriesen 20 0 3800 392 336 R 66.9 0.0 0:59.85 cat
2503 cfriesen 20 0 3800 392 336 R 64.2 0.0 1:00.21 cat
The lack of predictability is disturbing, as it implies some sensitivity
to the specific test conditions.
>>With three groups, one task in each, I tried both 10 and 60 second
>>intervals. The longer interval looked better but was still up to 0.8% off:
>
>
> 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.
No problem. It's still far superior than the SMP performance of CKRM,
which is what we're currently using (although heavily modified).
Chris
next prev parent reply other threads:[~2008-06-02 20:03 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 23:59 fair group scheduler not so fair? Chris Friesen
2008-05-22 6:56 ` Peter Zijlstra
2008-05-22 20:02 ` Chris Friesen
2008-05-22 20:07 ` Peter Zijlstra
2008-05-22 20:18 ` Li, Tong N
2008-05-22 21:13 ` Peter Zijlstra
2008-05-23 0:17 ` Chris Friesen
2008-05-23 7:44 ` Srivatsa Vaddagiri
2008-05-23 9:42 ` Srivatsa Vaddagiri
2008-05-23 9:39 ` Peter Zijlstra
2008-05-23 10:19 ` Srivatsa Vaddagiri
2008-05-23 10:16 ` Peter Zijlstra
2008-05-27 17:15 ` Srivatsa Vaddagiri
2008-05-27 18:13 ` Chris Friesen
2008-05-28 16:33 ` Srivatsa Vaddagiri
2008-05-28 18:35 ` Chris Friesen
2008-05-28 18:47 ` Dhaval Giani
2008-05-29 2:50 ` Srivatsa Vaddagiri
2008-05-29 16:46 ` Srivatsa Vaddagiri
2008-05-29 16:47 ` Srivatsa Vaddagiri
2008-05-29 21:30 ` Chris Friesen
2008-05-30 6:43 ` Dhaval Giani
2008-05-30 10:21 ` Srivatsa Vaddagiri
2008-05-30 11:36 ` Srivatsa Vaddagiri
2008-06-02 20:03 ` Chris Friesen [this message]
2008-05-27 17:28 ` Srivatsa Vaddagiri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=484451F7.5090001@nortel.com \
--to=cfriesen@nortel.com \
--cc=a.p.zijlstra@chello.nl \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=balbir@in.ibm.com \
--cc=dhaval@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pj@sgi.com \
--cc=vatsa@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox