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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>