Re: [RFC 00/10] KVM: Add TMEM host/guest support

Avi Kivity
2012-06-12T12:01:48Z

On 06/12/2012 02:58 PM, Gleb Natapov wrote:
> On Tue, Jun 12, 2012 at 02:46:38PM +0300, Avi Kivity wrote:
>> On 06/11/2012 10:56 PM, Sasha Levin wrote:
>> >
>> > btw, so far we've been poking on half of the code here.
>> >
>> > What about frontswap over kvm-tmem? are there any specific tests you'd
>> > like to see there?
>>
>> hmm. On one hand, no one swaps these days so there aren't any good
>> benchmarks for it. On the other hand, with swapping, at least we're
>> guaranteed the page will be read in the future (unlike cache, where it's
>> quite possible it won't be). I don't know.
>>
>>
> Swapped page can be discarded without reading too.

Right.

The effects of frontswap can be achieved by swapping to a block device
that sets cache=writeback, more or less (esp. with trim support, you can
discard pages that you won't be needing again before they hit disk).

--
error compiling committee.c: too many arguments to function