From: Adam Litke <alitke@redhat.com>
To: rusty@rustcorp.com.au
Cc: msivak@redhat.com, virtualization@lists.linuxfoundation.org,
dfediuck@redhat.com
Subject: Re: Users of ballooning, please come forth!
Date: Wed, 19 Feb 2014 09:49:14 -0500 [thread overview]
Message-ID: <20140219144914.GA18487@redhat.com> (raw)
In-Reply-To: <8761om2no9.fsf@rustcorp.com.au>
> On Tue Feb 11 06:01:10 UTC 2014, Rusty Russell wrote:
> Hi all!
>
> We're debating the design of the balloon for the OASIS spec.
> Noone likes the current one, but there are fundamental usage pattern
> questions which we're fumbling with.
>
> So if you know anyone who is using it in production? If, so, how? In
> particular, would you be happy with guests simply giving the host back
> whatever memory they can spare (as Xen's self-balloon does)? Or do
> you
> require the host-forcing approach? Comment or email please!
Hi Rusty,
I do not maintain any production setups but I have played with
ballooning (especially automatic ballooning) for quite some time now.
Most recently, I am working with the oVirt project [1] to enable
memory over-commitment and offer SLAs around VM memory usage.
To address the question about whether the Xen self-balloon approach
would be enough... I think a guest-driven approach such as this would
work very well in self-hosted/private cloud deployments where a single
entity owns all of the virtual machines that are sharing memory. As
soon as you move to a "public" cloud environment where multiple
customers are sharing a single host then you will need a "bad cop" to
enforce some limits. (Yes I know ballooning always requires guest
cooperation, but when you combine it with punative cgroups on the host
the guest has a compelling reason to cooperate.) When I say "bad
cop", I mean a completely host-controlled balloon as we currently do
in oVirt with the Memory Overcommitment Manager [2]. This allows
customers to expect a certain minimum amount of performance.
In order to support both modes of operation (at the same time) how
about supporting two virtio configuration variables in the balloon
driver: auto_min and auto_max. These variables would allow the host
to restrict the range in which the auto-balloon algorithm may operate.
Setting both to 0 would disable auto-ballooning and require all
inflate/deflate commands to come from the host. I think there are
some very interesting possibilities how auto-balloon can be combined
with host directed ballooning to yield good results in a variety of
configurations [3].
[1] http://www.ovirt.org/Home
[2] http://www.ovirt.org/MoM
[3] While composing this email I thought of an idea for making limited
use of auto-balloon in a public cloud environment to provide the host
with a memory stress heuristic for guests. In this scenario, auto_min
and auto_max would be zero (most of the time) and ballooning would be
controlled by MOM. Occasionally, auto_min and auto_max would be set
to values slightly above and below the current balloon size. MOM
would then observe the change in balloon size to gauge whether the
guest currently has a memory surplus or deficit.
--
Adam Litke
next prev parent reply other threads:[~2014-02-19 14:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 6:01 Users of ballooning, please come forth! Rusty Russell
2014-02-19 14:49 ` Adam Litke [this message]
2014-02-20 4:23 ` Rusty Russell
2014-02-20 13:17 ` Adam Litke
2014-02-20 13:42 ` Luiz Capitulino
2014-02-21 1:28 ` Rusty Russell
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=20140219144914.GA18487@redhat.com \
--to=alitke@redhat.com \
--cc=dfediuck@redhat.com \
--cc=msivak@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=virtualization@lists.linuxfoundation.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).