Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759928Ab0GBTeV (ORCPT ); Fri, 2 Jul 2010 15:34:21 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:48930 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759695Ab0GBTeT (ORCPT ); Fri, 2 Jul 2010 15:34:19 -0400 Date: Fri, 2 Jul 2010 12:33:15 -0700 From: Andrew Morton To: Mel Gorman Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Chris Mason , Nick Piggin , Rik van Riel , Johannes Weiner , Christoph Hellwig , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Andrea Arcangeli Subject: Re: [PATCH 0/14] Avoid overflowing of stack during page reclaim V3 Message-Id: <20100702123315.667c6eac.akpm@linux-foundation.org> In-Reply-To: <1277811288-5195-1-git-send-email-mel@csn.ul.ie> References: <1277811288-5195-1-git-send-email-mel@csn.ul.ie> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-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: 976 Lines: 23 On Tue, 29 Jun 2010 12:34:34 +0100 Mel Gorman wrote: > Here is V3 that depends again on flusher threads to do writeback in > direct reclaim rather than stack switching which is not something I'm > likely to get done before xfs/btrfs are ignoring writeback in mainline > (phd sucking up time). IMO, implemetning stack switching for this is not a good idea. We _already_ have a way of doing stack-switching. It's called "schedule()". The only reason I can see for implementing an in-place stack switch would be if schedule() is too expensive. And if we were to see excessive context-switch overheads in this code path (and we won't) then we should get in there and try to reduce the contect switch rate first. -- 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/