Hongbin Hao
2005-Oct-31 01:38 UTC
[Xen-devel] How to get the physical CPU number, total memory and free memory?
Hi, friends,
I''m doing a porting project on XEN2.0.7. I need to get the
XENDNODE''s physical cpu number, total memory and free memory.
So far, I''m using "xm info" command to get them.
$ xm info
system : Linux
host : nvg06b04
release : 2.6.11.12-xen0
version : #1 Wed Sep 14 18:55:26 EDT 2005
machine : i686
cores : 1 <==== this is ncpus
hyperthreads_per_core : 2
cpu_mhz : 3065
memory : 2559 <==== this is total memory
free_memory : 2405 <==== this is free memory.
To use the "xm" command, it depends on the "xend" up.
I want to know if there is better solution, such as reading the data from
some file.
Who can give me a hand? Thank you very much.
Bill
<http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=&SG=&RAND=27125&partner=hbtools>
Upgrade Your Email - Click here!
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel