Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Dietmar Maurer
> So it's like a temp service management from systemd. > > Also as advantage, is it also possible to catch qemu crash with journalctl ? What do you want to do? Restart if crached? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
. " So it's like a temp service management from systemd. Also as advantage, is it also possible to catch qemu crash with journalctl ? - Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" Envoyé: Jeudi 28 Mai 2015 17:31:34 Objet: Re: [pve

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Dietmar Maurer
> systemd-run --scope --slice=qemu --unit 100 -p CPUShares=499 /usr/bin/kvm -id > 100 ... > > > like this, cgroup is autoremoved on process stop. Interesting. I need toö take a look at the code in 'systemd-run' to see how complex that is. Are there any disadvantages? ___

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Dietmar Maurer
> Another way could be use launch qemu with systemd-run, I think we can specify > cgroup (slice in systemd) directly. What would be the advantage? Fr me that just makes things more complex? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
ares=499 /usr/bin/kvm -id 100 Seem better than hacking qemu ? - Mail original - De: "aderumier" À: "Stefan Priebe" Cc: "pve-devel" Envoyé: Jeudi 28 Mai 2015 15:02:36 Objet: Re: [pve-devel] qemu-server: cgroups && cpu.shares implem

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
ail original - De: "aderumier" À: "Stefan Priebe" Cc: "pve-devel" Envoyé: Jeudi 28 Mai 2015 15:02:36 Objet: Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation Another way could be use launch qemu with systemd-run, I think we can specify cgroup (

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
ould go automaticaly to the parent cgroup. I have done tests with hotplug virtio-net with vhost threads, or iothread drive, and their threads pid go to the cgroup. - Mail original - De: "Stefan Priebe" À: "dietmar" , "aderumier" , "pve-devel"

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
e done tests with hotplug virtio-net with vhost threads, or iothread drive, and their threads pid go to the cgroup. - Mail original - De: "Stefan Priebe" À: "dietmar" , "aderumier" , "pve-devel" Envoyé: Jeudi 28 Mai 2015 12:55:29 Objet: Re: [pve-d

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre DERUMIER
-- Mail original - De: "dietmar" À: "aderumier" , "pve-devel" Envoyé: Jeudi 28 Mai 2015 12:51:23 Objet: Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation > Here the patches serie for implemtation of cpuunits through cgroups If you implement

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Stefan Priebe - Profihost AG
Am 28.05.2015 um 12:51 schrieb Dietmar Maurer: >> Here the patches serie for implemtation of cpuunits through cgroups > > If you implement it inside qemu-server you have a race-condition, because > you do it too late and qemu already started the threads? Or maybe only parts > of necessary threads

Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Dietmar Maurer
> Here the patches serie for implemtation of cpuunits through cgroups If you implement it inside qemu-server you have a race-condition, because you do it too late and qemu already started the threads? Or maybe only parts of necessary threads are already created? So wouldn't it be easier to do it

[pve-devel] qemu-server: cgroups && cpu.shares implementation

2015-05-28 Thread Alexandre Derumier
Hi, Here the patches serie for implemtation of cpuunits through cgroups ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel