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

RE: [Xen-devel] [PATCH]Add free memory size of every NUMA node in phsica

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH]Add free memory size of every NUMA node in phsical info
From: "Duan, Ronghui" <ronghui.duan@xxxxxxxxx>
Date: Tue, 26 Feb 2008 10:46:17 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 25 Feb 2008 18:47:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080226023936.GR2614@xxxxxxxxxx>
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: Ach4IPa6OD0CPZPRSaO8bb9WxpvhdQAADCyA
Thread-topic: [Xen-devel] [PATCH]Add free memory size of every NUMA node in phsical info
I see that, the reason I don't use that function is there need one more
time hypercall, I only reuse the function which have been realized in
hypervisor. Thanks for your advice.

>-----Original Message-----
>From: Daniel P. Berrange [mailto:berrange@xxxxxxxxxx]
>Sent: Tuesday, February 26, 2008 10:40 AM
>To: Duan, Ronghui
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
>Subject: Re: [Xen-devel] [PATCH]Add free memory size of every NUMA node
in
>phsical info
>
>On Tue, Feb 26, 2008 at 10:02:36AM +0800, Duan, Ronghui wrote:
>> Returns free memory size per node in "xm info". This info can help
users
>> who want to bind their guest domain in one node of their NUMA
machines
>> thought set CPU affinity. I also write IA64 part support which I
would
>> send to XEN-IA64 mail-list. Thanks.
>
>AFAICT, changing the ABI of the 'physinfo' sysctl is completely
>unneccessary.
>
>The per-node NUMA free memory information is already available to Dom0
>via the existing 'availheap' sysctl:
>
>  #define XEN_SYSCTL_availheap         9
>  struct xen_sysctl_availheap {
>      /* IN variables. */
>      uint32_t min_bitwidth;  /* Smallest address width (zero if don't
>care). */
>      uint32_t max_bitwidth;  /* Largest address width (zero if don't
care).
>*/
>      int32_t  node;          /* NUMA node of interest (-1 for all
nodes).
>*/
>      /* OUT variables. */
>      uint64_aligned_t avail_bytes;/* Bytes available in the specified
>region. */
>  };
>
>
>If you want to display this info in 'xm info', then simply invoke this
>availheap sysctl call to fetch the data.
>
>Dan.
>--
>|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392
2496 -
>=|
>|=-           Perl modules: http://search.cpan.org/~danberr/
-
>=|
>|=-               Projects: http://freshmeat.net/~danielpb/
-
>=|
>|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B
9505  -
>=|

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