From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 19 May 2000 12:03:09 -0300 (BRST) From: Rik van Riel Subject: Re: [patch] balanced highmem subsystem under pre7-9 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andrea Arcangeli Cc: Ingo Molnar , Linus Torvalds , MM mailing list , linux-kernel@vger.rutgers.edu List-ID: On Thu, 18 May 2000, Andrea Arcangeli wrote: > I still strongly think that the current zone strict mem > balancing design is very broken (and I also think to be right > since I believe to see the whole picture) but I don't think I > can explain my arguments better and/or more extensively of how I > just did in linux-mm some week ago. The balancing as of pre9-2 works like this: - LRU list per pgdat - kswapd runs and makes sure every zone has > zone->pages_low free pages, after that it stops - kswapd frees up to zone->pages_high pages, depending on what pages we encounter in the LRU queue, this will make sure that the zone with most least recently used pages will have more free pages - __alloc_pages() allocates all pages up to zone->pages_low on every zone before waking up kswapd, this makes sure more pages from the least loaded zone will be used than from more loaded zones, this will make sure balancing between zones happens I'm curious what would be so "very broken" about this? AFAICS it does most of what the classzone patch would achieve, at lower complexity and better readability. regards, Rik -- The Internet is not a network of computers. It is a network of people. That is its real strength. Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/ -- 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.eu.org/Linux-MM/