Commit 5515061d authored by Committed by Linus Torvalds
mm: throttle direct reclaimers if PF_MEMALLOC reserves are low and swap is...
mm: throttle direct reclaimers if PF_MEMALLOC reserves are low and swap is backed by network storage If swap is backed by network storage such as NBD, there is a risk that a large number of reclaimers can hang the system by consuming all PF_MEMALLOC reserves. To avoid these hangs, the administrator must tune min_free_kbytes in advance which is a bit fragile. This patch throttles direct reclaimers if half the PF_MEMALLOC reserves are in use. If the system is routinely getting throttled the system administrator can increase min_free_kbytes so degradation is smoother but the system will keep running. Signed-off-by: Mel Gorman <firstname.lastname@example.org> Cc: David Miller <email@example.com> Cc: Neil Brown <firstname.lastname@example.org> Cc: Peter Zijlstra <email@example.com> Cc: Mike Christie <firstname.lastname@example.org> Cc: Eric B Munson <email@example.com> Cc: Eric Dumazet <firstname.lastname@example.org> Cc: Sebastian Andrzej Siewior <email@example.com> Cc: Mel Gorman <firstname.lastname@example.org> Cc: Christoph Lameter <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 122 additions and 8 deletions