<!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=937000303-01042009><FONT face=Arial color=#0000ff size=2>Hi
Ruby --</FONT></SPAN></DIV>
<DIV><SPAN class=937000303-01042009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=937000303-01042009><FONT face=Arial color=#0000ff size=2>Are
you sure your hardware won't support 64-bit? Nearly all processors built
in the last 3-4 years do, even though most people don't use it. In Linux
(dom0 is fine), do "cat /proc/cpuinfo | grep -w lm". If you get
anything, the cpu has 64-bit support.</FONT></SPAN></DIV>
<DIV><SPAN class=937000303-01042009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=937000303-01042009><FONT face=Arial color=#0000ff
size=2>Because of the limited address space in 32-bit, xenheap is very small and
the only way to use pointers from domheap is to bracket EVERY use of a pointer
(to memory obtained from domheap) with two function calls to ensure that the
pointer is mapped in the 32-bit range. This makes the tmem code unreadable
and unmanageable so I dropped 32-bit support.</FONT></SPAN></DIV>
<DIV><SPAN class=937000303-01042009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=937000303-01042009><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 8:02
PM<BR><B>To:</B> Dan Magenheimer<BR><B>Subject:</B> Re: [Tmem-users] compile
error after patch tmem-xen<BR><BR></FONT></DIV>
<DIV>Thanks Dan~</DIV>
<DIV> </DIV>
<DIV>My machine is 32-bit hardware, so it's pity that I cannot use
it.</DIV>
<DIV>Do you have any plan to transplant tmem into 32-bit machine? If not, why
don't you do that?Do you think it isn't necessary to do this?</DIV>
<DIV> </DIV>
<DIV>Best wishes!</DIV>
<DIV>
Ruby young<BR><BR></DIV>
<DIV class=gmail_quote>2009/3/31 Dan Magenheimer <SPAN dir=ltr><<A
href="mailto:dan.magenheimer@oracle.com">dan.magenheimer@oracle.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>Hi Ruby
--</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>One other thing I should
have told you: tmem will not work on 32-bit hardware or 32-bit
Xen. You must have 64-bit hardware and 64-bit Xen.</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><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. There was a patch in xen-unstable this year to do
that and tmem depends on it.</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><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><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><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 dir=ltr align=left><FONT face=Tahoma size=2>
<DIV class=im>-----Original Message-----<BR><B>From:</B> 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 class=h5><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></DIV></DIV></FONT></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>Hi Dan~<BR> <BR> The problem in first
mail I have found: in 26 lines of tmem_xen.h: <BR>
#define 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> so, I think it can change as
below:<BR> #define tmem_alloc_tmemheap_pages(_o)
alloc_xenheap_pages(_o)<BR> <BR> best
wishes!<BR>
Ruby<BR><BR>PS: the problem in first mail <BR> tmem.c: In
function ‘pool_alloc’:<BR> tmem.c:678: error: too many
arguments to function ‘alloc_xenheap_pages’<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> Thanks very much!<BR><BR><BR>
<DIV class=gmail_quote>2009/3/31 ruby young <SPAN dir=ltr><<A
href="mailto:yangyang@les.buaa.edu.cn"
target=_blank>yangyang@les.buaa.edu.cn</A>></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> </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> </DIV>
<DIV>
Ruby<BR></DIV>
<DIV class=gmail_quote>2009/3/31 ruby young <SPAN dir=ltr><<A
href="mailto:yangyang@les.buaa.edu.cn"
target=_blank>yangyang@les.buaa.edu.cn</A>></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">
<DIV>
<DIV>Hi Dan~</DIV>
<DIV> Thanks for your reply!</DIV></DIV>
<DIV> I will try to use and
feedback!<BR> If I have further idea in use tmem,
I'd like sharing the idea with you!</DIV>
<DIV> Best wishes!</DIV>
<DIV>
Ruby<BR></DIV>
<DIV class=gmail_quote>2009/3/31 Dan Magenheimer <SPAN dir=ltr><<A
href="mailto:dan.magenheimer@oracle.com"
target=_blank>dan.magenheimer@oracle.com</A>></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? 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, 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>
Ruby
Young<BR><BR><BR>2009/3/26 Dan Magenheimer <<A
href="mailto:dan.magenheimer@oracle.com"
target=_blank>dan.magenheimer@oracle.com</A>><BR><BR>Hi Ruby
--<BR><BR>Tmem is still under active development and I've been
focused on keeping up with xen-unstable. 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). Would that work for you? 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>
After I patched all of the tmem-xen-*.patch and
recompile xen 3.3.0, There is an error:<BR> tmem.c: In
function ‘pool_alloc’:<BR> tmem.c:678: error: too many
arguments to function ‘alloc_xenheap_pages’<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> Thanks very much!<BR><BR>--<BR>Best
wishes<BR><BR>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com"
target=_blank>9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System<BR>BeiHang
University(BUAA)<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>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com"
target=_blank>9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System<BR>BeiHang
University(BUAA)<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>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com"
target=_blank>9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System <BR>BeiHang
University(BUAA)<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>Best
wishes<BR><BR>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com"
target=_blank>9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System <BR>BeiHang
University(BUAA)<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>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com"
target=_blank>9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System <BR>BeiHang
University(BUAA)<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></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Best
wishes<BR><BR>杨漾<BR>北京航空航天大学计算机学院体系结构研究所<BR>电话:010-82338059-132<BR>邮件:<A
href="mailto:9907yruby@gmail.com">9907yruby@gmail.com</A><BR>地址:北京市海淀区学院路37号北京航空航天大学新主楼
G座1026<BR>--------------------------------------------------------------------------------<BR>Yang
Yang<BR>Institute of Computer Architecture and System <BR>BeiHang
University(BUAA)<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>