Skip to content

RFC fix unbounded too_many_isolated

Michal Hocko linux-mm linux-xfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 52 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm, vmscan: account the number of isolated pages per zoneinclude/linux/mmzone.h mm/compaction.c mm/khugepaged.c +5 more+56 -5051 replies
2/2mm, vmscan: do not loop on too_many_isolated for evermm/vmscan.c+27 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] fix unbounded too_many_isolated

Hi,
this is based on top of [1]. The first patch continues in the direction of moving some decisions to zones rather than nodes. In this case it is the NR_ISOLATED* counters which I believe need to be zone aware as well. See patch 1 for more information why.

The second path builds on top of that and tries to address the problem which has been reported by Tetsuo several times already. In the current implementation we can loop deep in the reclaim path without any effective way out to re-evaluate our decisions about the reclaim retries. Patch 2 says more about that but in principle we should locate retry logic as high in the allocator chain as possible and so we should get rid of any unbound retry loops inside the reclaim. This is what the patch does.

I am sending this as an RFC because I am not yet sure this is the best forward. My testing shows that the system behaves sanely.

Thoughts, comments?

[1] http://lkml.kernel.org/r/[email protected]

Michal Hocko (2):
mm, vmscan: account the number of isolated pages per zone mm, vmscan: do not loop on too_many_isolated for ever

 include/linux/mmzone.h |  4 +--
 mm/compaction.c        | 16 ++++-----
 mm/khugepaged.c        |  4 +--
 mm/memory_hotplug.c    |  2 +-
 mm/migrate.c           |  4 +--
 mm/page_alloc.c        | 14 ++++----
 mm/vmscan.c            | 93 ++++++++++++++++++++++++++++++++------------------
 mm/vmstat.c            |  4 +--
 8 files changed, 82 insertions(+), 59 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>