On Thu, 10 Dec 2015, Andrew Morton wrote: > > /* > > + * Switch off vmstat processing and then fold all the remaining differentials > > + * until the diffs stay at zero. The function is used by NOHZ and can only be > > + * invoked when tick processing is not active. > > + */ > > +void quiet_vmstat(void) > > +{ > > + do { > > + if (!cpumask_test_and_set_cpu(smp_processor_id(), cpu_stat_off)) > > + cancel_delayed_work(this_cpu_ptr(&vmstat_work)); > > + > > + } while (refresh_cpu_vm_stats(false)); > > +} > > How do we know this will terminate in a reasonable amount of time if > other CPUs are pounding away? This is only dealing with the differentials of the local cpu. Other cpus do not matter. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>