From: riccardo.brunetti@dnshosting.it
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, Paolo Bonzini <paolo.bonzini@gmail.com>
Subject: Re: CPU Overcommitting question
Date: Fri, 18 Jul 2014 18:49:59 +0200 [thread overview]
Message-ID: <705c3521045351691bbb7e00f52de710@dnshosting.it> (raw)
In-Reply-To: <53C93D9D.3010503@redhat.com>
Hi Paolo, thanks for the prompt reply.
On 2014-07-18 17:30, Paolo Bonzini wrote:
> Il 18/07/2014 15:06, Riccardo Brunetti ha scritto:
>>
>>
>> 1) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) = total number of
>> physical
>> cores (12) (both VMs have < 12 vCPUs) (ie. 8+4)
>> 2) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) > total number of
>> physical
>> cores (12) (both VMs have <= 12 vCPUs) (ie. 12+8)
>> 3) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) > total number of
>> physical
>> cores (12) (one VM has > 12 vCPUs) (ie. 16+8)
>> 4) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) > total number of
>> physical
>> cores (12) (both VMs have > 12 vCPUs) (ie. 16+16)
>
> The last two are usually bad ideas. The first two should be okay.
> Overcommitting works best if the VM are I/O bound (disk or network).
>
> If you're overcommitting, hyperthreading should in general be enabled.
>
So, it should be ok to have the first two options, but also considering
that with hyperthreading instead of 12 cores we can consider 24? Thus we
can go with:
1) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) = total number of cores
(24) (both VMs have < 24 vCPUs) (ie. 18+6)
2) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) > total number of cores
(24) (both VMs have <= 24 vCPUs) (ie. 24+10)
> Answers for very specific scenarios are hard to give though, so you
> should also benchmark your deployment with realistic workloads.
Yes, I understand.
>
> Paolo
Riccardo
next prev parent reply other threads:[~2014-07-18 16:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 13:06 CPU Overcommitting question Riccardo Brunetti
2014-07-18 15:30 ` Paolo Bonzini
2014-07-18 16:49 ` riccardo.brunetti [this message]
2014-07-18 21:30 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=705c3521045351691bbb7e00f52de710@dnshosting.it \
--to=riccardo.brunetti@dnshosting.it \
--cc=kvm@vger.kernel.org \
--cc=paolo.bonzini@gmail.com \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox