aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2007-01-29 16:37:38 -0800
committerLinus Torvalds <[email protected]>2007-01-29 16:37:38 -0800
commitdc6e29da9162fa8fa2a9e798569c0f6e87975614 (patch)
tree9d1e9c8095ea4fbc7d528a63d4b21e32e44a70a9 /include/linux/debugobjects.h
parent5263bf65d6342e12ab716db8e529501670979321 (diff)
Fix balance_dirty_page() calculations with CONFIG_HIGHMEM
This makes balance_dirty_page() always base its calculations on the amount of non-highmem memory in the machine, rather than try to base it on total memory and then falling back on non-highmem memory if the mapping it was writing wasn't highmem capable. This not only fixes a situation where two different writers can have wildly different notions about what is a "balanced" dirty state, but it also means that people with highmem machines don't run into an OOM situation when regular memory fills up with dirty pages. We used to try to handle the latter case by scaling down the dirty_ratio if the machine had a lot of highmem pages in page_writeback_init(), but it wasn't aggressive enough for some situations, and since basing the dirty ratio on highmem memory was broken in the first place, let's just stop doing so. (A variation of this theme fixed Justin Piszcz's OOM problem when copying an 18GB file on a RAID setup). Acked-by: Nick Piggin <[email protected]> Cc: Justin Piszcz <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Neil Brown <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Adrian Bunk <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions