[Tmem-devel] [Tmem-users] compile error after patch tmem-xen

Dan Magenheimer dan.magenheimer at oracle.com
Mon Mar 30 11:11:25 PDT 2009


Hi Ruby --

Thanks for your feedback!

Tmem requires both a patched xen and a patched guest kernel.
Also, the xen tools installed on domain0 should be patched.
Then, tmem must be enabled with the xen boot parameter "tmem"
and "tmem_compress" will enable compression of all tmem
pages.

Do you know how to build and boot a new guest kernel inside
of a VM?  Would you prefer 2.6.18-xen or 2.6.29 as your guest
kernel?

Since tmem absorbs memory from xen's free memory list, you
can see from dom0 that tmem is using memory with:

xm info | grep free

If you have the "watch" command on your system,  you can do:

watch "xm info | grep free"

to watch xen's free memory change as tmem uses it.

Dan

-----Original Message-----
From: ruby young [mailto:yangyang at les.buaa.edu.cn]
Sent: Monday, March 30, 2009 7:07 AM
To: Dan Magenheimer
Subject: Re: [Tmem-users] compile error after patch tmem-xen


Hi Dan~

Thanks for your reply. 
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.
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?
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?

Best Wishes!
                                                                               Ruby Young 

 
2009/3/26 Dan Magenheimer <dan.magenheimer at oracle.com>

Hi Ruby --

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.

Would you mind describing what you are planning to use tmem for?

Thanks,
Dan
-----Original Message-----
From: ruby young [mailto:yangyang at les.buaa.edu.cn]
Sent: Wednesday, March 25, 2009 7:24 PM
To: tmem-users at oss.oracle.com
Subject: [Tmem-users] compile error after patch tmem-xen


Hi, all
    After I patched all of the tmem-xen-*.patch  and recompile xen 3.3.0, There is an error:
    tmem.c: In function ‘pool_alloc’:
    tmem.c:678: error: too many arguments to function ‘alloc_xenheap_pages’
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?
     Thanks very much!
                                                                                                                              
-- 
Best wishes

杨漾
北京航空航天大学计算机学院体系结构研究所
电话:010-82338059-132
邮件:9907yruby at gmail.com
地址:北京市海淀区学院路37号北京航空航天大学新主楼 G座1026
--------------------------------------------------------------------------------
Yang Yang
Institute of Computer Architecture and System 
BeiHang University(BUAA)
Tel: (86-10)82338059-132
Email: 9907yruby at gmail.com
Addr: Room 1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, PRC


_______________________________________________
Tmem-users mailing list
Tmem-users at oss.oracle.com
http://oss.oracle.com/mailman/listinfo/tmem-users





-- 
Best wishes

杨漾
北京航空航天大学计算机学院体系结构研究所
电话:010-82338059-132
邮件:9907yruby at gmail.com
地址:北京市海淀区学院路37号北京航空航天大学新主楼 G座1026
--------------------------------------------------------------------------------
Yang Yang
Institute of Computer Architecture and System 
BeiHang University(BUAA)
Tel: (86-10)82338059-132
Email: 9907yruby at gmail.com
Addr: Room 1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, PRC



More information about the Tmem-devel mailing list