Re: [PATCH] mm/vmstat: Defer the refresh_zone_stat_thresholds after all CPUs bringup

From: Andrew Morton
Date: Tue Aug 13 2024 - 19:37:29 EST


On Sun, 11 Aug 2024 21:37:54 -0700 Saurabh Singh Sengar <ssengar@xxxxxxxxxxxxxxxxxxx> wrote:

> Without this patch, refresh_zone_stat_threshold was being called 1024 times.
> After applying the patch, it is called only once, which is same as the last
> iteration of the earlier 1024 calls. Further testing with this patch, I observed
> a 4.5-second improvement in the overall boot timing due to this fix, which is
> same as the total time taken by refresh_zone_stat_thresholds without thie patch,
> leading me to reasonably conclude that refresh_zone_stat_threshold now takes a
> negligible amount of time (likely just a few milliseconds).

Thanks, nice. I pasted this into the changelog.