Re: [RFC][PATCH 11/13] mm/vmscan: Consider anonymous pages without swap

2021-02-02 Thread Yang Shi
On Tue, Feb 2, 2021 at 1:35 PM Dave Hansen wrote: > > On 2/2/21 10:56 AM, Yang Shi wrote: > >> > >> /* If we have no swap space, do not bother scanning anon pages. */ > >> - if (!sc->may_swap || mem_cgroup_get_nr_swap_pages(memcg) <= 0) { > >> + if (!sc->may_swap || !can_reclai

Re: [RFC][PATCH 11/13] mm/vmscan: Consider anonymous pages without swap

2021-02-02 Thread Dave Hansen
On 2/2/21 10:56 AM, Yang Shi wrote: >> >> /* If we have no swap space, do not bother scanning anon pages. */ >> - if (!sc->may_swap || mem_cgroup_get_nr_swap_pages(memcg) <= 0) { >> + if (!sc->may_swap || !can_reclaim_anon_pages(memcg, pgdat->node_id)) >> { > Just one minor thi

Re: [RFC][PATCH 11/13] mm/vmscan: Consider anonymous pages without swap

2021-02-02 Thread Yang Shi
On Mon, Jan 25, 2021 at 4:42 PM Dave Hansen wrote: > > > From: Keith Busch > > Reclaim anonymous pages if a migration path is available now that > demotion provides a non-swap recourse for reclaiming anon pages. > > Note that this check is subtly different from the > anon_should_be_aged() checks.

[RFC][PATCH 11/13] mm/vmscan: Consider anonymous pages without swap

2021-01-26 Thread Dave Hansen
From: Keith Busch Reclaim anonymous pages if a migration path is available now that demotion provides a non-swap recourse for reclaiming anon pages. Note that this check is subtly different from the anon_should_be_aged() checks. This mechanism checks whether a specific page in a specific cont