[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1272647436.23895.2625.camel@nimitz>
Date: Fri, 30 Apr 2010 10:10:36 -0700
From: Dave Hansen <dave@...ux.vnet.ibm.com>
To: Dan Magenheimer <dan.magenheimer@...cle.com>
Cc: Avi Kivity <avi@...hat.com>, Pavel Machek <pavel@....cz>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, jeremy@...p.org,
hugh.dickins@...cali.co.uk, ngupta@...are.org, JBeulich@...ell.com,
chris.mason@...cle.com, kurt.hackel@...cle.com,
dave.mccracken@...cle.com, npiggin@...e.de,
akpm@...ux-foundation.org, riel@...hat.com
Subject: RE: Frontswap [PATCH 0/4] (was Transcendent Memory): overview
On Fri, 2010-04-30 at 09:43 -0700, Dan Magenheimer wrote:
> And, importantly, "have your host expose a device which is write
> cached by host memory"... you are implying that all guest swapping
> should be done to a device managed/controlled by the host? That
> eliminates guest swapping to directIO/SRIOV devices doesn't it?
If you have a single swap device, sure. But, I can also see a case
where you have a "fast" swap and "slow" swap.
The part of the argument about frontswap is that I like is the lack
sizing exposed to the guest. When you're dealing with swap-only, you
are stuck adding or removing swap devices if you want to "grow/shrink"
the memory footprint. If the host (or whatever is backing the
frontswap) wants to change the sizes, they're fairly free to.
The part that bothers me it is that it just pushes the problem
elsewhere. For KVM, we still have to figure out _somewhere_ what to do
with all those pages. It's nice that the host would have the freedom to
either swap or keep them around, but it doesn't really fix the problem.
I do see the lack of sizing exposed to the guest as being a bad thing,
too. Let's say we saved 25% of system RAM to back a frontswap-type
device on a KVM host. The first time a user boots up their set of VMs
and 25% of their RAM is gone, they're going to start complaining,
despite the fact that their 25% smaller systems may end up being faster.
I think I'd be more convinced if we saw this thing actually get used
somehow. How is a ram-backed frontswap better than a /dev/ramX-backed
swap file in practice?
-- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists