This is especially important for the counters allocation because EARLY_COUNTER does not work after temp_bsp_pcpu is switched from.
In collaboration with: pho
Differential D22242
Include caching zones into zone_foreach() where appropriate. kib on Nov 5 2019, 3:15 PM. Authored by Tags None Referenced Files
Details This is especially important for the counters allocation because EARLY_COUNTER does not work after temp_bsp_pcpu is switched from. In collaboration with: pho
Diff Detail
Event Timeline
Comment Actions Taking a step back, I believe the bool parameter to zone_foreach() is too blunt. For example, during reclaim we call zone_foreach(zone_trim, true), but in the callout we do zone_foreach(zone_timeout, false). The zone_timeout() estimates the WSS for the zone, and the WSS is used to decide how much to trim, but with this change we are not calculating the WSS for cache zones. Instead, each callback should be modified to handle cache zones:
|