8/8
mm/vmstat: Avoid redundant per-CPU stat_threshold writes in refresh_zone_stat_thresholds()
refresh_zone_stat_thresholds() 每次 CPU 热插拔都清零并重写所有在线 CPU 的 stat_threshold,造成远程 per-CPU cacheline 抖动且短暂暴露 0;先算 pgdat_threshold、上移 nodestats 更新,并仅在值变化时写入。
refresh_zone_stat_thresholds() 每次 CPU 热插拔都清零并重写所有在线 CPU 的 stat_threshold,造成远程 per-CPU cacheline 抖动且短暂暴露 0;先算 pgdat_threshold、上移 nodestats 更新,并仅在值变化时写入。