Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753700AbYKFGae (ORCPT ); Thu, 6 Nov 2008 01:30:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751166AbYKFGaZ (ORCPT ); Thu, 6 Nov 2008 01:30:25 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:59180 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbYKFGaZ (ORCPT ); Thu, 6 Nov 2008 01:30:25 -0500 Date: Thu, 6 Nov 2008 07:30:12 +0100 From: Ingo Molnar To: Ken Chen Cc: Linux Kernel Mailing List , Peter Zijlstra , Steven Rostedt Subject: Re: [patch] sched: fix single-depth wchan output Message-ID: <20081106063012.GA15731@elte.hu> References: <20081106061125.GA6384@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00,DNS_FROM_SECURITYSAGE autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 DNS_FROM_SECURITYSAGE RBL: Envelope sender in blackholes.securitysage.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1534 Lines: 35 * Ken Chen wrote: > On Wed, Nov 5, 2008 at 10:11 PM, Ingo Molnar wrote: > > > hm, this adds overhead - and the thing is that WCHAN is rather > > uninformative to begin with (because it's a single dimension), so > > we should phase it out, not expand it. > > > > How about adding a /proc//stacktrace file that gives us the > > stack trace of any task in the system? That would be useful for a > > number of other purposes as well, and about 100 times more useful > > than wchan. (often it would be more useful than sysrq-t dumps) > > Sure, my main motivation is to remove frame pointer generation. > x86_64 unconditionally adds fp for kernel/sched.c right now. I'm > all for phasing out wchan if people don't think there is value in > it. are you interested in adding /proc//stacktrace? If yes then we could remove fp generation for 64-bit right now and add your stacktrace patch when you are done with it. Generally we want frame pointers for high quality backtraces and trouble-shooting. The small cost is almost always worth paying and most distros enable framepointers for that reason. On 32-bit a no-framepointers kernel image has less register pressure, but on 64-bit there's little reason to not enable them. Ingo -- 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/