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

Re: [Xen-devel] [PATCH 0/4] report how much memory a domain has on each NUMA node


  • To: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Wed, 05 Mar 2014 15:40:35 +0100
  • Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 05 Mar 2014 14:40:43 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Message-ID:Date:From:Organization:User-Agent: MIME-Version:To:CC:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=ddIhCcxeveRHsbTWbchprY/agIT2AvZYYk9eRXUPv9/8IirwAa7TThng OVDDrFYEFreBsPfowvGw7Vy+DvUELn6MVLigP0yD4Mfh7JG/rUXgPrsow EkWiZL4h9R4/xly2IONVLeMZa1n+qJhpTKfZ67tR6qSfTDirhxzimvvLZ zS/2qvWXfnkihqMKRXApe5m+1wmAq0jOlw64zIINT5b5WaTstvK+U21nB 6/WbDsQWvLhhCF9N1qugRsodYUyZG;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 05.03.2014 15:36, Dario Faggioli wrote:
Going all the way from an hypercall to the `xl' sub-command
(via libxl and libxc interfaces, of course).

For the following domains:

root@Zhaman:~# xl list -n
Name                                        ID   Mem VCPUs      State   Time(s) 
NODE Affinity
Domain-0                                     0   511    16     r-----      29.3 
all
vm-test                                      1  1024     2     -b----       6.6 0

The output looks like this:

root@Zhaman:~# xl numainfo 0
NODE Affinity: all
Memory:
   Node 0: 251208 Kb
   Node 1: 272820 Kb

root@Zhaman:~# xl numainfo 1
NODE Affinity: 0
Memory:
   Node 0: 1048576 Kb

Regards,
Dario

---

Dario Faggioli (4):
       xen: report how much memory a domain has on each NUMA node
       libxc: report how much memory a domain has on each NUMA node
       libxl: report how much memory a domain has on each NUMA node
       xl: report how much memory a domain has on each NUMA node


  tools/libxc/xc_domain.c             |   28 +++++++++++++++++
  tools/libxc/xenctrl.h               |   18 +++++++++++
  tools/libxl/libxl.c                 |   30 ++++++++++++++++++
  tools/libxl/libxl.h                 |    2 +
  tools/libxl/libxl_types.idl         |    4 ++
  tools/libxl/xl.h                    |    1 +
  tools/libxl/xl_cmdimpl.c            |   58 +++++++++++++++++++++++++++++++++++
  tools/libxl/xl_cmdtable.c           |    5 +++
  xen/common/domctl.c                 |   45 +++++++++++++++++++++++++++
  xen/include/public/domctl.h         |   22 +++++++++++++
  xen/xsm/flask/hooks.c               |    3 ++
  xen/xsm/flask/policy/access_vectors |    2 +
  12 files changed, 218 insertions(+)

xl man page?


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
PBG PDG ES&S SWE OS6                   Telephone: +49 (0) 89 62060 2932
Fujitsu                                   e-mail: juergen.gross@xxxxxxxxxxxxxx
Mies-van-der-Rohe-Str. 8                Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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