Quoting 陳韋任 (Wei-Ren Chen) (che...@iis.sinica.edu.tw): > Hi all, > > Sorry for the newbie question. But I am confused on how to make cgroup > work on lxc. When I type `lxc-cgroup`, the command gave me the error > below: > > $ lxc-cgroup -n ubuntu cpu.shares > lxc-cgroup: open /sys/fs/cgroup/cpu//lxc/ubuntu/cpu.shares : No such file > or directory > lxc-cgroup: failed to retrieve value of 'cpu.shares' for 'ubuntu' > > The articles I read mostly do this at the beginning: > > $ mkdir /cgroup > $ echo "cgroup /cgroup cgroup defaults 0 0" >> /etc/fstab > $ mount cgroup > > I didn't do that because it seems the system already mount cgroup on > /sys/fs. My question is how to make lxc-cgroup work? Should I create > ubuntu directory under /sys/fs/cgroup/cpu/lxc, then everything works? > > The other question I believe most relate to the virtual machine > manager. When I edit lxc container through the vmm, there is an CPU > limits option. Does that option work? Because from the top or > /proc/cpuinfo I don't see the limit I set works.
Sorry I just saw the crossposting in the header :) lxc-cgroup is a part of the lxc.sf.net toolsuite, which mostly not compatible with libvirt. Libvirt-lxc uses a different cgroup layout scheme so lxc-cgroup will be looking for paths which don't exist. -serge ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users