mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rolando Martins <rolando.martins@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: cgroup, RT cpu balance question
Date: Mon, 16 Mar 2009 10:56:04 +0000	[thread overview]
Message-ID: <b6a2d2e20903160356y67db8472k43577d706a393d96@mail.gmail.com> (raw)

Hi,
I have one question regarding RT cpu balance using cgroup.

cgroup
echo 1 > cpuset.sched_load_balance

cgroup/2
echo 0 > cpuset.mems
echo 0-2 > cpuset.cpus
echo 450000 > cpu.rt_runtime_us

cgroup/3
echo 0 > cpuset.mems
echo 3 > cpuset.cpus
echo 450000 > cpu.rt_runtime_us


I have a small test that uses a loop to utilize 100% cpu (SCHED_FIFO).
When I run 2 tests on cgroup/3, it only uses bandwidth from cpu 3
(100%), the balancing isn't happening.
As I use the SCHED_FIFO, the 2 processes run sequentially.

Is this the expected behavior? Shouldn't the domains balance the spare
cpu bandwidth?

Thanks,
Rolando

             reply	other threads:[~2009-03-16 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 10:56 Rolando Martins [this message]
2009-03-16 11:17 ` Li Zefan
2009-03-16 11:18 ` Dhaval Giani

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=b6a2d2e20903160356y67db8472k43577d706a393d96@mail.gmail.com \
    --to=rolando.martins@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®