On Sat, May 24, 2008 at 3:09 PM, cwillu <email address hidden> wrote: > Doesn't seem to allow more than one task to be added: > > root@dominubuntu:/dev/cpuset# ls > cpuacct.usage cpuset.memory_pressure_enabled ff > cpuset.cpu_exclusive cpuset.memory_spread_page notify_on_release > cpuset.cpus cpuset.memory_spread_slab pulse > cpuset.mem_exclusive cpuset.mems releasable > cpuset.memory_migrate cpuset.sched_load_balance release_agent > cpuset.memory_pressure cpu.shares tasks > root@dominubuntu:/dev/cpuset# mkdir test > root@dominubuntu:/dev/cpuset# cd test > root@dominubuntu:/dev/cpuset/test# echo 0 > cpuset.cpus > root@dominubuntu:/dev/cpuset/test# echo 0 > cpuset.mems > root@dominubuntu:/dev/cpuset/test# echo $$ > tasks > root@dominubuntu:/dev/cpuset/test# echo 6781 > tasks > bash: echo: write error: Operation not permitted >
cat /proc/mounts. If you have mounted ns as well, that would explain it.
And use mount -t cgroup -o cpu none /cgroup to mount the group scheduler.
Thanks Dhaval
On Sat, May 24, 2008 at 3:09 PM, cwillu <email address hidden> wrote: u:/dev/ cpuset# ls memory_ pressure_ enabled ff cpu_exclusive cpuset. memory_ spread_ page notify_on_release memory_ spread_ slab pulse mem_exclusive cpuset.mems releasable memory_ migrate cpuset. sched_load_ balance release_agent memory_ pressure cpu.shares tasks u:/dev/ cpuset# mkdir test u:/dev/ cpuset# cd test u:/dev/ cpuset/ test# echo 0 > cpuset.cpus u:/dev/ cpuset/ test# echo 0 > cpuset.mems u:/dev/ cpuset/ test# echo $$ > tasks u:/dev/ cpuset/ test# echo 6781 > tasks
> Doesn't seem to allow more than one task to be added:
>
> root@dominubunt
> cpuacct.usage cpuset.
> cpuset.
> cpuset.cpus cpuset.
> cpuset.
> cpuset.
> cpuset.
> root@dominubunt
> root@dominubunt
> root@dominubunt
> root@dominubunt
> root@dominubunt
> root@dominubunt
> bash: echo: write error: Operation not permitted
>
cat /proc/mounts. If you have mounted ns as well, that would explain it.
And use mount -t cgroup -o cpu none /cgroup to mount the group scheduler.
Thanks
Dhaval