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

cpuset.cpus with non-consecutive cores have wrong messages #25

Closed
ysolis opened this issue Apr 28, 2015 · 1 comment
Closed

cpuset.cpus with non-consecutive cores have wrong messages #25

ysolis opened this issue Apr 28, 2015 · 1 comment

Comments

@ysolis
Copy link

ysolis commented Apr 28, 2015

Ubuntu 14.04.2, unprivileged container configured.

lxc-create -t download -n test -- -d ubuntu -r trusty -a amd64

lxc 1.1.2 and lxcfs 0.7
(all from lxd-git-master_1_1 PPA repository)

i setup cores in the config:

lxc.cgroup.cpuset.cpus = 0,1

or in shell with lxc-cgroup

lxc-cgroup -n base cpuset.cpus 0,1

test with stress command:

stress --cpu 4 --timeout 10s

show in the host only two hosts (0 and 1) used.

now if i change the cpusets.cpus to non-consecutive cores:

lxc.cgroup.cpuset.cpus = 0,2

or

lxc-cgroup -n base cpuset.cpus 0,2

with the same stress command, I get two cores used, you can see htop in the host for diagnostic, but in the container, htop, top and less /proc/cpuinfo shows only one core active, when the cores are non-consecutive.

@hallyn
Copy link
Member

hallyn commented Apr 30, 2015

This should be fixed now in git HEAD. Please re-open if not.

@hallyn hallyn closed this as completed Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants