Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616Ab1DZKS6 (ORCPT ); Tue, 26 Apr 2011 06:18:58 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:55857 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753051Ab1DZKS4 convert rfc822-to-8bit (ORCPT ); Tue, 26 Apr 2011 06:18:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=U0fYjeH2zW8FqxufLes25uqZfTCCUecXmpoyPmE2HqYbick0OGDJTtJFJTZTEIvic/ tfNaCOtaTLLEq7dxpzsCC3W+3JFKZYLp06yxQI69HmHz1xjfb7OzbCnvaPunSsd+MliW 85XhKkXGHZsm7lM3xqluBbcVVQ2qqlsXXKOvY= MIME-Version: 1.0 In-Reply-To: References: <20110426055521.GA18473@localhost> <20110426062535.GB19717@localhost> <20110426063421.GC19717@localhost> <20110426092029.GA27053@localhost> Date: Tue, 26 Apr 2011 13:18:55 +0300 X-Google-Sender-Auth: KJDNFwho_KJqJLgavDmtcNXarec Message-ID: Subject: Re: readahead and oom From: Pekka Enberg To: Minchan Kim Cc: Wu Fengguang , Dave Young , linux-mm , Linux Kernel Mailing List , Andrew Morton , Mel Gorman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1428 Lines: 36 On Tue, Apr 26, 2011 at 12:28 PM, Minchan Kim wrote: > On Tue, Apr 26, 2011 at 6:20 PM, Wu Fengguang wrote: >> Minchan, >> >>> > +static inline struct page *page_cache_alloc_cold_noretry(struct address_space *x) >>> > +{ >>> > + ? ? ? return __page_cache_alloc(mapping_gfp_mask(x)|__GFP_COLD|__GFP_NORETRY); >>> >>> It makes sense to me but it could make a noise about page allocation >>> failure. I think it's not desirable. >>> How about adding __GFP_NOWARAN? >> >> Yeah it makes sense. Here is the new version. >> >> Thanks, >> Fengguang >> --- >> Subject: readahead: readahead page allocations is OK to fail >> Date: Tue Apr 26 14:29:40 CST 2011 >> >> Pass __GFP_NORETRY|__GFP_NOWARN for readahead page allocations. >> >> readahead page allocations are completely optional. They are OK to >> fail and in particular shall not trigger OOM on themselves. >> >> Reported-by: Dave Young >> Reviewed-by: KOSAKI Motohiro >> Signed-off-by: Wu Fengguang > Reviewed-by: Minchan Kim Reviewed-by: Pekka Enberg -- 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/