Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-31 Thread Dietmar Maurer
> >>I though it apply globally, but I am unsure now. > > Just tested, you are right, it's globally for the number of cpus in the groups > (default all cpus). > > so , with 20cores host, and cpus limit 2, > > you can indeed use 2 cpu full, or split the load accross all cpus. > > (It's just a c

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-31 Thread Alexandre DERUMIER
- Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Samedi 30 Mai 2015 19:26:54 Objet: Re: [pve-devel] qemu-server : cgroups implementation through systemd-run > But maybe I'm wrong, > > I don't know if cfs_quota_us valu

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-30 Thread Dietmar Maurer
> But maybe I'm wrong, > > I don't know if cfs_quota_us value apply globally on all cpus , or > individually on each cpu. I though it apply globally, but I am unsure now. Anyway, I guess I will rename 'cpus' into 'cpulimit', and we can then add further cpu restrictions in future. __

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-30 Thread Alexandre DERUMIER
ame config with settings 2cpu set. 1 monothreaded application, will use 100% of 1core. So 10x faster than previously That's an huge difference. - Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Samedi 30 Mai 2015 12:49:1

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-30 Thread Alexandre DERUMIER
ation, will use 100% of 1core. So 10x faster than previously That's an huge difference. - Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Samedi 30 Mai 2015 12:49:19 Objet: Re: [pve-devel] qemu-server : cgroups implemen

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-30 Thread Dietmar Maurer
> >>You think I should call it 'cpulimit' instead of 'cpus'? > > I mean, if you go in a container, do a "top", you'll always see the full > number of cpus of the host. > > in openvz : > cfs_quota_us = cpulimit. > cpus = number of cores assign in a container. > > > It's possible to really fix

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-30 Thread Alexandre DERUMIER
er of cpus inside the container with cpu.cpuset. (The only problem is that we need to specify cpuids we want to assign, so it's not easy to have a good auto loadbalacing with multiple containers) - Mail original - De: "dietmar" À: "aderumier" Cc: "pve-d

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-29 Thread Dietmar Maurer
> >>Great. I guess we can also hotplug that? > > Yes sure. it's just a write in /sys/fs/cgroups. > > This could be done online too in lxc. OK > BTW, I see that in lxc gui, the cpus number field = > lxc.cgroup.cpu.cfs_quota_us, so it's more cpulimit. > (all cores are present in container) Sor

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-29 Thread Alexandre DERUMIER
-- Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Vendredi 29 Mai 2015 11:36:50 Objet: Re: [pve-devel] qemu-server : cgroups implementation through systemd-run > >>Answering myself, I found we can set this with > >>

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-29 Thread Dietmar Maurer
> >>Answering myself, I found we can set this with > >> > >>CPUQuota=XX% > >> > >>So we can directly map this to the 'cpulimit' parameter? > > yes indeed. I'll send a patch monday for this. Great. I guess we can also hotplug that? ___ pve-devel mail

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-29 Thread Alexandre DERUMIER
" , "pve-devel" Envoyé: Vendredi 29 Mai 2015 08:38:09 Objet: Re: [pve-devel] qemu-server : cgroups implementation through systemd-run Answering myself, I found we can set this with CPUQuota=XX% So we can directly map this to the 'cpulimit' parameter? On 05/

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-28 Thread Dietmar Maurer
Answering myself, I found we can set this with CPUQuota=XX% So we can directly map this to the 'cpulimit' parameter? On 05/29/2015 08:33 AM, Dietmar Maurer wrote: Are there other things we can set this way? For example can we limit CPU with cfs_period_us and cfs_quota_us? I guess that woul

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-28 Thread Dietmar Maurer
Are there other things we can set this way? For example can we limit CPU with cfs_period_us and cfs_quota_us? I guess that would be interesting for hosters. On 05/28/2015 03:59 PM, Alexandre Derumier wrote: I have tested it, it's working fine. (I don't known how HA will be managed but it sho

Re: [pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-28 Thread Dietmar Maurer
applied, thanks! On 05/28/2015 03:59 PM, Alexandre Derumier wrote: I have tested it, it's working fine. (I don't known how HA will be managed but it should work too) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/

[pve-devel] qemu-server : cgroups implementation through systemd-run

2015-05-28 Thread Alexandre Derumier
I have tested it, it's working fine. (I don't known how HA will be managed but it should work too) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel