All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: sched: numa: fix NUMA balancing when !SCHED_DEBUG
@ 2013-06-28 16:30 Dave Kleikamp
  2013-07-11  9:42 ` Mel Gorman
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Kleikamp @ 2013-06-28 16:30 UTC (permalink / raw)
  To: Mel Gorman, linux-mm

Commit 3105b86a defined numabalancing_enabled to control the enabling
and disabling of automatic NUMA balancing, but it is never used.

I believe the intention was to use this in place of
sched_feat_numa(NUMA).

Currently, if SCHED_DEBUG is not defined, sched_feat_numa(NUMA) will
never be changed from the initial "false".

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
---
 kernel/sched/fair.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index c61a614..fc11c2f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -813,7 +813,7 @@ void task_numa_fault(int node, int pages, bool migrated)
 {
 	struct task_struct *p = current;
 
-	if (!sched_feat_numa(NUMA))
+	if (!numabalancing_enabled)
 		return;
 
 	/* FIXME: Allocate task-specific structure for placement policy here */
@@ -5751,7 +5751,7 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued)
 		entity_tick(cfs_rq, se, queued);
 	}
 
-	if (sched_feat_numa(NUMA))
+	if (numabalancing_enabled)
 		task_tick_numa(rq, curr);
 
 	update_rq_runnable_avg(rq, 1);
-- 
1.8.3.1

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

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

* Re: [PATCH] mm: sched: numa: fix NUMA balancing when !SCHED_DEBUG
  2013-06-28 16:30 [PATCH] mm: sched: numa: fix NUMA balancing when !SCHED_DEBUG Dave Kleikamp
@ 2013-07-11  9:42 ` Mel Gorman
  0 siblings, 0 replies; 2+ messages in thread
From: Mel Gorman @ 2013-07-11  9:42 UTC (permalink / raw)
  To: Dave Kleikamp; +Cc: linux-mm, Andrew Morton

On Fri, Jun 28, 2013 at 11:30:13AM -0500, Dave Kleikamp wrote:
> Commit 3105b86a defined numabalancing_enabled to control the enabling
> and disabling of automatic NUMA balancing, but it is never used.
> 
> I believe the intention was to use this in place of
> sched_feat_numa(NUMA).
> 
> Currently, if SCHED_DEBUG is not defined, sched_feat_numa(NUMA) will
> never be changed from the initial "false".
> 
> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>

Acked-by: Mel Gorman <mgorman@suse.de>

-- 
Mel Gorman
SUSE Labs

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

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

end of thread, other threads:[~2013-07-11  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28 16:30 [PATCH] mm: sched: numa: fix NUMA balancing when !SCHED_DEBUG Dave Kleikamp
2013-07-11  9:42 ` Mel Gorman

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.