[lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Marian Marinov
Hi guys, I'm using LXC containers for some of my teaching and I want to have /proc/cpuinfo and /proc/memory based on the cgroup limits that I have set. The idea is that if one container is limited to a cpuset of 0-1 it should see only the first two cores and not all the cores on the machine.

Re: [lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Serge Hallyn
Quoting Marian Marinov (m...@yuhu.biz): Hi guys, I'm using LXC containers for some of my teaching and I want to have /proc/cpuinfo and /proc/memory based on the cgroup limits that I have set. The idea is that if one container is limited to a cpuset of 0-1 it should see only the first

Re: [lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Daniel P. Berrange
On Mon, Nov 25, 2013 at 09:09:40AM -0600, Serge Hallyn wrote: Quoting Marian Marinov (m...@yuhu.biz): Hi guys, I'm using LXC containers for some of my teaching and I want to have /proc/cpuinfo and /proc/memory based on the cgroup limits that I have set. The idea is that if one

Re: [lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Marian Marinov
On 11/25/2013 05:12 PM, Daniel P. Berrange wrote: On Mon, Nov 25, 2013 at 09:09:40AM -0600, Serge Hallyn wrote: Quoting Marian Marinov (m...@yuhu.biz): Hi guys, I'm using LXC containers for some of my teaching and I want to have /proc/cpuinfo and /proc/memory based on the cgroup limits that