Skip to contentSkip to conversation

Transcendent Memory ("tmem") -capable kernel now publicly released

DISCUSSION Dan Magenheimer 3 participants 4 messages Mar 22, 2012 – Mar 26, 2012

lore
Share & tools
lore
#0 lore raw

Transcendent Memory ("tmem") [1] is a new approach to optimizing RAM utilization in a virtualized (and, in some cases, a physical) environment

Support for tmem has been in the Xen hypervisor since the 4.0 release, but the tmem protocols require cooperation between the hypervisor and guest OS kernel. While the guest-side kernel changes are relatively simple and non-intrusive, getting any new technology into any operating system can be, shall we say, challenging... :-) BUT...

Last week, Oracle released "Oracle Unbreakable Enterprise Kernel Release 2", the first publicly-available fully-supported[2] Linux kernel implementing all Xen-guest-side capabilities for tmem, including "cleancache" (ephemeral tmem pools), "frontswap" (persistent tmem pools), and in-kernel support for "self-ballooning".

So now, finally, it should be easy to give tmem a try!

Brief How-To:
1) Install [3] the UEK2 kernel (upgrade or co-existing) in your existing RHEL5 or RHEL6 (or Oracle Linux 5 or 6) PV or HVM guest(s).
2) Add the "tmem" kernel boot parameter in your guest's grub.conf.
3) Add the "tmem" Xen boot parameter on the xen.gz line in dom0's grub.conf. (Optionally add "tmem_compress" and "tmem_dedup" depending on your environment and testing plans.)
4) Reboot Xen and launch your guest(s). Check to ensure the guests are running UEK2.
5) Start a workload on your guest(s).
6) Use xentop to watch the fun! (Don't forget to press "t" in xentop for more detail.)

Thanks,
Dan Magenheimer

[1] For more information on tmem:

Technical overview: http://oss.oracle.com/projects/tmem
Xen Summit 2010 (including performance analysis):
http://www.slideshare.net/xen_com_mgr/transcendent-memoryupdate-xensummit2010final-3947783
Tmem without virtualization: http://lwn.net/Articles/454795/ and http://www.linux-kvm.org/wiki/images/d/d7/TmemNotVirt-Linuxcon2011-Final.pdf

[2] At this time, the tmem capability in UEK2 is officially a "Technology Preview" so is not recommended for production use.

[3] For more information on UEK2 including installation:

UEK2 install/getting started: http://www.oracle.com/technetwork/articles/servers-storage-admin/uek-rel2-getting-started-1555632.html

UEK2 Release notes: http://oss.oracle.com/ol6/docs/RELEASE-NOTES-UEK2-en.html

Press release: http://www.oracle.com/us/corporate/press/1555025

#1 lore raw
Quoted 49 lines · Dan Magenheimer

Transcendent Memory ("tmem") [1] is a new approach to optimizing RAM utilization in a virtualized (and, in some cases, a physical) environment

Support for tmem has been in the Xen hypervisor since the 4.0 release, but the tmem protocols require cooperation between the hypervisor and guest OS kernel.  While the guest-side kernel changes are relatively simple and non-intrusive, getting any new technology into any operating system can be, shall we say, challenging... :-)  BUT...

Last week, Oracle released "Oracle Unbreakable Enterprise Kernel Release 2", the first publicly-available fully-supported[2] Linux kernel implementing all Xen-guest-side capabilities for tmem, including "cleancache" (ephemeral tmem pools), "frontswap" (persistent tmem pools), and in-kernel support for "self-ballooning".

So now, finally, it should be easy to give tmem a try!

Brief How-To:
1) Install [3] the UEK2 kernel (upgrade or co-existing) in your existing RHEL5 or RHEL6 (or Oracle Linux 5 or 6) PV or HVM guest(s).
2) Add the "tmem" kernel boot parameter in your guest's grub.conf.
3) Add the "tmem" Xen boot parameter on the xen.gz line in dom0's grub.conf. (Optionally add "tmem_compress" and "tmem_dedup" depending on your environment and testing plans.)
4) Reboot Xen and launch your guest(s).  Check to ensure the guests are running UEK2.
5) Start a workload on your guest(s).
6) Use xentop to watch the fun!  (Don't forget to press "t" in xentop for more detail.)

Thanks,
Dan Magenheimer

[1] For more information on tmem:

   Technical overview: http://oss.oracle.com/projects/tmem
   Xen Summit 2010 (including performance analysis):
http://www.slideshare.net/xen_com_mgr/transcendent-memoryupdate-xensummit2010final-3947783
   Tmem without virtualization: http://lwn.net/Articles/454795/ and http://www.linux-kvm.org/wiki/images/d/d7/TmemNotVirt-Linuxcon2011-Final.pdf

[2] At this time, the tmem capability in UEK2 is officially a "Technology Preview" so is not recommended for production use.

[3] For more information on UEK2 including installation:

   UEK2 install/getting started: http://www.oracle.com/technetwork/articles/servers-storage-admin/uek-rel2-getting-started-1555632.html

   UEK2 Release notes: http://oss.oracle.com/ol6/docs/RELEASE-NOTES-UEK2-en.html

Quoted 7 lines

   Press release: http://www.oracle.com/us/corporate/press/1555025

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users

Hi Dan.

Is UEK2 configured with dom0 support by default or does one have to download the sources and recompile with appropriate options?

Joseph.

Signature · 3 lines
Founder | Director | VP Research
Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56
99 52 | Mobile: 0428 754 846
#2 lore raw

UEK2 as a Xen dom0 (was: [Xen-users] Transcendent Memory ("tmem") -capable kernel now publicly released)

Quoted 22 lines

From: Joseph Glanville [mailto:[email protected]]
Subject: Re: [Xen-devel] [Xen-users] Transcendent Memory ("tmem") -capable kernel now publicly released

Quoted 17 lines · Dan Magenheimer

Transcendent Memory ("tmem") [1] is a new approach to optimizing RAM utilization in a virtualized (and, in some cases, a physical) environment

Support for tmem has been in the Xen hypervisor since the 4.0 release, but the tmem protocols require cooperation between the hypervisor and guest OS kernel.  While the guest-side kernel changes are relatively simple and non-intrusive, getting any new technology into any operating system can be, shall we say, challenging... :-)  BUT...

Last week, Oracle released "Oracle Unbreakable Enterprise Kernel Release 2", the first publicly-available fully-supported[2] Linux kernel implementing all Xen-guest-side capabilities for tmem, including "cleancache" (ephemeral tmem pools), "frontswap" (persistent tmem pools), and in-kernel support for "self-ballooning".

So now, finally, it should be easy to give tmem a try!

Quoted 8 lines
Quoted 1 line

Brief How-To:

Hi Dan.

Is UEK2 configured with dom0 support by default or does one have to download the sources and recompile with appropriate options?

Joseph.

Hi Joseph --

Since UEK2 is based on Linux 3.0, I think it has all the support necessary to be used as a dom0. However I don't think all the latest post-3.0 bug fixes and performance fixes for dom0 support have been back-ported (yet). Let me check and get back to you (or see if another UEK2 expert will reply on-list).

In any case, the brief tmem how-to should probably have stated that the tmem feature is primarily for use in the hypervisor and guests, NOT dom0. Turning it on in dom0 may have some value for Xen systems that primarily use "file:" for disk access (i.e. are trading off potential data loss on a system crash for higher performance), but we don't really test that configuration.

Dan

#3 lore raw
In reply to Dan Magenheimer

Dan,

2012/3/22 Dan Magenheimer <[email protected]>:

Quoted 6 lines

Transcendent Memory ("tmem") [1] is a new approach to optimizing RAM utilization in a virtualized (and, in some cases, a physical) environment

OS kernel.  While the guest-side kernel changes are relatively simple and non-intrusive, getting any new technology into any operating system can be, shall we say, challenging... :-)  BUT...

thanks for the non-stoppable work on this!
I don't even remember if it's been 3 or 4 years, you have been working to make this finally happen.
It's awesome to see this will now finally come to all Xen' users benefit.

I hope many people will be using it in the future.

Everyone say
Thanks Dan!

Signature · 3 lines
the purpose of libvirt is to provide an abstraction layer hiding all
xen features added since 2006 until they were finally understood and
copied by the kvm devs.