]> git.hungrycats.org Git - linux/commit
[PATCH] vmscan: count writeback pages in nr_scanned
authorRik van Riel <riel@redhat.com>
Sat, 8 Jan 2005 05:37:59 +0000 (21:37 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:37:59 +0000 (21:37 -0800)
commit93f6c1554312d0be19419f5445cd935231b0293c
tree51f2f75a922390b9080d811b8fb372051be9dacf
parent157e5929111fbd29ec1731d4cf4787bb7200091b
[PATCH] vmscan: count writeback pages in nr_scanned

OOM kills have been observed with 70% of the pages in lowmem being in the
writeback state.  If we count those pages in sc->nr_scanned, the VM should
throttle and wait for IO completion, instead of OOM killing.

(akpm: this is how the code was designed to work - we broke it six months
ago).

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c