WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] How to get the physical CPU number, total memory and free memory?
From: "Hongbin Hao" <hhao@xxxxxxxxxxxx>
Date: Mon, 31 Oct 2005 09:38:35 +0800
Delivery-date: Mon, 31 Oct 2005 05:20:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] How to get the physical CPU number, total memory and free memory?, Hongbin Hao <=