From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Magenheimer Subject: RE: Basics on TMEM usage/setup? Date: Thu, 15 Jul 2010 08:36:51 -0700 (PDT) Message-ID: References: <4C3E1BE5.4030605@buzz-media.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1611012272==" Return-path: In-Reply-To: <4C3E1BE5.4030605@buzz-media.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rick Boone , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1611012272== Content-Type: multipart/alternative; boundary="__127920822385995466abhmt014" --__127920822385995466abhmt014 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Rick - =20 Have you added the tmem parameter in the Xen boot line in dom0 (e.g. the li= ne in grub.conf with xen.gz)? Tmem is not enabled by default in the offici= al 4.0 release bits. Note that you must also explicitly provide the tmem_c= ompress parameter and (if using 4.0.1-rc) tmem_dedup on the Xen boot line i= f you want that functionality turned on in tmem. =20 Also, what guest kernels are you using? I now have a fully built alternate= kernel rpm for EL5u5 at: http://oss.oracle.com/projects/tmem/files/oel5u5/= (And look at the README that is there.) If you are not using EL5u5, but y= ou are familiar with src rpms and building your own kernel, the tmem patch = there is the most recent for a 2.6.18-based kernel and has full in-kernel s= elf-ballooning builtin. And if you are using a 2.6.32-based kernel, the si= ster directory for RHEL6beta has the same (and also a README). Note that f= or these recent tmem Linux patches, tmem must also be given as a boot param= eter to the guest kernel in the guest grub.conf. Sorry that the tmem "user" documentation is not very up to date. I've been= focused on making tmem easier to use via pre-built rpm's and also pushing = it upstream into Linux, both of which have resulted in linux patch (and som= e use-model) changes. In the meantime, I'd be happy to work directly with = you (onlist or offlist) to help you get tmem running in your environment. =20 Thanks, Dan =20 P.S. The terms "precache" and "preswap" are now obsolete as the Linux commu= nity dissed them as too generic. I have renamed them "cleancache" and "fro= ntswap". See http://lwn.net/Articles/386090/ But, yes I know, much tmem do= cumentation still has the old names and I need to change those docs. =20 From: Rick Boone [mailto:rick@buzz-media.com]=20 Sent: Wednesday, July 14, 2010 2:20 PM To: xen-devel@lists.xensource.com Subject: [Xen-devel] Basics on TMEM usage/setup? =20 Hey,=20 I can't seem to find any general guidelines/FAQ's/docs for using TMEM in xe= n 4.0. I've built the kernel with the tmem config options (tmem, precache, = preswap), but whenever I run "xm tmem-list -a", I get a "-1" response. Feel= s like I might have missed something - any info out there? -- Rick --__127920822385995466abhmt014 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable

Hi Rick –

 

Have you added the tmem parameter in the Xen boot line in = dom0 (e.g. the line in grub.conf with xen.gz)?  Tmem is not enabled by default = in the official 4.0 release bits.  Note that you must also explicitly provi= de the tmem_compress parameter and (if using 4.0.1-rc) tmem_dedup on the Xen boo= t line if you want that functionality turned on in tmem.

 

Also, what guest kernels are you using?  I now have a= fully built alternate kernel rpm for EL5u5 at: http://oss.ora= cle.com/projects/tmem/files/oel5u5/  (And look at the README that is there.) If you are not using EL5u5, but you ar= e familiar with src rpms and building your own kernel, the tmem patch there= is the most recent for a 2.6.18-based kernel and has full in-kernel self-bal= looning builtin.  And if you are using a 2.6.32-based kernel, the sister dir= ectory for RHEL6beta has the same (and also a README).  Note that for these= recent tmem Linux patches, tmem must also be given as a boot parameter to the gu= est kernel in the guest grub.conf.


Sorry that the tmem “user” documentation is not very up to da= te.  I’ve been focused on making tmem easier to use via pre-built rpm= 217;s and also pushing it upstream into Linux, both of which have resulted in l= inux patch (and some use-model) changes.  In the meantime, I’d be h= appy to work directly with you (onlist or offlist) to help you get tmem runnin= g in your environment.

 

Thanks,

Dan

 

P.S. The terms “precache” and “preswap&#= 8221; are now obsolete as the Linux community dissed them as too generic. = I have renamed them “cleancache” and “frontswap”.  = See ht= tp://lwn.net/Articles/386090/ But, yes I know, much tmem documentation still has the old= names and I need to change those docs.

 

From: Rick Boone [mailto:rick@buzz-media.com]
Sent: Wednesday, July 14, 2010 2:20 PM
To: xen-devel@lists.xensource.com
Subject: [Xen-devel] Basics on TMEM usage/setup?
=

 

Hey,

I can't seem to find any general guidelines/FAQ's/docs for using TMEM in = xen 4.0. I've built the kernel with the tmem config options (tmem, precache, preswap), but whenever I run "xm tmem-list -a", I get a "-1" response. Feels like I might have missed something - any i= nfo out there?

-- Rick

--__127920822385995466abhmt014-- --===============1611012272== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1611012272==--