Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Friday, April 30, 2010 - 11:59 am

On 04/30/2010 11:24 AM, Avi Kivity wrote:

Or fail whatever operation its trying to do.  You can only use
overcommit to fake unlimited resources for so long before you need a
government bailout.


Well, with caveats.  To be useful with migration the backing store needs
to be shared like other storage, so you can't use a specific host-local
fast (ssd) swap device.  And because the device is backed by pagecache
with delayed writes, it has much weaker integrity guarantees than a
normal device, so you need to be sure that the guests are only going to
use it for swap.  Sure, these are deployment issues rather than code
ones, but they're still issues.


Well, you still can't reclaim memory; you can write it out to storage. 
It may be cheaper/byte, but it's still a resource dedicated to the
guest.  But that's just a consequence of allowing overcommit, and to
what extent you're happy to allow it.

What kind of DMA engine do you have in mind?  Are there practical
memory->memory DMA engines that would be useful in this context?


It could be achieved with ballooning, but it isn't completely trivial. 
It wouldn't work terribly well with a driver domain setup, unless all
the swap-devices turned out to be backed by the same domain (which in
turn would need to know how to balloon in response to overall system
demand).  The partitioning of the pagecache among the guests would be at
the mercy of the mm subsystem rather than subject to any specific QoS or
other per-domain policies you might want to put in place (maybe fiddling
around with [fm]advise could get you some control over that).


Killing guests is pretty simple.  Presumably the oom killer will get kvm
processes like anything else?

    J

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

Messages in current thread:
Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Dan Magenheimer, (Thu Apr 22, 6:42 am)
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Jeremy Fitzhardinge, (Mon Apr 26, 5:49 pm)
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Jeremy Fitzhardinge, (Fri Apr 30, 10:52 am)
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Jeremy Fitzhardinge, (Fri Apr 30, 11:59 am)
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Martin Schwidefsky, (Mon May 10, 9:05 am)