Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754637Ab0DOFTS (ORCPT ); Thu, 15 Apr 2010 01:19:18 -0400 Received: from mga14.intel.com ([143.182.124.37]:28615 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876Ab0DOFTR (ORCPT ); Thu, 15 Apr 2010 01:19:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.52,210,1270450800"; d="scan'208";a="265930477" Date: Thu, 15 Apr 2010 13:19:11 +0800 From: Wu Fengguang To: KOSAKI Motohiro Cc: Andreas Mohr , Jens Axboe , Minchan Kim , Linux Memory Management List , "linux-kernel@vger.kernel.org" , Rik van Riel , Lee Schermerhorn Subject: Re: 32GB SSD on USB1.1 P3/700 == ___HELL___ (2.6.34-rc3) Message-ID: <20100415051911.GA17110@localhost> References: <20100415132312.D180.A69D9226@jp.fujitsu.com> <20100415044111.GA15682@localhost> <20100415135031.D186.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100415135031.D186.A69D9226@jp.fujitsu.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3296 Lines: 72 On Thu, Apr 15, 2010 at 12:55:30PM +0800, KOSAKI Motohiro wrote: > > On Thu, Apr 15, 2010 at 12:32:50PM +0800, KOSAKI Motohiro wrote: > > > > On Thu, Apr 15, 2010 at 11:31:52AM +0800, KOSAKI Motohiro wrote: > > > > > > > Many applications (this one and below) are stuck in > > > > > > > wait_on_page_writeback(). I guess this is why "heavy write to > > > > > > > irrelevant partition stalls the whole system". They are stuck on page > > > > > > > allocation. Your 512MB system memory is a bit tight, so reclaim > > > > > > > pressure is a bit high, which triggers the wait-on-writeback logic. > > > > > > > > > > > > I wonder if this hacking patch may help. > > > > > > > > > > > > When creating 300MB dirty file with dd, it is creating continuous > > > > > > region of hard-to-reclaim pages in the LRU list. priority can easily > > > > > > go low when irrelevant applications' direct reclaim run into these > > > > > > regions.. > > > > > > > > > > Sorry I'm confused not. can you please tell us more detail explanation? > > > > > Why did lumpy reclaim cause OOM? lumpy reclaim might cause > > > > > direct reclaim slow down. but IIUC it's not cause OOM because OOM is > > > > > only occur when priority-0 reclaim failure. > > > > > > > > No I'm not talking OOM. Nor lumpy reclaim. > > > > > > > > I mean the direct reclaim can get stuck for long time, when we do > > > > wait_on_page_writeback() on lumpy_reclaim=1. > > > > > > > > > IO get stcking also prevent priority reach to 0. > > > > > > > > Sure. But we can wait for IO a bit later -- after scanning 1/64 LRU > > > > (the below patch) instead of the current 1/1024. > > > > > > > > In Andreas' case, 512MB/1024 = 512KB, this is way too low comparing to > > > > the 22MB writeback pages. There can easily be a continuous range of > > > > 512KB dirty/writeback pages in the LRU, which will trigger the wait > > > > logic. > > > > > > In my feeling from your explanation, we need auto adjustment mechanism > > > instead change default value for special machine. no? > > > > You mean the dumb DEF_PRIORITY/2 may be too large for a 1TB memory box? > > > > However for such boxes, whether it be DEF_PRIORITY-2 or DEF_PRIORITY/2 > > shall be irrelevant: it's trivial anyway to reclaim an order-1 or > > order-2 page. In other word, lumpy_reclaim will hardly go 1. Do you > > think so? > > If my remember is correct, Its order-1 lumpy reclaim was introduced > for solving such big box + AIM7 workload made kernel stack (order-1 page) > allocation failure. > > Now, We are living on moore's law. so probably we need to pay attention > scalability always. today's big box is going to become desktop box after > 3-5 years. > > Probably, Lee know such problem than me. cc to him. In Andreas' trace, the processes are blocked in - do_fork: console-kit-d - __alloc_skb: x-terminal-em, konqueror - handle_mm_fault: tclsh - filemap_fault: ls I'm a bit confused by the last one, and wonder what's the typical gfp order of __alloc_skb(). Thanks, Fengguang -- 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/