Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

documentation: Update based on on-demand vmstat workers

Now that the on-demand vmstat workers commit is in mainline, it is
possible to eliminate vmstat_update()-induced OS jitter. This commit
updates the documentation accordingly.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

+10 -8
+10 -8
Documentation/kernel-per-CPU-kthreads.txt
··· 190 190 on each CPU, including cs_dbs_timer() and od_dbs_timer(). 191 191 WARNING: Please check your CPU specifications to 192 192 make sure that this is safe on your particular system. 193 - d. It is not possible to entirely get rid of OS jitter 194 - from vmstat_update() on CONFIG_SMP=y systems, but you 195 - can decrease its frequency by writing a large value 196 - to /proc/sys/vm/stat_interval. The default value is 197 - HZ, for an interval of one second. Of course, larger 198 - values will make your virtual-memory statistics update 199 - more slowly. Of course, you can also run your workload 200 - at a real-time priority, thus preempting vmstat_update(), 193 + d. As of v3.18, Christoph Lameter's on-demand vmstat workers 194 + commit prevents OS jitter due to vmstat_update() on 195 + CONFIG_SMP=y systems. Before v3.18, is not possible 196 + to entirely get rid of the OS jitter, but you can 197 + decrease its frequency by writing a large value to 198 + /proc/sys/vm/stat_interval. The default value is HZ, 199 + for an interval of one second. Of course, larger values 200 + will make your virtual-memory statistics update more 201 + slowly. Of course, you can also run your workload at 202 + a real-time priority, thus preempting vmstat_update(), 201 203 but if your workload is CPU-bound, this is a bad idea. 202 204 However, there is an RFC patch from Christoph Lameter 203 205 (based on an earlier one from Gilad Ben-Yossef) that