From: "Daniel K." <dk@uw.no>
To: Peter Zijlstra <peterz@infradead.org>,
mingo@elte.hu,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: RT-Scheduler/cgroups: Possible overuse of resources assigned via cpu.rt_period_us and cpu.rt_runtime_us
Date: Wed, 18 Jun 2008 16:12:31 +0200 [thread overview]
Message-ID: <485917CF.1010401@uw.no> (raw)
mkdir /dev/cgroup
mount -t cgroup -o cpu,cpuset cgroup /dev/cgroup
mkdir /dev/cgroup/0
echo 3 > /dev/cgroup/0/cpuset.cpus
echo 0 > /dev/cgroup/0/cpuset.mems
echo 100000 > /dev/cgroup/0/cpu.rt_period_us
echo 5000 > /dev/cgroup/0/cpu.rt_runtime_us
schedtool -R -p 1 -e burnP6 &
[1] 3309
echo 3309 > /dev/cgroup/0/tasks
At this point I'd expect the burnP6 task to use 5% of the available CPU
resources in the cgroup (5000/100000), but the real CPU usage, as
reported by top, is 20% This is 4 times the expected result, and as I
have 4 cores, I think there is a strong hint of correlation there.
Maybe with a 4 core system there really is 4 000 000 us available for
every 1 wall-time second?
However, I have only assigned one core (3) to _this_ cgroup, so I think
this cgroup is overusing its assigned resources.
What do you think?
Daniel K.
next reply other threads:[~2008-06-18 14:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-18 14:12 Daniel K. [this message]
2008-06-18 14:37 ` RT-Scheduler/cgroups: Possible overuse of resources assigned via cpu.rt_period_us and cpu.rt_runtime_us Peter Zijlstra
2008-06-24 6:14 ` Max Krasnyansky
2008-06-24 9:53 ` Peter Zijlstra
2008-06-24 16:50 ` Max Krasnyanskiy
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=485917CF.1010401@uw.no \
--to=dk@uw.no \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
/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