Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 26 Feb 2001 09:34:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 26 Feb 2001 09:32:47 -0500 Received: from zeus.kernel.org ([209.10.41.242]:53191 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id ; Mon, 26 Feb 2001 09:28:58 -0500 Date: Mon, 26 Feb 2001 07:24:35 -0300 (BRT) From: Marcelo Tosatti To: Alan Cox Cc: Mike Galbraith , Linus Torvalds , Shawn Starr , lkm Subject: Re: [ANOMALIES]: 2.4.2 - __alloc_pages: failed - Patch failed In-Reply-To: Message-ID: 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, 26 Feb 2001, Alan Cox wrote: > > We can add an allocation flag (__GFP_NO_CRITICAL?) which can be used by > > sg_low_malloc() (and other non critical allocations) to fail previously > > and not print the message. > > It is just for debugging. The message can go. If anytbing it would be more > useful to tack Failed alloc data on the end of /proc/slabinfo The issue is not the warn message. Non critical allocations (such as this case of sg_low_malloc()) are trying to get additional memory to optimize things -- we want the allocator to be lazy and fail previously instead doing hard work. If kswapd cannot keep up with the memory pressure, we're surely in a memory shortage state. Its better to get out of the memory shortage instead running into OOM because of some optimization, I guess. Another example of such a flag is swapin readahead. - 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/