DennisKonrad edited a comment on issue #3923: cputune shares in domain xml set without CPU cap enabled URL: https://github.com/apache/cloudstack/issues/3923#issuecomment-593866590 2 Cores * 1000 MHz / 10 = 200 In reality theres 66 set. Did I get you right on the calculation? @weizhouapache **EDIT** I found why the shares are not set correctly anymore. In our last update the qemu.conf got replaced and there were no controllers configured. After repairing that the values match beween XML, schedinfo and cgroup. ``` <domain type='kvm' id='148'> ... <currentMemory unit='KiB'>4194304</currentMemory> <vcpu placement='static'>2</vcpu> <cputune> <shares>66</shares> </cputune> ``` Schedinfo is already wrong: ``` Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 ... ``` Cgroup (or CFS) shares are set falsely set also (as one would expect): ``` # cat cpu.shares 1024 # pwd /sys/fs/cgroup/cpu/machine.slice/machine-qemu\x2d148\x2di\x2d331\x2d2003\x2dVM.scope ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
