Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932753Ab1DMB3h (ORCPT ); Tue, 12 Apr 2011 21:29:37 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:52867 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932722Ab1DMB3g (ORCPT ); Tue, 12 Apr 2011 21:29:36 -0400 Date: Tue, 12 Apr 2011 18:31:32 -0700 From: Andrew Morton To: Changli Gao Cc: Eric Dumazet , =?ISO-8859-1?Q?Am=E9rico?= Wang , Jiri Slaby , azurIt , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Jiri Slaby Subject: Re: Regression from 2.6.36 Message-Id: <20110412183132.a854bffc.akpm@linux-foundation.org> In-Reply-To: References: <20110315132527.130FB80018F1@mail1005.cent> <20110317001519.GB18911@kroah.com> <20110407120112.E08DCA03@pobox.sk> <4D9D8FAA.9080405@suse.cz> <1302177428.3357.25.camel@edumazet-laptop> <1302178426.3357.34.camel@edumazet-laptop> <1302190586.3357.45.camel@edumazet-laptop> <20110412154906.70829d60.akpm@linux-foundation.org> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 31 On Wed, 13 Apr 2011 09:23:11 +0800 Changli Gao wrote: > On Wed, Apr 13, 2011 at 6:49 AM, Andrew Morton > wrote: > > > > It's somewhat unclear (to me) what caused this regression. > > > > Is it because the kernel is now doing large kmalloc()s for the fdtable, > > and this makes the page allocator go nuts trying to satisfy high-order > > page allocation requests? > > > > Is it because the kernel now will usually free the fdtable > > synchronously within the rcu callback, rather than deferring this to a > > workqueue? > > > > The latter seems unlikely, so I'm thinking this was a case of > > high-order-allocations-considered-harmful? > > > > Maybe, but I am not sure. Maybe my patch causes too many inner > fragments. For example, when asking for 5 pages, get 8 pages, and 3 > pages are wasted, then memory thrash happens finally. That theory sounds less likely, but could be tested by using alloc_pages_exact(). -- 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/