lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6a2d2e20902110333j37cf76b4v73abc2be3631738c@mail.gmail.com>
Date:	Wed, 11 Feb 2009 11:33:22 +0000
From:	Rolando Martins <rolando.martins@...il.com>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: cgroup, RT reservation per core(s)?

On 2/10/09, Peter Zijlstra <peterz@...radead.org> wrote:
> On Tue, 2009-02-10 at 17:32 +0000, Rolando Martins wrote:
>  >
>  > For helping others:
>  >
>  > mkdir /dev/cpuset
>  > mount -t cgroup -o cpuset none /dev/cpuset
>  > cd /dev/cpuset
>  > echo 0 > cpuset.sched_load_balance
>
>
> I'm not quite sure that its allowed to disable load-balance before
>  creating children. Other than that it looks ok.
>
>
>  > mkdir A
>  > echo 0-1 > A/cpuset.cpus
>  > echo 0 > A/cpuset.mems
>  > mkdir B
>  > echo 2-3 > B/cpuset.cpus
>  > echo 0 > B/cpuset.mems
>  >
>  >
>  > mount -t cgroup -o cpu none /dev/sched_domain
>  > cd /dev/sched_domain
>  > mkdir 1
>  > echo cpu.rt_runtime_ns > 1/cpu.rt_runtime_ns
>  > mkdir 1/2
>  > echo 33333 > 1/2/cpu.rt_runtime_ns
>  > mkdir 1/3
>  > echo 33333 > 1/3/cpu.rt_runtime_ns
>  > mkdir 1/4
>  > echo 33333 > 1/3/cpu.rt_runtime_ns
>  >
>  > For example, setting the current shell to a specific cpuset(A) and
>  > sched(1/2):
>  >
>  > echo $$ > /dev/cpuset/A/tasks
>  > echo $$ > /dev/sched_domain/1/2/tasks
>  > "execute program"
>
>

Hi again,

is there any way to have multiple "distinct" sched domains, i.e.:
mount -t cgroup -o cpu none /dev/sched_domain_0
... setup sched_domain_0 (ex:  90% RT, 10% Others)
mount -t cgroup -o cpu none /dev/sched_domain_1
... setup sched_domain_1 (ex:  20% RT, 80% Others)
Then give sched_domain_0 to cpuset A and sched_domain_1 to B?

Thanks,
Rol
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ