[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] How to get the physical CPU number, total memory and free memory?


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Hongbin Hao" <hhao@xxxxxxxxxxxx>
  • Date: Mon, 31 Oct 2005 09:38:35 +0800
  • Delivery-date: Mon, 31 Oct 2005 05:20:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcXdu8+Cl7e6So5bQMqeM+bCd1w4uw==
  • Thread-topic: 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
 


Upgrade Your Email - Click here!

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.