aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4400ddc2fe73..bd7c14ba86c4 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1597,28 +1597,23 @@ struct task_struct {
1597 struct numa_group *numa_group; 1597 struct numa_group *numa_group;
1598 1598
1599 /* 1599 /*
1600 * Exponential decaying average of faults on a per-node basis. 1600 * numa_faults is an array split into four regions:
1601 * Scheduling placement decisions are made based on the these counts. 1601 * faults_memory, faults_cpu, faults_memory_buffer, faults_cpu_buffer
1602 * The values remain static for the duration of a PTE scan 1602 * in this precise order.
1603 *
1604 * faults_memory: Exponential decaying average of faults on a per-node
1605 * basis. Scheduling placement decisions are made based on these
1606 * counts. The values remain static for the duration of a PTE scan.
1607 * faults_cpu: Track the nodes the process was running on when a NUMA
1608 * hinting fault was incurred.
1609 * faults_memory_buffer and faults_cpu_buffer: Record faults per node
1610 * during the current scan window. When the scan completes, the counts
1611 * in faults_memory and faults_cpu decay and these values are copied.
1603 */ 1612 */
1604 unsigned long *numa_faults_memory; 1613 unsigned long *numa_faults;
1605 unsigned long total_numa_faults; 1614 unsigned long total_numa_faults;
1606 1615
1607 /* 1616 /*
1608 * numa_faults_buffer records faults per node during the current
1609 * scan window. When the scan completes, the counts in
1610 * numa_faults_memory decay and these values are copied.
1611 */
1612 unsigned long *numa_faults_buffer_memory;
1613
1614 /*
1615 * Track the nodes the process was running on when a NUMA hinting
1616 * fault was incurred.
1617 */
1618 unsigned long *numa_faults_cpu;
1619 unsigned long *numa_faults_buffer_cpu;
1620
1621 /*
1622 * numa_faults_locality tracks if faults recorded during the last 1617 * numa_faults_locality tracks if faults recorded during the last
1623 * scan window were remote/local. The task scan period is adapted 1618 * scan window were remote/local. The task scan period is adapted
1624 * based on the locality of the faults with different weights 1619 * based on the locality of the faults with different weights