Staging
v0.5.1
https://github.com/torvalds/linux
Revision e310fd43256b3cf4d37f6447b8f7413ca744657a authored by Martin J. Bligh on 30 July 2005, 05:59:18 UTC, committed by Linus Torvalds on 30 July 2005, 17:14:46 UTC
We are iterating over all nodes in nr_free_zone_pages().  Because the
fallback zonelists contain all nodes in the system, and we walk all the
zonelists, we're counting memory multiple times (once for each node).  This
caused us to make a size estimate of 32GB for an 8GB AMD64 box, which makes
all the dirty ratio calculations, etc incorrect.

There's still a further bug to fix from e820 holes causing overestimation
as well, but this fix is separate, and good as is, and fixes one class of
problems.  Problem found by Badari, and tested by Ram Pai - thanks!

Signed-off-by:  Martin J. Bligh <mbligh@mbligh.org>
Signed-off-by:  Matt Dobson <colpatch@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 5fa918b
History
Tip revision: e310fd43256b3cf4d37f6447b8f7413ca744657a authored by Martin J. Bligh on 30 July 2005, 05:59:18 UTC
[PATCH] Fix NUMA node sizing in nr_free_zone_pages
Tip revision: e310fd4

README

back to top