Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 16 Oct 2001 17:56:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 16 Oct 2001 17:56:45 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:46604 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Tue, 16 Oct 2001 17:56:32 -0400 Date: Tue, 16 Oct 2001 19:56:49 -0200 (BRST) From: Rik van Riel X-X-Sender: To: Marcelo Tosatti Cc: lkml , Andrea Arcangeli Subject: Re: [UNTESTED PATCH] Throttle VM allocators In-Reply-To: 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 Tue, 16 Oct 2001, Marcelo Tosatti wrote: > + /* > + * We're possibly going to eat memory from the min<->low > + * "reversed" area. Throttling page reclamation using "reserved" ;) > + * the allocators which reach this point will give us a > + * fair system. > + */ > + > + if ((gfp_mask & __GFP_WAIT)) > + vm_throttle(classzone, gfp_mask, order); It might be an idea to also test for PF_MEMALLOC here, otherwise bad things will happen. regards, Rik -- DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ (volunteers needed) http://www.surriel.com/ http://distro.conectiva.com/ - 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/