diff options
-rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 7bb2f464b456..a140c6a8c947 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -1452,12 +1452,12 @@ static void update_numa_active_node_mask(struct numa_group *numa_group) | |||
1452 | /* | 1452 | /* |
1453 | * When adapting the scan rate, the period is divided into NUMA_PERIOD_SLOTS | 1453 | * When adapting the scan rate, the period is divided into NUMA_PERIOD_SLOTS |
1454 | * increments. The more local the fault statistics are, the higher the scan | 1454 | * increments. The more local the fault statistics are, the higher the scan |
1455 | * period will be for the next scan window. If local/remote ratio is below | 1455 | * period will be for the next scan window. If local/(local+remote) ratio is |
1456 | * NUMA_PERIOD_THRESHOLD (where range of ratio is 1..NUMA_PERIOD_SLOTS) the | 1456 | * below NUMA_PERIOD_THRESHOLD (where range of ratio is 1..NUMA_PERIOD_SLOTS) |
1457 | * scan period will decrease | 1457 | * the scan period will decrease. Aim for 70% local accesses. |
1458 | */ | 1458 | */ |
1459 | #define NUMA_PERIOD_SLOTS 10 | 1459 | #define NUMA_PERIOD_SLOTS 10 |
1460 | #define NUMA_PERIOD_THRESHOLD 3 | 1460 | #define NUMA_PERIOD_THRESHOLD 7 |
1461 | 1461 | ||
1462 | /* | 1462 | /* |
1463 | * Increase the scan period (slow down scanning) if the majority of | 1463 | * Increase the scan period (slow down scanning) if the majority of |