RE: [PATCH] VMware Balloon driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Magenheimer
Date: Monday, April 5, 2010 - 4:03 pm

> > On 04/06/2010 01:17 AM, Andrew Morton wrote:

I think Avi was being facetious ("_all_").  Hibernation assumes
everything in the machine is going to stop for awhile.  Ballooning
assumes that the machine has lower memory need for awhile, but
is otherwise fully operational.  Think of it as hot-plug memory
at a page granularity.

Historically, all OS's had a (relatively) fixed amount of memory
and, since it was fixed in size, there was no sense wasting any of it.
In a virtualized world, OS's should be trained to be much more
flexible as one virtual machine's "waste" could/should be another
virtual machine's "want".  Ballooning is currently the mechanism
for this; it places memory pressure on the OS to encourage it
to get by with less memory.  Unfortunately, it is difficult even
within an OS to determine what memory is wasted and what memory
might be used imminently... because LRU is only an approximation of
the future.  Hypervisors have an even more difficult problem not
only because they must infer this information from external events,
but they can double the problem if they infer the opposite of what
the OS actually does.

As Jeremy mentioned, Transcendent Memory (and its Linux implementations
"cleancache" and "frontswap") allows a guest kernel to give up memory
for the broader good while still retaining a probability that it
can get the same data back quickly.  This results in more memory
fluidity. Transcendent Memory ("tmem") still uses ballooning as
the mechanism to create memory pressure... it just provides an
insurance policy for that memory pressure.

Avi will point out that it is not clear that tmem can make use of
or benefit from tmem, but we need not repeat that discussion here.

Dan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] VMware Balloon driver, Dmitry Torokhov, (Sun Apr 4, 2:52 pm)
Re: [PATCH] VMware Balloon driver, Andrew Morton, (Mon Apr 5, 2:24 pm)
Re: [PATCH] VMware Balloon driver, Jeremy Fitzhardinge, (Mon Apr 5, 3:03 pm)
Re: [PATCH] VMware Balloon driver, Andrew Morton, (Mon Apr 5, 3:17 pm)
Re: [PATCH] VMware Balloon driver, Avi Kivity, (Mon Apr 5, 3:26 pm)
Re: [PATCH] VMware Balloon driver, Andrew Morton, (Mon Apr 5, 3:40 pm)
Re: [PATCH] VMware Balloon driver, Dmitry Torokhov, (Mon Apr 5, 3:58 pm)
Re: [PATCH] VMware Balloon driver, Dmitry Torokhov, (Mon Apr 5, 4:01 pm)
RE: [PATCH] VMware Balloon driver, Dan Magenheimer, (Mon Apr 5, 4:03 pm)
Re: [PATCH] VMware Balloon driver, Andrew Morton, (Mon Apr 5, 4:11 pm)
Re: [PATCH] VMware Balloon driver, Dmitry Torokhov, (Mon Apr 5, 4:28 pm)
Re: [PATCH] VMware Balloon driver, Jeremy Fitzhardinge, (Mon Apr 5, 4:28 pm)
Re: [PATCH] VMware Balloon driver, Andrew Morton, (Mon Apr 5, 4:34 pm)
RE: [PATCH] VMware Balloon driver, Dan Magenheimer, (Mon Apr 5, 5:26 pm)
[No subject], Avi Kivity, (Tue Apr 6, 9:28 am)
[No subject], Avi Kivity, (Tue Apr 6, 9:30 am)
[No subject], Avi Kivity, (Tue Apr 6, 9:32 am)
[No subject], Dmitry Torokhov, (Tue Apr 6, 10:06 am)
[No subject], Dan Magenheimer, (Tue Apr 6, 10:27 am)
[No subject], Avi Kivity, (Tue Apr 6, 10:42 am)
Re: [PATCH] VMware Balloon driver, Jeremy Fitzhardinge, (Tue Apr 6, 11:25 am)
Re: [PATCH] VMware Balloon driver, Avi Kivity, (Tue Apr 6, 11:36 am)
Re: [PATCH] VMware Balloon driver, Jeremy Fitzhardinge, (Tue Apr 6, 12:18 pm)
Re: [PATCH] VMware Balloon driver, Dave Hansen, (Tue Apr 6, 4:20 pm)
Re: [PATCH] VMware Balloon driver, Pavel Machek, (Wed Apr 7, 10:30 pm)
Re: [PATCH] VMware Balloon driver, Avi Kivity, (Thu Apr 8, 12:18 am)
Re: [PATCH] VMware Balloon driver, Jeremy Fitzhardinge, (Thu Apr 8, 10:01 am)
[PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Thu Apr 15, 2:00 pm)
Re: [PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Wed Apr 21, 12:59 pm)
Re: [PATCH v2] VMware Balloon driver, Andrew Morton, (Wed Apr 21, 1:18 pm)
Re: [PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Wed Apr 21, 1:52 pm)
Re: [PATCH v2] VMware Balloon driver, Andrew Morton, (Wed Apr 21, 2:13 pm)
Re: [PATCH v2] VMware Balloon driver, Andrew Morton, (Wed Apr 21, 4:54 pm)
Re: [PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Wed Apr 21, 5:00 pm)
Re: [PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Wed Apr 21, 5:09 pm)
Re: [Pv-drivers] [PATCH v2] VMware Balloon driver, Dmitry Torokhov, (Wed Apr 21, 6:02 pm)