All of lore.kernel.org
 help / color / mirror / Atom feed
* Queries on KSM & Tmem
@ 2010-09-12 18:33 ash win
  2010-09-13 16:48 ` Dan Magenheimer
  0 siblings, 1 reply; 2+ messages in thread
From: ash win @ 2010-09-12 18:33 UTC (permalink / raw)
  To: Xen-devel, tmem-devel; +Cc: Dan Magenheimer, ashwin

Does XEN fully support KSM (Kernel Samepage Merging)? if yes then whats the use of tmem?I understand the fact that KSM may provide overcommitment to the Guest OSs but at the cost of CPU utilization for finding and merging same pages,but KSM can also be disabled.
 
And why tmem supports only PV and not HVM ?If complete overcommitment is not good according to tmem concept then why page sharing is allowed in HVM? Whether overcommitment is not provided to HVM Guest?

--Regards
Ashwin Vasani
Pune Institute of Computer Technology
Pune,India



^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Queries on KSM & Tmem
  2010-09-12 18:33 Queries on KSM & Tmem ash win
@ 2010-09-13 16:48 ` Dan Magenheimer
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Magenheimer @ 2010-09-13 16:48 UTC (permalink / raw)
  To: ash win, Xen-devel, tmem-devel; +Cc: ashwin

> From: ash win [mailto:ash_win012006@yahoo.com]
> Sent: Sunday, September 12, 2010 12:34 PM
> To: Xen-devel@lists.xensource.com; tmem-devel@oss.oracle.com
> Cc: Dan Magenheimer; ashwin
> Subject: [Xen-devel] Queries on KSM & Tmem
> 
> Does XEN fully support KSM (Kernel Samepage Merging)? if yes then whats
> the use of tmem?I understand the fact that KSM may provide
> overcommitment to the Guest OSs but at the cost of CPU utilization for
> finding and merging same pages,but KSM can also be disabled.

KSM was designed to work for KVM and runs in the KVM "host" Linux
kernel, so KSM does not work for Xen.  KSM is essentially the same
as VMware transparent page sharing, though the underlying implementation
is different.

Tmem is very different from KSM (and transparent page sharing) even
though they have similar objectives.  Importantly, tmem avoids
"host swapping" which is a big problem for any page sharing
implementation.

> And why tmem supports only PV and not HVM ?If complete overcommitment
> is not good according to tmem concept then why page sharing is allowed
> in HVM? Whether overcommitment is not provided to HVM Guest?

Tmem requires kernel changes.  It actually DOES work with HVM
as long as the HVM kernel has these changes.  I have implemented
these changes on top of recently submitted PV-on-HVM Linux
changes and tmem works fine.  However, HVM kernels such as
Microsoft Windows without tmem changes cannot use tmem.

Hope that helps!
Dan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-13 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-12 18:33 Queries on KSM & Tmem ash win
2010-09-13 16:48 ` Dan Magenheimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.