[PATCH v2 3/3] mm: Consider the number in local CPUs when *reads* NUMA stats

2017-08-24 Thread Kemi Wang
To avoid deviation, the per cpu number of NUMA stats in vm_numa_stat_diff[] is included when a user *reads* the NUMA stats. Since NUMA stats does not be read by users frequently, and kernel does not need it to make a decision, it will not be a problem to make the readers more expensive.

[PATCH v2 3/3] mm: Consider the number in local CPUs when *reads* NUMA stats

2017-08-24 Thread Kemi Wang
To avoid deviation, the per cpu number of NUMA stats in vm_numa_stat_diff[] is included when a user *reads* the NUMA stats. Since NUMA stats does not be read by users frequently, and kernel does not need it to make a decision, it will not be a problem to make the readers more expensive.