Re: [lxc-users] Number of core for a container

2017-11-17 Thread supp...@translators.at
hi Thouraya, Am 2017-11-10 um 13:29 schrieb Thouraya TH: > Please, is there a command to display containers and list of cores used by > each container ? as far as I know: nope. meanwhile what you can do is to put container's names in a csv-file or grep it

Re: [lxc-users] Number of core for a container

2017-11-10 Thread Fajar A. Nugraha
Disclaimer: I no longer use lxc. Mostly lxd nowadays. I can point you to some documentation on the web though, hopefully that helps On Fri, Nov 10, 2017 at 7:29 PM, Thouraya TH wrote: > Hi all, > > I have used this command to fix cpu cores on which we have set running > containers. > > root@g-1

[lxc-users] Number of core for a container

2017-11-10 Thread Thouraya TH
Hi all, I have used this command to fix cpu cores on which we have set running containers. root@g-105:~# lxc-cgroup -n worker cpuset.cpus 0 root@g-105:~# lxc-cgroup -n worker cpuset.cpus 1 root@g-105:~# lxc-cgroup -n worker cpuset.cpus 2 root@g--105:~# lxc-cgroup -n worker cpuset.cpus 3 root@g-1

Re: [lxc-users] Number of core for a container

2017-11-06 Thread Stéphane Graber
Those instructions are for LXD, not for low level LXC. For LXC, you'd need to use the lxc.cgroup.cpuset config keys to directly configure the cpuset cgroup. Note that since LXC doesn't have a long running manager like LXD does, you're going to need to do the scheduling/balancing of those containe

Re: [lxc-users] Number of core for a container

2017-11-06 Thread Renato dos Santos
Hi Thouraya, You can use this after create the container: Set the container to use any 2 CPUs on the host.     $ lxc config set your-container limits.cpu 2 Set the container to use physical CPU 0, 3, 7, 8 and 9 on the host.     $ lxc config set your-container limits.cpu 0,3,7-9 Set the conta

[lxc-users] Number of core for a container

2017-11-06 Thread Thouraya TH
Hi all, Please, how can i fix number of cores (CPU) for a container when i use lxc-create or lxc-clone ? Thanks a lot for help. Best reagrds. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-us