Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344806
b: refs/heads/master
c: fb003b8
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman committed Dec 11, 2012
1 parent 59a1963 commit 5b1592c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e14808b49f55e0e1135da5e4a154a540dd9f3662
refs/heads/master: fb003b80daa0dead5b87f4e2e4fb8da68b110ff2
11 changes: 10 additions & 1 deletion trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,15 @@ void task_numa_fault(int node, int pages)

/* FIXME: Allocate task-specific structure for placement policy here */

/*
* Assume that as faults occur that pages are getting properly placed
* and fewer NUMA hints are required. Note that this is a big
* assumption, it assumes processes reach a steady steady with no
* further phase changes.
*/
p->numa_scan_period = min(sysctl_numa_balancing_scan_period_max,
p->numa_scan_period + jiffies_to_msecs(2));

task_numa_placement(p);
}

Expand Down Expand Up @@ -858,7 +867,7 @@ void task_numa_work(struct callback_head *work)
if (p->numa_scan_period == 0)
p->numa_scan_period = sysctl_numa_balancing_scan_period_min;

next_scan = now + 2*msecs_to_jiffies(p->numa_scan_period);
next_scan = now + msecs_to_jiffies(p->numa_scan_period);
if (cmpxchg(&mm->numa_next_scan, migrate, next_scan) != migrate)
return;

Expand Down

0 comments on commit 5b1592c

Please sign in to comment.