kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: tfjellstrom@shaw.ca
Cc: kvm@vger.kernel.org
Subject: Re: automatic memory ballooning?
Date: Sun, 16 Aug 2009 17:30:59 +0300	[thread overview]
Message-ID: <4A881823.2040500@redhat.com> (raw)
In-Reply-To: <200908160818.46436.tfjellstrom@shaw.ca>

On 08/16/2009 05:18 PM, Thomas Fjellstrom wrote:
> On Sun August 16 2009, Avi Kivity wrote:
>    
>> On 08/16/2009 12:55 PM, Thomas Fjellstrom wrote:
>>      
>>> I'm wondering if kvm supports automatic memory ballooning. I've had a kvm
>>> guest running for a couple days, and the balloon driver was loaded, and I
>>> could manually change the amount of ram it had allocated in the console,
>>> but it never seemed to change automatically.
>>>
>>> Is there any support for that?
>>>        
>> That would be part of a management application.  qemu only knows about
>> the guest it controls, while ballooning needs a global view of the system.
>>      
> All a single guest needs to do is only use as much ram as it needs at any
> given time (up to the max allocated). So if the guest hasn't used much ram in
> a given time frame, "free" the free ram from the host, and only reallocate
> when needed. It doesn't _need_ a management application, just happens to be
> the way people do it.
>    

Well, for a single guest you are correct, but this is better solved 
generically for multiple guests.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2009-08-16 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-16  9:55 automatic memory ballooning? Thomas Fjellstrom
2009-08-16 11:32 ` Avi Kivity
2009-08-16 14:18   ` Thomas Fjellstrom
2009-08-16 14:30     ` Avi Kivity [this message]
2009-08-16 15:07     ` Dor Laor
2009-08-17 10:49       ` Thomas Fjellstrom
2009-08-17 11:35         ` Avi Kivity
2009-08-17 12:32           ` Thomas Fjellstrom
2009-08-17 12:46             ` Avi Kivity
2009-08-17 12:33   ` Thomas Fjellstrom

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=4A881823.2040500@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=tfjellstrom@shaw.ca \
    /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).