On Wed, 4 May 2022, Zach O'Keefe wrote: > Add enforce_pte_scan_limits flag to struct collapse_control that allows > context to ignore the sysfs-controlled knobs > khugepaged_max_ptes_[none|swap|shared] and set this flag in khugepaged > collapse context to preserve existing khugepaged behavior. > > This flag will be used (unset) when introducing madvise collapse > context since here, the user presumably has reason to believe the > collapse will be beneficial and khugepaged heuristics shouldn't tell > the user they are wrong. > > Signed-off-by: Zach O'Keefe <zokeefe@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>