Skip to content

report how much memory a domain has on each NUMA node

Dario Faggioli xen-devel 1 version In review

Get series with b4
b4 am 20140305143357.6984.7729.stgit@Solace

Versions newest first

  1. v1 Latest4 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xen: report how much memory a domain has on each NUMA nodexen/common/domctl.c xen/include/public/domctl.h xen/xsm/flask/hooks.c +1 more+72 -07 replies
2/4libxc: report how much memory a domain has on each NUMA nodetools/libxc/xc_domain.c tools/libxc/xenctrl.h+46 -012 replies
3/4libxl: report how much memory a domain has on each NUMA nodetools/libxl/libxl.c tools/libxl/libxl.h tools/libxl/libxl_types.idl+36 -03 replies
4/4xl: report how much memory a domain has on each NUMA nodetools/libxl/xl.h tools/libxl/xl_cmdimpl.c tools/libxl/xl_cmdtable.c+64 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] report how much memory a domain has on each NUMA node

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(+)

--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)