From: David Hildenbrand <david@redhat.com>
To: Alexander Duyck <alexander.duyck@gmail.com>
Cc: virtio-dev@lists.oasis-open.org, qemu-devel@nongnu.org,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH v21 QEMU 5/5] virtio-balloon: Provide an interface for free page reporting
Date: Fri, 24 Apr 2020 17:34:37 +0200 [thread overview]
Message-ID: <6f7f970f-9188-726e-39da-6e0954ab9fdf@redhat.com> (raw)
In-Reply-To: <CAKgT0Ud1WVUV5VNCCBqJtYPSLCZTq5oXGUyvqHmXdnTQUko6qQ@mail.gmail.com>
>> Also, I do wonder if we want to default-enable it. It can still have a
>> negative performance impact and some people might not want that.
>
> The negative performance impact should be minimal. At this point the
> hinting process ends up being very light since it only processes a
> small chunk of the memory before it shuts down for a couple seconds.
> In my original data the only time any significant performance
> regression was seen was with page shuffling enabled, and that was
> before I put limits on how many pages we could process per pass and
> how frequently we would make a pass through memory. My thought is that
> we are much better having it enabled by default rather than having it
> disabled by default. In the worst case scenario we have a little bit
> of extra thread noise from it popping up running for a few
> milliseconds and then sleeping for about two seconds, but the benefit
> side is that the VMs will do us a favor and restrict themselves to a
> much smaller idle footprint until such time as the memory is actually
> needed in the guest.
While I agree that the impact is small, there *is* a noticeable
performance impact. One of the main users is memory overcommit.
Also, imagine the following scenarios:
- RT workload in the guest. Just because you have a virtio-balloon
device defined would mean something is suddenly active and
discarding/trying to discard pages.
- vfio: free page reporting is completely useless right now and
*only* overhead.
- prealloc does not expect that pages get suddenly discarded
- s390x, which has CMM and might not benefit at all (except when using
huge pages as backing storage)
No, I don't think it's acceptable to enable this as default. I remember
that it is quite common to just define a balloon device but never use it.
E.g., "A virtual memory balloon device is added to all Xen and KVM/QEMU
guest virtual machines. It will be seen as <memballoon> element" [1].
I think we should let upper layers decide (just as we do for free page
hinting, for example).
[1]
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/section-libvirt-dom-xml-memory-baloon-device
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2020-04-24 15:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-22 18:20 [PATCH v21 QEMU 0/5] virtio-balloon: add support for free page reporting Alexander Duyck
2020-04-22 18:20 ` [PATCH v21 QEMU 1/5] linux-headers: Update to allow renaming of free_page_report_cmd_id Alexander Duyck
2020-04-22 18:21 ` [PATCH v21 QEMU 2/5] linux-headers: update to contain virito-balloon free page reporting Alexander Duyck
2020-04-22 18:21 ` [PATCH v21 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint' Alexander Duyck
2020-04-24 11:23 ` David Hildenbrand
2020-04-24 14:56 ` Alexander Duyck
2020-04-24 15:11 ` David Hildenbrand
2020-04-22 18:21 ` [PATCH v21 QEMU 4/5] virtio-balloon: Implement support for page poison tracking feature Alexander Duyck
2020-04-23 8:11 ` David Hildenbrand
2020-04-23 14:46 ` Alexander Duyck
2020-04-23 16:02 ` David Hildenbrand
2020-04-23 17:49 ` Alexander Duyck
2020-04-24 7:07 ` David Hildenbrand
2020-04-24 7:53 ` Cornelia Huck
2020-04-24 7:56 ` David Hildenbrand
2020-04-22 18:21 ` [PATCH v21 QEMU 5/5] virtio-balloon: Provide an interface for free page reporting Alexander Duyck
2020-04-24 11:20 ` David Hildenbrand
2020-04-24 15:18 ` Alexander Duyck
2020-04-24 15:34 ` David Hildenbrand [this message]
2020-04-24 16:09 ` Alexander Duyck
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=6f7f970f-9188-726e-39da-6e0954ab9fdf@redhat.com \
--to=david@redhat.com \
--cc=alexander.duyck@gmail.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=virtio-dev@lists.oasis-open.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;
as well as URLs for NNTP newsgroup(s).