From: David Hildenbrand <david@redhat.com>
To: 沈哲赟 <szy0127@sjtu.edu.cn>, qemu-devel@nongnu.org
Cc: mst@redhat.com
Subject: Re: [PATCH] hw/virtio: Add ioeventfd option for balloon
Date: Thu, 4 Jan 2024 22:30:51 +0100 [thread overview]
Message-ID: <9318bc3d-5a6d-4c4b-90f5-1209c7e4dc20@redhat.com> (raw)
In-Reply-To: <799810807.232349.1704352540541.JavaMail.zimbra@sjtu.edu.cn>
On 04.01.24 08:15, 沈哲赟 wrote:
> Traditional mmio in balloon makes Qemu do balloon inflation in the same
> thread as vcpu thread. In a CPU overcommitment scenario, host may run
> more than one vcpu threads on one host CPU, which makes
> madvise_dontneed_free() wait for a long time due to the function
> cond_resched() at host side.
>
> If using SEV/ES and the kernel provided by AMD, the overhead will
> become even much larger.(From 90s to 1400s when reclaming 4GB)
I recall that encrypted VMs etc are not compatible with ballooning. Are
there other (i.e., guest kernel) changes required for this setup to
work? ("provided by AMD")
>
> With ioeventfd, the thread for host to do balloon inflation will
> be separated from the VCPU thread, leading to better performance
> for the whole process of balloon inflation.(1400s to 263s
> in SEV CPU overcommitment scenario)
>
> As a para-virtual solution, balloon serves for host so the process
> of inflation in host needs to run on a host iothread instead of a guest
> VCPU thread.
>
> Signed-off-by: Zheyun Shen <szy0127@sjtu.edu.cn>
If this a resend i.e., v2, please indicate changes below the "---" and
use versions like "PATCH v2".
https://lkml.kernel.org/r/https://lkml.kernel.org/r/20231212075058.710918-1-szy0127@sjtu.edu.cn
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2024-01-04 21:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-04 7:15 [PATCH] hw/virtio: Add ioeventfd option for balloon 沈哲赟
2024-01-04 21:30 ` David Hildenbrand [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-12 7:50 Zheyun Shen
2023-12-13 9:43 ` David Hildenbrand
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=9318bc3d-5a6d-4c4b-90f5-1209c7e4dc20@redhat.com \
--to=david@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=szy0127@sjtu.edu.cn \
/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).