[Lguest] KSM in lguest?

Rusty Russell rusty at rustcorp.com.au
Mon Oct 21 13:11:52 EST 2013


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.


More information about the Lguest mailing list