<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff size=2>Hi 
Ruby --</FONT></SPAN></DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff size=2>One 
other thing I should have told you:&nbsp; tmem will not work on 32-bit hardware 
or 32-bit Xen.&nbsp; You must have 64-bit hardware and 64-bit 
Xen.</FONT></SPAN></DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff size=2>The 
change you suggest below is incorrect... all alloc_xenheap_pages calls need to 
be converted to use two arguments.&nbsp; There was a patch in xen-unstable this 
year to do that and tmem depends on it.</FONT></SPAN></DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff size=2>I 
should be able to publish a 3.3.1 patch (and maybe a 64-bit 3.3.1-based xen) 
today or tomorrow.</FONT></SPAN></DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=687300413-31032009><FONT face=Arial color=#0000ff 
size=2>Dan</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> ruby young 
  [mailto:yangyang@les.buaa.edu.cn]<BR><B>Sent:</B> Tuesday, March 31, 2009 1:56 
  AM<BR><B>To:</B> Dan Magenheimer<BR><B>Subject:</B> Re: [Tmem-users] compile 
  error after patch tmem-xen<BR><BR></FONT></DIV>Hi 
  Dan~<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; The problem in first mail I have found: 
  in 26 lines of tmem_xen.h: <BR>&nbsp;&nbsp;&nbsp; #define&nbsp; 
  tmem_alloc_tmemheap_pages(_o) alloc_xenheap_pages(_o,0) have 2 arguments to 
  function alloc_xenheap_pages,but it should be only 1 argument. 
  <BR>&nbsp;&nbsp;&nbsp; so, I think it can change as 
  below:<BR>&nbsp;&nbsp;&nbsp; #define&nbsp; tmem_alloc_tmemheap_pages(_o) 
  alloc_xenheap_pages(_o)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; best 
  wishes!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  Ruby<BR><BR>PS: the problem in first mail <BR>&nbsp; &nbsp;tmem.c: In function 
  &#x2018;pool_alloc&#x2019;:<BR>&nbsp; &nbsp;tmem.c:678: error: too many arguments to 
  function &#x2018;alloc_xenheap_pages&#x2019;<BR>and I cannot find alloc_xenheap_pages 
  functions in that place but tmem_alloc_tmemheap_pages(0). What can I do if I 
  want to try to use tmem?<BR>&nbsp; &nbsp; Thanks very much!<BR><BR><BR>
  <DIV class=gmail_quote>2009/3/31 ruby young <SPAN dir=ltr>&lt;<A 
  href="mailto:yangyang@les.buaa.edu.cn">yangyang@les.buaa.edu.cn</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>Hi Dan~</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>By the way, I know how to build a guest kernel inside of VM, and I 
    prefer 2.6.18.8-xen.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Ruby<BR></DIV>
    <DIV class=gmail_quote>2009/3/31 ruby young <SPAN dir=ltr>&lt;<A 
    href="mailto:yangyang@les.buaa.edu.cn" 
    target=_blank>yangyang@les.buaa.edu.cn</A>&gt;</SPAN>
    <DIV>
    <DIV></DIV>
    <DIV class=h5><BR>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
      <DIV>
      <DIV>Hi Dan~</DIV>
      <DIV>&nbsp;&nbsp;&nbsp; Thanks for your reply!</DIV></DIV>
      <DIV>&nbsp;&nbsp;&nbsp; I will try to use and 
      feedback!<BR>&nbsp;&nbsp;&nbsp; If I have further idea in use tmem, I'd 
      like&nbsp;sharing the idea with you!</DIV>
      <DIV>&nbsp;&nbsp;&nbsp; Best wishes!</DIV>
      <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      Ruby<BR></DIV>
      <DIV class=gmail_quote>2009/3/31 Dan Magenheimer <SPAN dir=ltr>&lt;<A 
      href="mailto:dan.magenheimer@oracle.com" 
      target=_blank>dan.magenheimer@oracle.com</A>&gt;</SPAN> 
      <DIV>
      <DIV></DIV>
      <DIV><BR>
      <BLOCKQUOTE class=gmail_quote 
      style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi 
        Ruby --<BR><BR>Thanks for your feedback!<BR><BR>Tmem requires both a 
        patched xen and a patched guest kernel.<BR>Also, the xen tools installed 
        on domain0 should be patched.<BR>Then, tmem must be enabled with the xen 
        boot parameter "tmem"<BR>and "tmem_compress" will enable compression of 
        all tmem<BR>pages.<BR><BR>Do you know how to build and boot a new guest 
        kernel inside<BR>of a VM? &nbsp;Would you prefer 2.6.18-xen or 2.6.29 as 
        your guest<BR>kernel?<BR><BR>Since tmem absorbs memory from xen's free 
        memory list, you<BR>can see from dom0 that tmem is using memory 
        with:<BR><BR>xm info | grep free<BR><BR>If you have the "watch" command 
        on your system, &nbsp;you can do:<BR><BR>watch "xm info | grep 
        free"<BR><BR>to watch xen's free memory change as tmem uses it.<BR>
        <DIV><BR>Dan<BR><BR>-----Original Message-----<BR>From: ruby young 
        [mailto:<A href="mailto:yangyang@les.buaa.edu.cn" 
        target=_blank>yangyang@les.buaa.edu.cn</A>]<BR></DIV>
        <DIV>
        <DIV></DIV>
        <DIV>Sent: Monday, March 30, 2009 7:07 AM<BR>To: Dan 
        Magenheimer<BR>Subject: Re: [Tmem-users] compile error after patch 
        tmem-xen<BR><BR><BR>Hi Dan~<BR><BR>Thanks for your reply.<BR>I'm 
        interested in memory allocation method of xen and I have follow your 
        self-balloon and tmem. After rebuild self-ballooning, I think it's a 
        good idea of constructing a memory pool which can implemet dynamic 
        memory allocation and reduce IO paging, then I read your mail list and 
        you summit slide. It's really good idea and long-term planning of your 
        tmem.<BR>Now I have some problem of your tmem. For I didn't find readme 
        of tmem, I didn't know how to use it, that means after I patched 
        successfully how do I know tmem can work correctly?<BR>Another problem 
        is how do you test the usage rate of the whole memory? You have said the 
        tmem pool can full with the whole memory space, but how do you know? Is 
        it some test bench for you to say that?<BR><BR>Best Wishes!<BR>&nbsp; 
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ruby 
        Young<BR><BR><BR>2009/3/26 Dan Magenheimer &lt;<A 
        href="mailto:dan.magenheimer@oracle.com" 
        target=_blank>dan.magenheimer@oracle.com</A>&gt;<BR><BR>Hi Ruby 
        --<BR><BR>Tmem is still under active development and I've been focused 
        on keeping up with xen-unstable. &nbsp;It is difficult to keep active 
        development synchronized with many versions (of both xen and Linux) but 
        I have started working on a patch to work with Xen 3.3.1 (not 3.3.0). 
        &nbsp;Would that work for you? &nbsp;If so, I should have it in a few 
        days.<BR><BR>Would you mind describing what you are planning to use tmem 
        for?<BR><BR>Thanks,<BR>Dan<BR>-----Original Message-----<BR>From: ruby 
        young [mailto:<A href="mailto:yangyang@les.buaa.edu.cn" 
        target=_blank>yangyang@les.buaa.edu.cn</A>]<BR>Sent: Wednesday, March 
        25, 2009 7:24 PM<BR>To: <A href="mailto:tmem-users@oss.oracle.com" 
        target=_blank>tmem-users@oss.oracle.com</A><BR>Subject: [Tmem-users] 
        compile error after patch tmem-xen<BR><BR><BR>Hi, all<BR>&nbsp; 
        &nbsp;After I patched all of the tmem-xen-*.patch &nbsp;and recompile 
        xen 3.3.0, There is an error:<BR>&nbsp; &nbsp;tmem.c: In function 
        &#x2018;pool_alloc&#x2019;:<BR>&nbsp; &nbsp;tmem.c:678: error: too many arguments to 
        function &#x2018;alloc_xenheap_pages&#x2019;<BR>and I cannot find alloc_xenheap_pages 
        functions in that place but tmem_alloc_tmemheap_pages(0). What can I do 
        if I want to try to use tmem?<BR>&nbsp; &nbsp; Thanks very 
        much!<BR><BR>--<BR>Best 
        wishes<BR><BR>&#x6768;&#x6F3E;<BR>&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x8BA1;&#x7B97;&#x673A;&#x5B66;&#x9662;&#x4F53;&#x7CFB;&#x7ED3;&#x6784;&#x7814;&#x7A76;&#x6240;<BR>&#x7535;&#x8BDD;:010-82338059-132<BR>&#x90AE;&#x4EF6;:<A 
        href="mailto:9907yruby@gmail.com" 
        target=_blank>9907yruby@gmail.com</A><BR>&#x5730;&#x5740;&#xFF1A;&#x5317;&#x4EAC;&#x5E02;&#x6D77;&#x6DC0;&#x533A;&#x5B66;&#x9662;&#x8DEF;37&#x53F7;&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x65B0;&#x4E3B;&#x697C; 
        G&#x5EA7;1026<BR>--------------------------------------------------------------------------------<BR>Yang 
        Yang<BR>Institute of Computer Architecture and System<BR>BeiHang 
        University&#xFF08;BUAA&#xFF09;<BR>Tel: (86-10)82338059-132<BR>Email: <A 
        href="mailto:9907yruby@gmail.com" 
        target=_blank>9907yruby@gmail.com</A><BR>Addr: Room 1026,Building G,The 
        New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, 
        PRC<BR><BR><BR>_______________________________________________<BR>Tmem-users 
        mailing list<BR><A href="mailto:Tmem-users@oss.oracle.com" 
        target=_blank>Tmem-users@oss.oracle.com</A><BR><A 
        href="http://oss.oracle.com/mailman/listinfo/tmem-users" 
        target=_blank>http://oss.oracle.com/mailman/listinfo/tmem-users</A><BR><BR><BR><BR><BR><BR>--<BR>Best 
        wishes<BR><BR>&#x6768;&#x6F3E;<BR>&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x8BA1;&#x7B97;&#x673A;&#x5B66;&#x9662;&#x4F53;&#x7CFB;&#x7ED3;&#x6784;&#x7814;&#x7A76;&#x6240;<BR>&#x7535;&#x8BDD;:010-82338059-132<BR>&#x90AE;&#x4EF6;:<A 
        href="mailto:9907yruby@gmail.com" 
        target=_blank>9907yruby@gmail.com</A><BR>&#x5730;&#x5740;&#xFF1A;&#x5317;&#x4EAC;&#x5E02;&#x6D77;&#x6DC0;&#x533A;&#x5B66;&#x9662;&#x8DEF;37&#x53F7;&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x65B0;&#x4E3B;&#x697C; 
        G&#x5EA7;1026<BR>--------------------------------------------------------------------------------<BR>Yang 
        Yang<BR>Institute of Computer Architecture and System<BR>BeiHang 
        University&#xFF08;BUAA&#xFF09;<BR>Tel: (86-10)82338059-132<BR>Email: <A 
        href="mailto:9907yruby@gmail.com" 
        target=_blank>9907yruby@gmail.com</A><BR>Addr: Room 1026,Building G,The 
        New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, 
        PRC<BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV>
      <DIV>
      <DIV></DIV>
      <DIV><BR><BR clear=all><BR>-- <BR>Best 
      wishes<BR><BR>&#x6768;&#x6F3E;<BR>&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x8BA1;&#x7B97;&#x673A;&#x5B66;&#x9662;&#x4F53;&#x7CFB;&#x7ED3;&#x6784;&#x7814;&#x7A76;&#x6240;<BR>&#x7535;&#x8BDD;:010-82338059-132<BR>&#x90AE;&#x4EF6;:<A 
      href="mailto:9907yruby@gmail.com" 
      target=_blank>9907yruby@gmail.com</A><BR>&#x5730;&#x5740;&#xFF1A;&#x5317;&#x4EAC;&#x5E02;&#x6D77;&#x6DC0;&#x533A;&#x5B66;&#x9662;&#x8DEF;37&#x53F7;&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x65B0;&#x4E3B;&#x697C; 
      G&#x5EA7;1026<BR>--------------------------------------------------------------------------------<BR>Yang 
      Yang<BR>Institute of Computer Architecture and System <BR>BeiHang 
      University&#xFF08;BUAA&#xFF09;<BR>Tel: (86-10)82338059-132<BR>Email: <A 
      href="mailto:9907yruby@gmail.com" 
      target=_blank>9907yruby@gmail.com</A><BR>Addr: Room 1026,Building G,The 
      New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, 
      PRC<BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR><BR clear=all><BR>-- 
    <BR>
    <DIV>
    <DIV></DIV>
    <DIV class=h5>Best 
    wishes<BR><BR>&#x6768;&#x6F3E;<BR>&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x8BA1;&#x7B97;&#x673A;&#x5B66;&#x9662;&#x4F53;&#x7CFB;&#x7ED3;&#x6784;&#x7814;&#x7A76;&#x6240;<BR>&#x7535;&#x8BDD;:010-82338059-132<BR>&#x90AE;&#x4EF6;:<A 
    href="mailto:9907yruby@gmail.com" 
    target=_blank>9907yruby@gmail.com</A><BR>&#x5730;&#x5740;&#xFF1A;&#x5317;&#x4EAC;&#x5E02;&#x6D77;&#x6DC0;&#x533A;&#x5B66;&#x9662;&#x8DEF;37&#x53F7;&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x65B0;&#x4E3B;&#x697C; 
    G&#x5EA7;1026<BR>--------------------------------------------------------------------------------<BR>Yang 
    Yang<BR>Institute of Computer Architecture and System <BR>BeiHang 
    University&#xFF08;BUAA&#xFF09;<BR>Tel: (86-10)82338059-132<BR>Email: <A 
    href="mailto:9907yruby@gmail.com" 
    target=_blank>9907yruby@gmail.com</A><BR>Addr: Room 1026,Building G,The New 
    Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, 
    PRC<BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Best 
  wishes<BR><BR>&#x6768;&#x6F3E;<BR>&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x8BA1;&#x7B97;&#x673A;&#x5B66;&#x9662;&#x4F53;&#x7CFB;&#x7ED3;&#x6784;&#x7814;&#x7A76;&#x6240;<BR>&#x7535;&#x8BDD;:010-82338059-132<BR>&#x90AE;&#x4EF6;:<A 
  href="mailto:9907yruby@gmail.com">9907yruby@gmail.com</A><BR>&#x5730;&#x5740;&#xFF1A;&#x5317;&#x4EAC;&#x5E02;&#x6D77;&#x6DC0;&#x533A;&#x5B66;&#x9662;&#x8DEF;37&#x53F7;&#x5317;&#x4EAC;&#x822A;&#x7A7A;&#x822A;&#x5929;&#x5927;&#x5B66;&#x65B0;&#x4E3B;&#x697C; 
  G&#x5EA7;1026<BR>--------------------------------------------------------------------------------<BR>Yang 
  Yang<BR>Institute of Computer Architecture and System <BR>BeiHang 
  University&#xFF08;BUAA&#xFF09;<BR>Tel: (86-10)82338059-132<BR>Email: <A 
  href="mailto:9907yruby@gmail.com">9907yruby@gmail.com</A><BR>Addr: Room 
  1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian District, 
  Beijing 100083, PRC<BR></BLOCKQUOTE></BODY></HTML>