On 2/20/20 7:01 AM, Joel Savitz wrote: > > Further work to make the calculation of vm.min_free_kbytes more > consistent throughout the kernel would be desirable. > > As an example of the inconsistency of the current method, this value is > recalculated by init_per_zone_wmark_min() in the case of memory hotplug > which will override the value set by set_recommended_min_free_kbytes() > called during khugepaged initialization even if khugepaged remains > enabled, however an on/off toggle of khugepaged will then recalculate > and set the value via set_recommended_min_free_kbytes(). I took a shot at fixing some of those inconsistencies. https://lore.kernel.org/linux-mm/20200210190121.10670-1-mike.kravetz@xxxxxxxxxx/ -- Mike Kravetz