Re: [patch] balanced highmem subsystem under pre7-9

From: Rik van Riel (riel@conectiva.com.br)
Date: Fri May 19 2000 - 11:03:09 EDT

  • Next message: kumon@flab.fujitsu.co.jp: "Re: Correction: 2.2.15-SMP, eepro100, elusive boot failure"

    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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri May 19 2000 - 11:09:13 EDT