From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with ESMTP id 7DEF49000C1 for ; Tue, 26 Apr 2011 05:28:56 -0400 (EDT) Received: by wyf19 with SMTP id 19so376822wyf.14 for ; Tue, 26 Apr 2011 02:28:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110426092029.GA27053@localhost> References: <20110426055521.GA18473@localhost> <20110426062535.GB19717@localhost> <20110426063421.GC19717@localhost> <20110426092029.GA27053@localhost> Date: Tue, 26 Apr 2011 18:28:53 +0900 Message-ID: Subject: Re: readahead and oom From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Wu Fengguang Cc: Dave Young , linux-mm , Linux Kernel Mailing List , Andrew Morton , Mel Gorman On Tue, Apr 26, 2011 at 6:20 PM, Wu Fengguang wrot= e: > Minchan, > >> > +static inline struct page *page_cache_alloc_cold_noretry(struct addre= ss_space *x) >> > +{ >> > + =C2=A0 =C2=A0 =C2=A0 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 --=20 Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org