Hi, Where could find some documentation about the following features which xl command has ?I have read some papers about tmem and try to use it,but I don''t know how to use the tmem interface that xl command provide.Does anybody can help me? tmem-list List tmem pools tmem-freeze Freeze tmem pools tmem-destroy Destroy tmem pools tmem-thaw Thaw tmem pools tmem-set Change tmem settings tmem-shared-auth De/authenticate shared tmem pool tmem-freeable Get information about how much freeable memory (MB) is in-use by tmem _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Il giorno 01/mar/2012, alle ore 04:33, hxkhust ha scritto:> Where could find some documentation about the following features which xl command has ?I have read some papers about tmem and try to use it,but I don''t know how to use the tmem interface that xl command provide.Does anybody can help me?You don''t need to run any xm/xl command to use tmem. Tmem will be provided by the hypervisor to guests simply adding the ''tmem'' option to its command line (and you''ll probably want tmem_dedup and tmem_compress too, refer to the docs to know if they are a good or bad choice for you). You can check if it has been actually enabled by looking at the hypervisor''s dmesg for a line like this: (XEN) tmem: initialized comp=1 dedup=1 tze=0 global-lock=0 Guest usage of tmem is actually specific to the guest. Recent linux kernels, for example, have cleancache already integrated and that''ll be the most usual use case right now. On those kernels, you can enable tmem support by adding "tmem" to the linux kernel command line, and the cleancache driver will automatically use that. You can check it out by looking at the linux kernel''s dmesg for a line like this: cleancache enabled, RAM provided by Xen Transcendent Memory Please note that only recent (>= linux-3.0, IIRC) linux kernels have cleancache merged in, unless you manually patch it in. -- Luca Lesinigo
Hi, Thank you for your instruction.By the way , the features "tmem-list,tmem-freeze,tmem-destroy,tmem-thaw,tmem-set,tmem-shared-auth,tmem-freeable" can be inquired by "xl -v".Is there some document about their usage? hxk _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Il giorno 13/mar/2012, alle ore 04:17, hxkhust ha scritto:> Thank you for your instruction.By the way , the features "tmem-list,tmem-freeze,tmem-destroy,tmem-thaw,tmem-set,tmem-shared-auth,tmem-freeable" can be inquired by "xl -v".Is there some document about their usage?I actually found your first post googling around for some informations on tmem, but my interest is in understing its metrics (ie, the tmem-list output) and I''ll post a message about that on this list later today or in the next days after doing some more research. So while I didn''t bother looking at the various operations you can manually do on tmem (freeze, destroy, and so on) I remember I found some paper about the initial implementation of tmem that talks about those operations. I don''t have an url handy but should be easy to find with some searches. -- Luca Lesinigo