Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cset problem when cpuset already mounted #12

Open
GoogleCodeExporter opened this issue Dec 23, 2015 · 2 comments
Open

cset problem when cpuset already mounted #12

GoogleCodeExporter opened this issue Dec 23, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. kernel-3.2.1
2. mount /sys/fs/cgroup
3. cset set -r

What is the expected output? 
should list default parent cpuset

What do you see instead?
mount: none already mounted or /sys/fs/cgroup/cpuset busy
cset: **> mount of cpuset filesystem failed, do you have permission?


What version of the product are you using? 
# cset -v
cset: Cpuset (cset) 1.5.6

On what operating system? Gentoo
# uname -a
Linux apps 3.2.1-gentoo-r2 #2 SMP Tue Feb 14 02:11:57 EST 2012 x86_64 AMD 
Opteron(tm) Processor 6128 AuthenticAMD GNU/Linux


Please provide any additional information below.

# zcat /proc/config.gz | egrep '(CGROUP|CPUSET)'
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_MEM_RES_CTLR=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
# CONFIG_BLK_CGROUP is not set
CONFIG_NET_CLS_CGROUP=y

# grep cgroup /etc/fstab
cgroup /sys/fs/cgroup cgroup rw 0 0

When I mount /sys/fs/cgroup, 
kernel-3.2.1 automatically populates /sys/fs/cgroup
with the following directories:

cpu, cpuacct, cpuset, devices, freezer, memory, net_cls

When cset tries to mount cpuset, it discovers that it is already mounted.


Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 8:21

@GoogleCodeExporter
Copy link
Author

# grep cgroup /proc/mounts 
cgroup /sys/fs/cgroup cgroup 
rw,relatime,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset 0 0

Original comment by [email protected] on 21 Feb 2012 at 8:27

@GoogleCodeExporter
Copy link
Author

cset.py is searching for cpuset path in /proc/mounts
but none is found because cpuset is option for mount

So cset.py tries to mount /sys/fs/cgroup/cpuset
but /sys/fs/cgroup/cpuset already exists

So need to handle kernel-3.2 behavior

Original comment by [email protected] on 21 Feb 2012 at 8:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant