From: Peter Williams <pwil3058@bigpond.net.au>
To: Andrew Morton <akpm@osdl.org>
Cc: kernel@kolivas.org, sam@vilain.net, bsingharora@gmail.com,
vatsa@in.ibm.com, dev@openvz.org, linux-kernel@vger.kernel.org,
efault@gmx.de, kingsley@aurema.com,
ckrm-tech@lists.sourceforge.net, mingo@elte.hu,
rene.herman@keyaccess.nl
Subject: Re: [PATCH 0/4] sched: Add CPU rate caps
Date: Tue, 20 Jun 2006 09:59:53 +1000 [thread overview]
Message-ID: <44973A79.6070307@bigpond.net.au> (raw)
In-Reply-To: <20060618025046.77b0cecf.akpm@osdl.org>
Andrew Morton wrote:
>
> If the task can exceed its cap without impacting any other tasks (ie: there
> is spare idle capacity), what happens? I trust that spare capacity gets
> used?
As I said in another reply, the answer to this is yes for soft caps and
how good a job was demonstrated by the kernbench results that I
included. Repeated here:
Average Optimal -j 8 Load Run:
Vanilla Patch Applied Soft Cap 0%
Elapsed Time 1056.1 (1.92) 1048.2 (0.62) 1064.1 (1.59)
User Time 1908.1 (1.09) 1895.2 (1.30) 1926.6 (1.39)
System Time 181.7 (0.60) 177.5 (0.74) 173.8 (1.07)
Total 2089.8 2072.7 2100.4
Percent CPU 197.6 (0.55) 197.0 (0) 197.0 (0)
Context Switches 49253.6 (136.31) 48881.4 (92.03) 92490.8 (163.71)
Sleeps 28038.8 (228.11) 28136.0 (250.65) 25769.4 (280.40)
Note that the (slight) increase in the elapsed time when using a soft
cap of zero can be directly attributed to the increase in CPU usage due
to the cap overhead (an approximate increase of 16 seconds for elapsed
time with an approximate increase of 28 seconds (for two CPUs) in CPU
time consumed when comparing the "patch applied" and "soft cap 0%" numbers).
I think this illustrates that (for soft caps) spare capacity is not wasted?
> (Is this termed "work conserving"?)
I don't know but it sounds apt.
Peter
PS For ordinary users, I think that the ability to run jobs in the
background by using a soft cap of zero is the most useful thing that
this patch provides.
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
next prev parent reply other threads:[~2006-06-19 23:59 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-18 8:26 [PATCH 0/4] sched: Add CPU rate caps Peter Williams
2006-06-18 8:26 ` [PATCH 1/4] sched: Add CPU rate soft caps Peter Williams
2006-06-18 8:38 ` Con Kolivas
2006-06-18 15:52 ` Peter Williams
2006-06-19 1:21 ` Peter Williams
2006-06-18 8:26 ` [PATCH 2/4] sched: Add CPU rate hard caps Peter Williams
2006-06-18 8:27 ` [PATCH 3/4] sched: Add procfs interface for CPU rate soft caps Peter Williams
2006-06-18 8:27 ` [PATCH 4/4] sched: Add procfs interface for CPU rate hard caps Peter Williams
2006-06-18 9:50 ` [PATCH 0/4] sched: Add CPU rate caps Andrew Morton
2006-06-18 10:25 ` Peter Williams
2006-06-18 11:42 ` Srivatsa Vaddagiri
2006-06-18 12:19 ` Peter Williams
2006-06-19 0:13 ` Balbir Singh
2006-06-19 1:03 ` [ckrm-tech] " Peter Williams
2006-06-19 2:20 ` Balbir Singh
2006-06-19 3:17 ` Peter Williams
2006-06-19 3:31 ` Balbir Singh
2006-06-19 3:50 ` Peter Williams
2006-06-19 8:30 ` Balbir Singh
2006-06-19 11:35 ` Peter Williams
2006-06-19 11:33 ` Balbir Singh
2006-06-19 23:09 ` Peter Williams
2006-06-20 4:28 ` Peter Williams
2006-06-20 4:40 ` Balbir Singh
2006-06-20 5:56 ` Peter Williams
2006-06-19 5:04 ` Peter Williams
2006-06-19 23:59 ` Peter Williams [this message]
2006-06-19 18:55 ` [ckrm-tech] " Chris Friesen
2006-06-19 23:28 ` Peter Williams
-- strict thread matches above, loose matches on Subject: below --
2006-06-22 1:52 Peter Williams
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=44973A79.6070307@bigpond.net.au \
--to=pwil3058@bigpond.net.au \
--cc=akpm@osdl.org \
--cc=bsingharora@gmail.com \
--cc=ckrm-tech@lists.sourceforge.net \
--cc=dev@openvz.org \
--cc=efault@gmx.de \
--cc=kernel@kolivas.org \
--cc=kingsley@aurema.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rene.herman@keyaccess.nl \
--cc=sam@vilain.net \
--cc=vatsa@in.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