All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Soft affinity for Credit2
@ 2017-07-27 12:05 Dario Faggioli
  2017-07-27 12:05 ` [PATCH v2 1/6] xen/tools: credit2: soft-affinity awareness in runq_tickle() Dario Faggioli
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Dario Faggioli @ 2017-07-27 12:05 UTC (permalink / raw)
  To: xen-devel
  Cc: George Dunlap, Ian Jackson, Justin T. Weaver, Wei Liu, Anshul Makkar

Hello,

Take 2 of soft-affinity for Credit2. Not much changed actually:
- what was patch 1, it went in, so the series is shorter; :-)
- in patch 5 ("xen: credit2: optimize runq_candidate() a little bit"), I
  changed things according to George's advice;
- patch 2 ("xen: credit2: soft-affinity awareness in gat_fallback_cpu()"),
  is the one that changed most. In that case as well, I've accordingly to
  what we decided during review.

In fact, all the patches have the tags they need to go in already, *except*
patch 2.

v1 was here:

 https://lists.xen.org/archives/html/xen-devel/2017-06/msg01795.html

A git branch is here:

 git://xenbits.xen.org/people/dariof/xen.git rel/sched/credit2-soft-aff-v2
 http://xenbits.xen.org/gitweb/?p=people/dariof/xen.git;a=shortlog;h=refs/heads/rel/sched/credit2-soft-aff-v2
 https://travis-ci.org/fdario/xen/builds/258112860

Regards,
Dario
---
Dario Faggioli (6):
      xen/tools: credit2: soft-affinity awareness in runq_tickle()
      xen: credit2: soft-affinity awareness in gat_fallback_cpu()
      xen: credit2: soft-affinity awareness in csched2_cpu_pick()
      xen: credit2: kick away vcpus not running within their soft-affinity
      xen: credit2: optimize runq_candidate() a little bit
      xen: credit2: try to avoid tickling cpus subject to ratelimiting

 tools/xentrace/formats       |    2 
 tools/xentrace/xenalyze.c    |    7 -
 xen/common/sched_credit2.c   |  506 ++++++++++++++++++++++++++++++++----------
 xen/include/xen/perfc_defn.h |    2 
 4 files changed, 394 insertions(+), 123 deletions(-)
--
<<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@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/6] xen/tools: credit2: soft-affinity awareness in runq_tickle()
@ 2017-08-28 17:58 Dario Faggioli
  0 siblings, 0 replies; 10+ messages in thread
From: Dario Faggioli @ 2017-08-28 17:58 UTC (permalink / raw)
  To: George Dunlap; +Cc: Ian Jackson, Anshul Makkar, Wei Liu, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1768 bytes --]

Il 28 Ago 2017 16:40, George Dunlap <george.dunlap@citrix.com> ha scritto:
On 07/27/2017 01:05 PM, Dario Faggioli wrote:
> Soft-affinity support is usually implemented by means
> of a two step "balancing loop", where:
> - during the first step, we consider soft-affinity
>   (if the vcpu has one);
> - during the second (if we get to it), we consider
>   hard-affinity.
>
> In runq_tickle(), we need to do that for checking
> whether we can execute the waking vCPU on an pCPU
> that is idle. In fact, we want to be sure that, if
> there is an idle pCPU in the vCPU's soft affinity,
> we'll use it.
>
> If there are no such idle pCPUs, though, and we
> have to check non-idle ones, we can avoid the loop
> and to both hard and soft-affinity in one pass.
>
> In fact, we can we scan runqueue and compute a
> "score" for each vCPU which is running on each pCPU.
> The idea is, since we may have to preempt someone:
> - try to make sure that the waking vCPU will run
>   inside its soft-affinity,
> - try to preempt someone that is running outside
>   of its own soft-affinity.
>
> The value of the score is added to a trace record,
> so xenalyze's code and tools/xentrace/formats are
> updated accordingly.
>
> Suggested-by: George Dunlap <george.dunlap@citrix.com>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> Reviewed-by: George Dunlap <george.dunlap@citrix.com>

The primary focus of this patch is credit2, so the title should probably
be xen/credit2, right?

It touches the tools (xenalyze), so I put tools in the rag, but I'm fine with just 'xen/credit2'.


I can change that on checkin.

Sure, go ahead.

Thanks, Dario

PS. Sorry for the (most likely) bad format of this email (semt from my phone)


[-- Attachment #1.2: Type: text/html, Size: 3305 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

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

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

end of thread, other threads:[~2017-08-28 17:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-27 12:05 [PATCH v2 0/6] Soft affinity for Credit2 Dario Faggioli
2017-07-27 12:05 ` [PATCH v2 1/6] xen/tools: credit2: soft-affinity awareness in runq_tickle() Dario Faggioli
2017-08-28 14:40   ` George Dunlap
2017-07-27 12:05 ` [PATCH v2 2/6] xen: credit2: soft-affinity awareness in gat_fallback_cpu() Dario Faggioli
2017-08-28 14:49   ` George Dunlap
2017-07-27 12:05 ` [PATCH v2 3/6] xen: credit2: soft-affinity awareness in csched2_cpu_pick() Dario Faggioli
2017-07-27 12:06 ` [PATCH v2 4/6] xen: credit2: kick away vcpus not running within their soft-affinity Dario Faggioli
2017-07-27 12:06 ` [PATCH v2 5/6] xen: credit2: optimize runq_candidate() a little bit Dario Faggioli
2017-07-27 12:06 ` [PATCH v2 6/6] xen: credit2: try to avoid tickling cpus subject to ratelimiting Dario Faggioli
2017-08-28 17:58 [PATCH v2 1/6] xen/tools: credit2: soft-affinity awareness in runq_tickle() Dario Faggioli

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.