Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Jul 2001 15:00:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Jul 2001 15:00:37 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:3846 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Mon, 16 Jul 2001 15:00:19 -0400 Date: Mon, 16 Jul 2001 16:00:16 -0300 (BRST) From: Rik van Riel X-X-Sender: To: Kanoj Sarcar Cc: Marcelo Tosatti , lkml , Dirk Wetter , Mike Galbraith , , "Stephen C. Tweedie" Subject: Re: [PATCH] Separate global/perzone inactive/free shortage In-Reply-To: <20010716155126.37887.qmail@web14306.mail.yahoo.com> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jul 2001, Kanoj Sarcar wrote: > Just a quick note. A per-zone page reclamation > method like this was what I had advocated and sent > patches to Linus for in the 2.3.43 time frame or so. > I think later performance work ripped out that work. Yes, the system ended up swapping as soon as the first zone was filled up and after that would fill up the other zones; the way the system stabilised was cycling through the pages of one zone and leaving the lower zones alone. This reduced the amount of available VM of a 1GB system to 128MB, which is somewhat suboptimal ;) What we learned from that is that we need to have some way to auto-balance the reclaiming, keeping the objective of evicting the least used page from RAM in mind. > I guess the problem is that a lot of the different > page reclamation schemes first of all do not know > how to reclaim pages for a specific zone, > try_to_swap_out is a good example, which can be solved > by rmaps. Indeed. Most of the time things go right, but the current system cannot cope at all when things go wrong. I think we really want things like rmaps and more sturdy reclaiming mechanisms to cope with these worst cases (and also to make the common case easier to get right). regards, Rik -- Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://distro.conectiva.com/ Send all your spam to aardvark@nl.linux.org (spam digging piggy) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/