[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130703183243.GB18898@dyad.programming.kicks-ass.net>
Date: Wed, 3 Jul 2013 20:32:43 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Mel Gorman <mgorman@...e.de>
Cc: Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
Ingo Molnar <mingo@...nel.org>,
Andrea Arcangeli <aarcange@...hat.com>,
Johannes Weiner <hannes@...xchg.org>,
Linux-MM <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 13/13] sched: Account for the number of preferred tasks
running on a node when selecting a preferred node
On Wed, Jul 03, 2013 at 03:21:40PM +0100, Mel Gorman wrote:
> ---
> kernel/sched/fair.c | 45 ++++++++++++++++++++++++++++++++++++++++++---
> kernel/sched/sched.h | 4 ++++
> 2 files changed, 46 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 3c796b0..9ffdff3 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -777,6 +777,18 @@ update_stats_curr_start(struct cfs_rq *cfs_rq, struct sched_entity *se)
> * Scheduling class queueing methods:
> */
>
> +static void account_numa_enqueue(struct rq *rq, struct task_struct *p)
> +{
> + rq->nr_preferred_running +=
> + (cpu_to_node(task_cpu(p)) == p->numa_preferred_nid);
> +}
> +
> +static void account_numa_dequeue(struct rq *rq, struct task_struct *p)
> +{
> + rq->nr_preferred_running -=
> + (cpu_to_node(task_cpu(p)) == p->numa_preferred_nid);
> +}
Ah doing this requires you dequeue before changing ->numa_preferred_nid. I
don't remember seeing that change in this series.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists