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

xen-devel

[Top] [All Lists]

[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: 2005年10月31日 09:38:35 +0800
Delivery-date: 2005年10月31日 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

_______________________________________________
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 <=
Previous by Date: Re: [Xen-devel] Xen File functions , Rob Gardner
Next by Date: Re: [Xen-devel] [PATCH] Changes to allow dynamic enabling/disabling of trace buffers , Keir Fraser
Previous by Thread: RE: [Xen-devel] DomU panic in net_rx_action *initiated by another DomU*; 7503:20d1a79ebe31 , Ian Pratt
Next by Thread: [Xen-devel] iSCSI problems , Edwards, Nigel \(Nigel Edwards\)
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /