diff options
author | Chris Li <[email protected]> | 2024-09-05 01:08:17 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-09-09 15:15:54 -0700 |
commit | 0885ef4705607936fc36a38fd74356e1c465b023 (patch) | |
tree | d3e80892441d348a67922555299e9d38625e50a5 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 35fccce29feb3706f649726d410122dd81b92c18 (diff) |
mm: vmscan.c: fix OOM on swap stress test
I found a regression on mm-unstable during my swap stress test, using
tmpfs to compile linux. The test OOM very soon after the make spawns many
cc processes.
It bisects down to this change: 33dfe9204f29b415bbc0abb1a50642d1ba94f5e9
(mm/gup: clear the LRU flag of a page before adding to LRU batch)
Yu Zhao propose the fix: "I think this is one of the potential side
effects -- Huge mentioned earlier about isolate_lru_folios():"
I test that with it the swap stress test no longer OOM.
Link: https://lore.kernel.org/r/CAOUHufYi9h0kz5uW3LHHS3ZrVwEq-kKp8S6N-MZUmErNAXoXmw@mail.gmail.com/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 33dfe9204f29 ("mm/gup: clear the LRU flag of a page before adding to LRU batch")
Signed-off-by: Chris Li <[email protected]>
Suggested-by: Yu Zhao <[email protected]>
Suggested-by: Hugh Dickins <[email protected]>
Closes: https://lore.kernel.org/all/CAF8kJuNP5iTj2p07QgHSGOJsiUfYpJ2f4R1Q5-3BN9JiD9W_KA@mail.gmail.com/
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions