Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753045Ab1DZJ24 (ORCPT ); Tue, 26 Apr 2011 05:28:56 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:37202 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752742Ab1DZJ2z convert rfc822-to-8bit (ORCPT ); Tue, 26 Apr 2011 05:28:55 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OLBPJcF1U7cACyrIomHSlLF0DS0tRk6lE5bizjd+3QchkJ6fETbzezed69a3t0OZjn 4psoHwjdUbeWt71sgb2OG12HzGWxkaLUENUYj/2nEyWRtzc8SRs6v26JGjbanuEykUWc WNys1EFvR/siMdyZvXDwCEXrF3sdzEFOts6pU= 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 To: Wu Fengguang Cc: Dave Young , linux-mm , Linux Kernel Mailing List , Andrew Morton , Mel Gorman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1307 Lines: 37 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 -- Kind regards, Minchan Kim -- 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/