From: Peter Xu <peterx@redhat.com>
To: Shivam Kumar <shivam.kumar1@nutanix.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, david@redhat.com,
quintela@redhat.com, dgilbert@redhat.com, kvm@vger.kernel.org,
Yong Huang <huangy81@chinatelecom.cn>
Subject: Re: [RFC PATCH 0/1] QEMU: Dirty quota-based throttling of vcpus
Date: Tue, 6 Dec 2022 11:00:02 -0500 [thread overview]
Message-ID: <Y49nAjrD0uxUp+Ll@x1n> (raw)
In-Reply-To: <0cde1cb7-7fce-c443-760c-2bb244e813fe@nutanix.com>
Hi, Shivam,
On Tue, Dec 06, 2022 at 11:18:52AM +0530, Shivam Kumar wrote:
[...]
> > Note
> > ----------
> > ----------
> >
> > We understand that there is a good scope of improvement in the current
> > implementation. Here is a list of things we are working on:
> > 1) Adding dirty quota as a migration capability so that it can be toggled
> > through QMP command.
> > 2) Adding support for throttling guest DMAs.
> > 3) Not enabling dirty quota for the first migration iteration.
Agreed.
> > 4) Falling back to current auto-converge based throttling in cases where dirty
> > quota throttling can overthrottle.
If overthrottle happens, would auto-converge always be better?
> >
> > Please stay tuned for the next patchset.
> >
> > Shivam Kumar (1):
> > Dirty quota-based throttling of vcpus
> >
> > accel/kvm/kvm-all.c | 91 +++++++++++++++++++++++++++++++++++++++
> > include/exec/memory.h | 3 ++
> > include/hw/core/cpu.h | 5 +++
> > include/sysemu/kvm_int.h | 1 +
> > linux-headers/linux/kvm.h | 9 ++++
> > migration/migration.c | 22 ++++++++++
> > migration/migration.h | 31 +++++++++++++
> > softmmu/memory.c | 64 +++++++++++++++++++++++++++
> > 8 files changed, 226 insertions(+)
> >
>
> It'd be great if I could get some more feedback before I send v2. Thanks.
Sorry to respond late.
What's the status of the kernel patchset?
From high level the approach looks good at least to me. It's just that (as
I used to mention) we have two similar approaches now on throttling the
guest for precopy. I'm not sure what's the best way to move forward if
without doing a comparison of the two.
https://lore.kernel.org/all/cover.1669047366.git.huangy81@chinatelecom.cn/
Sorry to say so, and no intention to create a contention, but merging the
two without any thought will definitely confuse everybody. We need to
figure out a way.
From what I can tell..
One way is we choose one of them which will be superior to the other and
all of us stick with it (for either higher possibility of migrate, less
interference to the workloads, and so on).
The other way is we take both, when each of them may be suitable for
different scenarios. However in this latter case, we'd better at least be
aware of the differences (which suites what), then that'll be part of
documentation we need for each of the features when the user wants to use
them.
Add Yong into the loop.
Any thoughts?
--
Peter Xu
next prev parent reply other threads:[~2022-12-06 16:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 22:54 [RFC PATCH 0/1] QEMU: Dirty quota-based throttling of vcpus Shivam Kumar
2022-11-20 22:54 ` [RFC PATCH 1/1] " Shivam Kumar
2022-11-21 11:35 ` Philippe Mathieu-Daudé
2022-11-22 4:00 ` Shivam Kumar
2023-02-13 9:17 ` Shivam Kumar
2022-12-06 5:48 ` [RFC PATCH 0/1] QEMU: " Shivam Kumar
2022-12-06 16:00 ` Peter Xu [this message]
2022-12-06 17:29 ` Hyman Huang
2022-12-18 19:12 ` Shivam Kumar
2022-12-19 14:19 ` Hyman Huang
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=Y49nAjrD0uxUp+Ll@x1n \
--to=peterx@redhat.com \
--cc=david@redhat.com \
--cc=dgilbert@redhat.com \
--cc=huangy81@chinatelecom.cn \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=shivam.kumar1@nutanix.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;
as well as URLs for NNTP newsgroup(s).