xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/9] Implement vcpu soft affinity for credit1
@ 2014-05-28  0:42 Dario Faggioli
  2014-05-28  0:42 ` [PATCH v6 1/9] xen: sched: rename v->cpu_affinity into v->cpu_hard_affinity Dario Faggioli
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Dario Faggioli @ 2014-05-28  0:42 UTC (permalink / raw)
  To: xen-devel
  Cc: KeirFraser, Ian Campbell, George Dunlap, AndrewCooper,
	Ian Jackson, Jan Beulich

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)

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2014-06-06 22:11 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28  0:42 [PATCH v6 0/9] Implement vcpu soft affinity for credit1 Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 1/9] xen: sched: rename v->cpu_affinity into v->cpu_hard_affinity Dario Faggioli
2014-05-28  7:28   ` Jan Beulich
2014-05-28  0:42 ` [PATCH v6 2/9] xen: sched: introduce soft-affinity and use it instead d->node-affinity Dario Faggioli
2014-05-28  7:33   ` Jan Beulich
2014-05-28 15:50     ` Dario Faggioli
2014-06-02 14:40   ` George Dunlap
2014-05-28  0:42 ` [PATCH v6 3/9] xen: derive NUMA node affinity from hard and soft CPU affinity Dario Faggioli
2014-05-28  7:36   ` Jan Beulich
2014-05-28  0:42 ` [PATCH v6 4/9] xen/libxc: sched: DOMCTL_*vcpuaffinity works with hard and soft affinity Dario Faggioli
2014-05-28  7:40   ` Jan Beulich
2014-05-28 15:09     ` Ian Campbell
2014-05-28  0:42 ` [PATCH v6 5/9] libxc: get and set soft and hard affinity Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 6/9] libxl: get and set soft affinity Dario Faggioli
2014-05-28 15:13   ` Ian Campbell
2014-05-28 15:15     ` Dario Faggioli
2014-05-28 15:23   ` Ian Campbell
2014-06-05 12:59     ` Dario Faggioli
2014-06-06  8:46       ` Ian Campbell
2014-06-06 22:11         ` Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 7/9] xl: enable getting and setting soft Dario Faggioli
2014-05-28 15:33   ` Ian Campbell
2014-05-28 16:01     ` Dario Faggioli
2014-06-02 15:20   ` George Dunlap
2014-05-28  0:42 ` [PATCH v6 8/9] xl: enable for specifying node-affinity in the config file Dario Faggioli
2014-05-28 15:48   ` Ian Campbell
2014-05-28 16:55     ` Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 9/9] libxl: automatic NUMA placement affects soft affinity Dario Faggioli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).