Thread (40 messages) 40 messages, 5 authors, 2004-02-09

Re: [PATCH 4/5] mm improvements

From: Andrew Morton <hidden>
Date: 2004-02-04 10:11:53

Nick Piggin [off-list ref] wrote:
+	if (zone->nr_active >= zone->nr_inactive*4)
 +		/* ratio will be >= 2 */
 +		imbalance = 8*nr_pages;
 +	else if (zone->nr_active >= zone->nr_inactive*2)
 +		/* 1 < ratio < 2 */
 +		imbalance = 4*nr_pages*zone->nr_active / (zone->nr_inactive*2);
This can cause a divide-by-zero, yes?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help