From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Lan Tianyu <tianyu.lan@intel.com>,
David Hildenbrand <david@redhat.com>,
pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com,
hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM/x86: Increase max vcpu number to 352
Date: Mon, 21 Aug 2017 17:44:49 +0200 [thread overview]
Message-ID: <20170821154445.GE20100@flask> (raw)
In-Reply-To: <20170818135758.GE11671@char.us.oracle.com>
2017-08-18 09:57-0400, Konrad Rzeszutek Wilk:
> On Tue, Aug 15, 2017 at 06:13:29PM +0200, Radim Krčmář wrote:
> > (Missed this mail before my last reply.)
> >
> > 2017-08-15 10:10-0400, Konrad Rzeszutek Wilk:
> > > On Tue, Aug 15, 2017 at 11:00:04AM +0800, Lan Tianyu wrote:
> > > > On 2017年08月12日 03:35, Konrad Rzeszutek Wilk wrote:
> > > > > Migration with 352 CPUs all being busy dirtying memory and also poking
> > > > > at various I/O ports (say all of them dirtying the VGA) is no problem?
> > > >
> > > > This depends on what kind of workload is running during migration. I
> > > > think this may affect service down time since there maybe a lot of dirty
> > > > memory data to transfer after stopping vcpus. This also depends on how
> > > > user sets "migrate_set_downtime" for qemu. But I think increasing vcpus
> > > > will break migration function.
> > >
> > > OK, so let me take a step back.
> > >
> > > I see this nice 'supported' CPU count that is exposed in kvm module.
> > >
> > > Then there is QEMU throwing out a warning if you crank up the CPU count
> > > above that number.
> >
> > I find the range between "recommended max" and "hard max" VCPU count
> > confusing at best ... IIUC, it was there because KVM internals had
> > problems with scaling and we will hit more in the future because some
> > loops still are linear on VCPU count.
>
> Is that documented somewhere? There are some folks would be interested
> in looking at that if it was known what exactly to look for..
Not really, Documentation/virtual/kvm/api.txt says:
The recommended max_vcpus value can be retrieved using the
KVM_CAP_NR_VCPUS of the KVM_CHECK_EXTENSION ioctl() at run-time.
And "recommended" is not explained any further. We can only state that
the value has no connection with userspace functionality, because it is
provided by KVM.
Red Hat was raising the KVM_CAP_NR_VCPUS after testing on a machine that
had enough physical cores. (PLE had to be slightly optimized when going
to 240.)
> > The exposed value doesn't say whether migration will work, because that
> > is a userspace thing and we're not aware of bottlenecks on the KVM side.
> >
> > > Red Hat's web-pages talk about CPU count as well.
> > >
> > > And I am assuming all of those are around what has been tested and
> > > what has shown to work. And one of those test-cases surely must
> > > be migration.
> >
> > Right, Red Hat will only allow/support what it has tested, even if
> > upstream has a practically unlimited count. I think the upstream number
> > used to be raised by Red Hat, which is why upstream isn't at the hard
> > implementation limit ...
>
> Aim for the sky! Perhaps then lets crank it up to 4096 upstream and let
> each vendor/distro/cloud decide the right number based on their
> testing.
And hit the ceiling. :)
NR_CPUS seems like a good number upstream.
next prev parent reply other threads:[~2017-08-21 15:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 10:00 [PATCH] KVM/x86: Increase max vcpu number to 352 Lan Tianyu
[not found] ` <20170810175056.GR2547@char.us.oracle.com>
2017-08-11 7:49 ` Lan Tianyu
2017-08-11 8:11 ` David Hildenbrand
2017-08-11 13:00 ` Radim Krčmář
2017-08-11 19:35 ` Konrad Rzeszutek Wilk
2017-08-15 3:00 ` Lan Tianyu
2017-08-15 14:10 ` Konrad Rzeszutek Wilk
2017-08-15 16:13 ` Radim Krčmář
2017-08-18 13:57 ` Konrad Rzeszutek Wilk
2017-08-21 15:44 ` Radim Krčmář [this message]
2017-08-16 3:07 ` Lan Tianyu
2017-08-18 14:20 ` Konrad Rzeszutek Wilk
2017-08-15 14:20 ` Radim Krčmář
2017-08-11 22:47 ` Denys Vlasenko
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=20170821154445.GE20100@flask \
--to=rkrcmar@redhat.com \
--cc=david@redhat.com \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=tglx@linutronix.de \
--cc=tianyu.lan@intel.com \
--cc=x86@kernel.org \
/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