]> Git Repo - linux.git/commit
mm: throttle direct reclaimers if PF_MEMALLOC reserves are low and swap is backed...
authorMel Gorman <[email protected]>
Tue, 31 Jul 2012 23:44:35 +0000 (16:44 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Aug 2012 01:42:46 +0000 (18:42 -0700)
commit5515061d22f0f9976ae7815864bfd22042d36848
tree13b53a29166f19eb864e96b3b58539a207e5fa2f
parent7f338fe4540b1d0600b02314c7d885fd358e9eca
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 <[email protected]>
Cc: David Miller <[email protected]>
Cc: Neil Brown <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Christie <[email protected]>
Cc: Eric B Munson <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mmzone.h
mm/page_alloc.c
mm/vmscan.c
This page took 0.051643 seconds and 4 git commands to generate.