On Thu, May 19, 2022 at 1:51 AM Michal Hocko <mhocko@xxxxxxxx> wrote: > > On Wed 18-05-22 22:44:13, Wei Xu wrote: > > On Tue, May 17, 2022 at 1:06 PM Johannes Weiner <hannes@xxxxxxxxxxx> wrote: > [...] > > > But I don't think an anon/file bias will capture this coefficient? > > > > It essentially provides the userspace proactive reclaimer an ability > > to define its own reclaim policy by adding an argument to specify > > which type of pages to reclaim via memory.reclaim. > > I am not sure the swappiness is really a proper interface for that. > Historically this tunable has changed behavior several times and the > reclaim algorithm is free to ignore it completely in many cases. If you > want to build a userspace reclaim policy, then it really has to have a > predictable and stable behavior. That would mean that the semantic would > have to be much stronger than the global vm_swappiness. I agree. As what I replied to Roman's comments earlier, it is cleaner to just specify the type of pages to reclaim. > -- > Michal Hocko > SUSE Labs