Re: cgroup, RT reservation per core(s)?



Thanks for the quick reply.

On Mon, Feb 9, 2009 at 7:52 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
On Mon, 2009-02-09 at 19:30 +0000, Rolando Martins wrote:
Hi,
I would like to have in a quad-core, 2 cores totally (100%) dedicated
to RT tasks (SCHED_RR and SCHED_FIFO) and the other 2 cores with
normal behavior, better said, allowing SCHED_OTHER & SCHED_FIFO &
SCHED_RR tasks but still with a RT reservation. Follows an example:


# Setup first domain (cpu 0,1)
echo 0-1 > /dev/cgroup/0/cpuset.cpus
echo 0 > /dev/cgroup/0/cpuset.mems

# Setup RT bandwidth for firstdomain (80% for RT, 20% others)
echo 1000000 > /dev/cgroup/0/cpu.rt_period_us
echo 800000 > /dev/cgroup/0/cpu.rt_runtime_us


# Setup second domain (cpu 2,3)
mkdir /dev/cgroup/1
echo 2-3 > /dev/cgroup/1/cpuset.cpus
echo 0 > /dev/cgroup/1/cpuset.mems

# Setup RT bandwidth for second domain (100% for RT)
echo 1000000 > /dev/cgroup/1/cpu.rt_period_us
echo 1000000 > /dev/cgroup/1/cpu.rt_runtime_us

Is there anyway for doing this?

Nope, but why do you need bandwidth groups if all you want is a full
cpu?

Just the cpuset should be plenty
You have a point;)


I should have elaborated this more:

root
----|----
| |
(0.5 mem) 0 1 (100% rt, 0.5 mem)
---------
| | |
2 3 4 (33% rt for each group, 33% mem
per group(0.165))
Rol
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: cgroup, RT reservation per core(s)?
    ... # Setup RT bandwidth for firstdomain ... # Setup second domain (cpu 2,3) ... # Setup RT bandwidth for second domain ...
    (Linux-Kernel)
  • cgroup, RT reservation per core(s)?
    ... # Setup RT bandwidth for firstdomain ... # Setup second domain (cpu 2,3) ... # Setup RT bandwidth for second domain ...
    (Linux-Kernel)
  • Re: [Solved - sort of...] Lenny overheating, preventing installation
    ... I finally managed to complete the Lenny setup process. ... air current flowing directly over and under the laptop. ... powered on and started the Lenny ... don't have any BIOS options set to always run the machine at max CPU ...
    (Debian-User)
  • Re: [rfc][patch 3/3] x86: optimise barriers
    ... seems to work on my setup even without the barrier". ... behaviour of the exact same CPU when used with a multi-bus chipset. ... stronger requirement on the caller than is actually required. ...
    (Linux-Kernel)
  • Issues with Dual-Core CPUs and SMP+Generic Kernel...?
    ... This is my first time that i work with one Dual Core system and FreeBSD. ... cpu0: on acpi0 ... The layout i was trying to setup for the disk was: ... Them i decide to boot with SMP kernel and again, ...
    (freebsd-questions)

Loading