]> git.baikalelectronics.ru Git - kernel.git/commit
dirty page balancing: Get rid of broken unmapped_ratio logic
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 16 Nov 2007 00:41:52 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 16 Nov 2007 00:41:52 +0000 (16:41 -0800)
commitc404baea57eb4b1a9ecded6ff7d7ee98c78e5038
tree925a87846bda5a0f427cbd19b65c9ea0375ebdd3
parent497d8f0c15d6b7c9174a58a75486b63af5eb5176
dirty page balancing: Get rid of broken unmapped_ratio logic

This code harks back to the days when we didn't count dirty mapped
pages, which led us to try to balance the number of dirty unmapped pages
by how much unmapped memory there was in the system.

That makes no sense any more, since now the dirty counts include the
mapped pages.  Not to mention that the math doesn't work with HIGHMEM
machines anyway, and causes the unmapped_ratio to potentially turn
negative (which we do catch thanks to clamping it at a minimum value,
but I mention that as an indication of how broken the code is).

The code also was written at a time when the default dirty ratio was
much larger, and the unmapped_ratio logic effectively capped that large
dirty ratio a bit.  Again, we've since lowered the dirty ratio rather
aggressively, further lessening the point of that code.

Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c