Re: [vserver] util-vserver & cpuset bug ?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Tue 14 Jul 2009 - 18:19:06 BST
Message-ID: <33414.192.168.102.6.1247591946.squirrel@intranet>

xavier de poorter wrote:
> <snip>
> ls -l /dev/cpuset/test/
> total 0
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.cpu_exclusive
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.cpus
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.mem_exclusive
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.mem_hardwall
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.memory_migrate
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.memory_pressure
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.memory_spread_page
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.memory_spread_slab
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.mems
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.sched_load_balance
> -rw-r--r-- 1 root root 0 Jul 14 18:27 cpuset.sched_relax_domain_level
> -rw-r--r-- 1 root root 0 Jul 14 18:27 notify_on_release
> -rw-r--r-- 1 root root 0 Jul 14 18:27 tasks

You are using cgroups, so use the cgroup support in util-vserver.
E.g.

# To make the util-vserver initscript do all the necessary setup.
mkdir /etc/vservers/.defaults/cgroup
# Reboot, or rerun it.
/etc/init.d/util-vserver restart
mkdir /etc/vservers/test/cgroup
echo 1 > /etc/vservers/test/cgroup/cpuset.cpus
echo 0 > /etc/vservers/test/cgroup/cpuset.mems

-- 
Daniel Hokka Zakrisson
Received on Tue Jul 14 18:19:26 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 14 Jul 2009 - 18:19:28 BST by hypermail 2.1.8