Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbZLaPsj (ORCPT ); Thu, 31 Dec 2009 10:48:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752510AbZLaPsi (ORCPT ); Thu, 31 Dec 2009 10:48:38 -0500 Received: from www84.your-server.de ([213.133.104.84]:47221 "EHLO www84.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbZLaPsi (ORCPT ); Thu, 31 Dec 2009 10:48:38 -0500 Subject: Re: [PATCH] proc: revert to show stack information in /proc/{pid}/status From: Stefani Seibold To: KOSAKI Motohiro Cc: LKML , Ingo Molnar , Peter Zijlstra , Alexey Dobriyan , "Eric W. Biederman" , Randy Dunlap , Andrew Morton In-Reply-To: <20091231231051.1A1B.A69D9226@jp.fujitsu.com> References: <20091231231051.1A1B.A69D9226@jp.fujitsu.com> Content-Type: text/plain; charset="ISO-8859-15" Date: Thu, 31 Dec 2009 16:48:14 +0100 Message-ID: <1262274494.14143.7.camel@wall-e> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: stefani@seibold.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1482 Lines: 36 Am Donnerstag, den 31.12.2009, 23:12 +0900 schrieb KOSAKI Motohiro: > Commit d899bf7b (procfs: provide stack information for threads) introduced > to show stack information in /proc/{pid}/status. But it cause large performance > regression. Unfortunately /proc/{pid}/status is used ps command too and ps is > one of most important component. Because both to take mmap_sem and page table walk > are heavily operation. > /proc//status is IMHO not a performance relevant thing. The main reason is to provide exact information about a running process. > Thus, this patch revert it. Fortunately /proc/{pid}/task/{tid}/smaps > provide almost same information. we can use it. > Completely wrong. Where does smaps provides this kind of information? Where is there the high water mark of the stack usage? > Cc: Stefani Seibold > Cc: Ingo Molnar > Cc: Peter Zijlstra > Cc: Alexey Dobriyan > Cc: "Eric W. Biederman" > Cc: Randy Dunlap > Cc: Andrew Morton > Signed-off-by: KOSAKI Motohiro > --- Nak: Stefani Seibold -- 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/