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

[Xen-devel] [PATCH v6 0/9] Implement vcpu soft affinity for credit1



Hi everyone,

With a _huge_ delay, for which I apologize, I managed to rebase, retest and
resend the series about per vCPU soft affinities, which was about to make it
for 4.4 but then... didn't. :-P

So, rebasing on current staging required only trivial adjustment to the code.
For this reason, I'm retaining the 'Acked' and 'Reviewed' -by tags in the
patches. However, BEWARE that they are from last December! So, both committers
and maintainers, let me know whether you're fine with this. If not, I'll kill
them and re-send.

A summary of what tags each patch has is below. 'Reviewed-by' are all from
George, and the two 'Acked-by' are from George and Ian Campbell.

Quick reminder about what this does. After this series, each vCPU will have:
 - an hard affinity, which is basically what we already have and call just
   affinity or pinning, i.e., is the list of pCPUs where a vcpu is allowed to
   run;
 - a soft affinity, i.e., the list of pCPUs where a vCPU *prefers* to run.

The series introduces all the bits necessary, at the various levels of the
stack, to set and get both the affinities.

FWIW, I think review efforts should be focused on patch 3, on the hypervisor
side, and on patches 7 and 8, on the tools side.

For testing, or pulling, the series lives here:
 git://xenbits.xen.org/people/dariof/xen.git  numa/per-vcpu-affinity-v6

Some history. Last round (v5) is here:
 http://lists.xen.org/archives/html/xen-devel/2013-12/msg00257.html

Wrt to that, I fixed a bug that Jan found during review, and changed the
command line interface (so, `xl'), as agreed with IanC, in the subthread
starting from this message:
 http://lists.xen.org/archives/html/xen-devel/2013-12/msg00251.html

Previous rounds are available at the following links:
 v4 http://lists.xenproject.org/archives/html/xen-devel/2013-11/msg03356.html
 v3 http://lists.xenproject.org/archives/html/xen-devel/2013-11/msg02513.html
 v2 http://lists.xenproject.org/archives/html/xen-devel/2013-11/msg01953.html
 v1 http://lists.xen.org/archives/html/xen-devel/2013-10/msg00164.html

Summary of acks/reviews (r='Reviewed-by', a='Acked-by'):
 r  [PATCH v6 1/9] xen: sched: rename v->cpu_affinity into v->cpu_hard_affinity
 r  [PATCH v6 2/9] xen: sched: introduce soft-affinity and use it instead of 
d->node-affinity
 r  [PATCH v6 3/9] xen: derive NUMA node affinity from hard and soft CPU 
affinity
 r  [PATCH v6 4/9] xen/libxc: sched: DOMCTL_*vcpuaffinity works with hard and 
soft affinity
  a [PATCH v6 5/9] libxc: get and set soft and hard affinity
 r  [PATCH v6 6/9] libxl: get and set soft affinity
    [PATCH v6 7/9] xl: enable getting and setting soft
    [PATCH v6 8/9] xl: enable for specifying node-affinity in the config
  a [PATCH v6 9/9] libxl: automatic NUMA placement affects soft affinity

Diffstat:
 docs/man/xl.cfg.pod.5                |   42 +++++++++++++++------
 docs/man/xl.pod.1                    |   32 ++++++++++++----
 docs/misc/xl-numa-placement.markdown |  162 
++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
 tools/libxc/xc_domain.c              |   72 +++++++++++++++++++++++------------
 tools/libxc/xenctrl.h                |   55 ++++++++++++++++++++++++++-
 tools/libxl/libxl.c                  |   87 
+++++++++++++++++++++++++++++++++++++-----
 tools/libxl/libxl.h                  |   26 ++++++++++++-
 tools/libxl/libxl_create.c           |    6 +++
 tools/libxl/libxl_dom.c              |   23 +++++++++--
 tools/libxl/libxl_types.idl          |    4 +-
 tools/libxl/libxl_utils.h            |   25 +++++++++++-
 tools/libxl/xl_cmdimpl.c             |  306 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------
 tools/libxl/xl_cmdtable.c            |    2 +-
 tools/ocaml/libs/xc/xenctrl_stubs.c  |    8 +++-
 tools/python/xen/lowlevel/xc/xc.c    |    6 ++-
 xen/arch/x86/traps.c                 |   13 ++++---
 xen/common/domain.c                  |   86 
+++++++++++++++++++++++++-----------------
 xen/common/domctl.c                  |  107 
+++++++++++++++++++++++++++++++++++++++++++++++-----
 xen/common/keyhandler.c              |    4 +-
 xen/common/sched_credit.c            |  161 
+++++++++++++++++++++++++++++++----------------------------------------------
 xen/common/sched_sedf.c              |    2 +-
 xen/common/schedule.c                |   57 ++++++++++++++++++----------
 xen/common/wait.c                    |   10 ++---
 xen/include/public/domctl.h          |   29 +++++++++++++-
 xen/include/xen/sched.h              |   14 ++++---
 25 files changed, 930 insertions(+), 409 deletions(-)

Thanks and Regards,
Dario

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


_______________________________________________
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®.