From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754222AbaE1WpH (ORCPT ); Wed, 28 May 2014 18:45:07 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42860 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751264AbaE1WpG (ORCPT ); Wed, 28 May 2014 18:45:06 -0400 Message-ID: <5386664A.5060304@zytor.com> Date: Wed, 28 May 2014 15:42:18 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Dave Chinner CC: Steven Rostedt , Minchan Kim , Linus Torvalds , linux-kernel@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, Ingo Molnar , Peter Zijlstra , Mel Gorman , Rik van Riel , Johannes Weiner , Hugh Dickins , rusty@rustcorp.com.au, mst@redhat.com, Dave Hansen Subject: Re: [RFC 2/2] x86_64: expand kernel stack to 16K References: <1401260039-18189-1-git-send-email-minchan@kernel.org> <1401260039-18189-2-git-send-email-minchan@kernel.org> <20140528101401.43853563@gandalf.local.home> <20140528221118.GN8554@dastard> In-Reply-To: <20140528221118.GN8554@dastard> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/28/2014 03:11 PM, Dave Chinner wrote: > On Wed, May 28, 2014 at 07:23:23AM -0700, H. Peter Anvin wrote: >> We tried for 4K on x86-64, too, for b quite a while as I recall. >> The kernel stack is a one of the main costs for a thread. I would >> like to decouple struct thread_info from the kernel stack (PJ >> Waskewicz was working on that before he left Intel) but that >> doesn't buy us all that much. >> >> 8K additional per thread is a huge hit. XFS has indeed always >> been a canary, or troublespot, I suspect because it originally >> came from another kernel where this was not an optimization >> target. > > > > Always blame XFS for stack usage problems. > > Even when the reported problem is from IO to an ext4 filesystem. > You were the one calling it a canary. -hpa