|
@@ -900,6 +900,13 @@ void task_numa_work(struct callback_head *work)
|
|
|
if (p->flags & PF_EXITING)
|
|
|
return;
|
|
|
|
|
|
+ if (!mm->numa_next_reset || !mm->numa_next_scan) {
|
|
|
+ mm->numa_next_scan = now +
|
|
|
+ msecs_to_jiffies(sysctl_numa_balancing_scan_delay);
|
|
|
+ mm->numa_next_reset = now +
|
|
|
+ msecs_to_jiffies(sysctl_numa_balancing_scan_period_reset);
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
* Reset the scan period if enough time has gone by. Objective is that
|
|
|
* scanning will be reduced if pages are properly placed. As tasks
|