Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1627461 > unrolled thread
| Started by | "Gonglei (Arei)" <arei.gonglei@huawei.com> |
|---|---|
| First post | 2017-04-20 15:40 +0200 |
| Last post | 2017-04-20 16:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
about CPU QoS in KVM "Gonglei (Arei)" <arei.gonglei@huawei.com> - 2017-04-20 15:40 +0200
Re: about CPU QoS in KVM Paolo Bonzini <pbonzini@redhat.com> - 2017-04-20 16:10 +0200
| From | "Gonglei (Arei)" <arei.gonglei@huawei.com> |
|---|---|
| Date | 2017-04-20 15:40 +0200 |
| Subject | about CPU QoS in KVM |
| Message-ID | <tykts-14Q-29@gated-at.bofh.it> |
Hi all, Currently, KVM do the CPU resource reservation by the cgroup mechanism which can't do entire accurate separation because the capacity of the Linux scheduler. Take the public cloud as an example, some customers rent one vm with 8 CPUs paid by enough money, they want to get enough response speed on CPU scheduling. So we (the cloud platform providers ) reserve 1GHz CPU resources by cgroup for those VM's vcpu/pcpu. But the actual effects can't meet those requirements because the cgroup is limiting share usage of other processes in order to attach the reservation proportion, but the scheduler can't assure that. This mechanism is different with Xen, We can directly change the CPU weight on Xen hypervisor so that we can get entire accurate control on CPU resources based on accurate capacity (upper limit), share (weight) and reservation. So my question is do we have a good method to do CPU reservation in KVM? Thanks, -Gonglei
[toc] | [next] | [standalone]
| From | Paolo Bonzini <pbonzini@redhat.com> |
|---|---|
| Date | 2017-04-20 16:10 +0200 |
| Message-ID | <tykWt-1uY-9@gated-at.bofh.it> |
| In reply to | #1627461 |
Adding Rik. Paolo On 20/04/2017 15:32, Gonglei (Arei) wrote: > Hi all, > > Currently, KVM do the CPU resource reservation by the cgroup mechanism > which can't do entire accurate separation because the capacity of the Linux > scheduler. Take the public cloud as an example, some customers rent one vm > with 8 CPUs paid by enough money, they want to get enough response > speed on CPU scheduling. So we (the cloud platform providers ) reserve 1GHz > CPU resources by cgroup for those VM's vcpu/pcpu. > > But the actual effects can't meet those requirements because the cgroup is > limiting share usage of other processes in order to attach the reservation proportion, > but the scheduler can't assure that. This mechanism is different with Xen, > We can directly change the CPU weight on Xen hypervisor so that we can > get entire accurate control on CPU resources based on accurate capacity (upper limit), > share (weight) and reservation. > > So my question is do we have a good method to do CPU reservation in KVM? > > Thanks, > -Gonglei > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web