[Lguest] KSM in lguest?

Rusty Russell rusty at rustcorp.com.au
Mon Oct 21 15:02:24 EST 2013


Rusty Russell <rusty at rustcorp.com.au> writes:

> Earlence Fernandes <earlenceferns at gmail.com> writes:
>> What needs to be changed in lguest to enable samepage merging?
>> Does KSM make sense for lguest? (I would think so)
>>
>> If such a patch is needed, I'll be happy to conribute it.
>
> It's possible, but it's probably the trickiest TODO in lguest.
>
> We currently have a very naive system which pins pages when in use by
> the guest, and we discard that under memory pressure.  I believe that
> this will cause KSM not to function.
>
> The correct method is to use register_mmu_notifier.  See virt/kvm/ for
> how it is used.
>
> Cheers,
> Rusty.

Re-try with more modern Andrea email addr :)

Cheers,
Rusty.


More information about the Lguest mailing list