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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Martin Schwidefsky
Date: Monday, May 10, 2010 - 9:05 am

On Fri, 30 Apr 2010 09:08:00 -0700
Dave Hansen <dave@linux.vnet.ibm.com> wrote:


Well, almost correct :-)
A dirty page (or one that is about to become dirty) can be in one of two
CMMA states:
1) stable
This is the case for pages where the kernel is doing some operation on
the page that will make it dirty, e.g. I/O. Before the kernel can
allow the operation the page has to be made stable. If the state
conversion to stable fails because the hypervisor removed the page the
page needs to get deleted from page cache and recreated from scratch.
2) potentially-volatile
This state is used for page cache pages for which a writable mapping
exists. The page can be removed by the hypervisor as long as the
physical per-page dirty bit is not set. As soon as the bit is set the
page is considered stable although the CMMA state still is potentially-
volatile.

In both cases the only thing the hypervisor can do with a dirty page is
to swap it as usual.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

--
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)