From: "T.J. Alumbaugh" <talumbau@google.com>
To: David Hildenbrand <david@redhat.com>
Cc: "Sudarshan Rajagopalan (QUIC)" <quic_sudaraja@quicinc.com>,
hch@lst.de, kai.huang@intel.com, jon@nutanix.com,
Yuanchu Xie <yuanchu@google.com>, linux-mm <linux-mm@kvack.org>
Subject: Re: [LSF/MM/BPF TOPIC] VM Memory Overcommit
Date: Tue, 28 Feb 2023 20:21:11 -0700 [thread overview]
Message-ID: <CABmGT5F70X0W+0-UUBEHLGhAFTaRys_hvi-=n1XsKmu4cQw71Q@mail.gmail.com> (raw)
In-Reply-To: <d1c562e2-58a5-14b0-9db9-de1c492fe921@redhat.com>
On Tue, Feb 28, 2023 at 2:21 AM David Hildenbrand <david@redhat.com> wrote:
>
> What we actually might want is a way to tell the OS ruining inside the
> VM to "please try not using more than XXX MiB of physical memory" but
> treat it as a soft limit. So in case we mess up, or there is a sudden
> peak in memory consumption due to a workload, we won't harm the guest
> OS/workload, and don't have to act immediately to avoid trouble. One can
> think of it like an evolution of memory ballooning: instead of creating
> artificial memory pressure by inflating the balloon that is fairly event
> driven and requires explicit memory deflation, we teach the OS to do it
> natively and pair it with free page reporting.
That's interesting. In our forthcoming balloon spec for this feature,
we provide a way to send such data from the host to the guest. We call
the general mechanism "notifications" right now, but we did not think
of that use case so far.
>
> All free physical memory inside the VM can be reported using free page
> reporting to the hypervisor, and the OS will try sticking to the
> requested "logical" VM size, unless there is real demand for more memory.
>
Yes, the two mechanisms can definitely work in tandem for such a use
case, although we have not tried that yet. Thanks for these ideas.
-T.J.
next prev parent reply other threads:[~2023-03-01 3:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-22 23:59 T.J. Alumbaugh
2023-02-28 6:02 ` Gupta, Pankaj
2023-03-01 3:09 ` T.J. Alumbaugh
2023-02-28 9:20 ` David Hildenbrand
2023-02-28 22:38 ` SeongJae Park
2023-02-28 22:52 ` David Hildenbrand
2023-03-02 3:26 ` David Rientjes
2023-03-02 9:32 ` David Hildenbrand
2023-03-01 3:21 ` T.J. Alumbaugh [this message]
2023-05-19 21:39 ` T.J. Alumbaugh
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='CABmGT5F70X0W+0-UUBEHLGhAFTaRys_hvi-=n1XsKmu4cQw71Q@mail.gmail.com' \
--to=talumbau@google.com \
--cc=david@redhat.com \
--cc=hch@lst.de \
--cc=jon@nutanix.com \
--cc=kai.huang@intel.com \
--cc=linux-mm@kvack.org \
--cc=quic_sudaraja@quicinc.com \
--cc=yuanchu@google.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