From: "Daniel P. Berrange" <berrange@redhat.com>
To: "Duan, Ronghui" <ronghui.duan@intel.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH]Add free memory size of every NUMA node in phsical info
Date: Tue, 26 Feb 2008 02:39:36 +0000 [thread overview]
Message-ID: <20080226023936.GR2614@redhat.com> (raw)
In-Reply-To: <82C666AA63DC75449C51EAD62E8B2BEC5CE85C@pdsmsx412.ccr.corp.intel.com>
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 -=|
next prev parent reply other threads:[~2008-02-26 2:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 2:02 [PATCH]Add free memory size of every NUMA node in phsical info Duan, Ronghui
2008-02-26 2:39 ` Daniel P. Berrange [this message]
2008-02-26 2:46 ` Duan, Ronghui
2008-02-26 3:02 ` Daniel P. Berrange
2008-02-26 3:39 ` Duan, Ronghui
2008-02-26 7:58 ` [PATCH]Add free memory size of every NUMA node inphsical info Duan, Ronghui
2008-02-26 8:43 ` Keir Fraser
2008-02-26 12:50 ` Daniel P. Berrange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080226023936.GR2614@redhat.com \
--to=berrange@redhat.com \
--cc=ronghui.duan@intel.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.