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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Friday, April 23, 2010 - 6:57 am

On 04/23/2010 04:47 PM, Dan Magenheimer wrote:

Perhaps I misunderstood.  Isn't frontswap in front of the normal swap 
device?  So we do have double swapping, first to frontswap (which is in 
memory, yes, but still a nonzero cost), then the normal swap device.  
The io subsystem is loaded with writes; you only save the reads.

Better to swap to the hypervisor, and make it responsible for committing 
to disk on overcommit or keeping in RAM when memory is available.  This 
way we avoid the write to disk if memory is in fact available (or at 
least defer it until later).  This way you avoid both reads and writes 
if memory is available.


The guest can easily (and should) issue 64k dmas using scatter/gather.  
No need for copying.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

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

Messages in current thread:
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Avi Kivity, (Fri Apr 23, 6:57 am)
Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview, Valdis.Kletnieks, (Tue Apr 27, 4:52 am)