Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758317AbZGGQhr (ORCPT ); Tue, 7 Jul 2009 12:37:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753713AbZGGQhk (ORCPT ); Tue, 7 Jul 2009 12:37:40 -0400 Received: from smtp3.ultrahosting.com ([74.213.175.254]:46114 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753445AbZGGQhj (ORCPT ); Tue, 7 Jul 2009 12:37:39 -0400 Date: Tue, 7 Jul 2009 12:37:34 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: KOSAKI Motohiro cc: LKML , linux-mm , Andrew Morton , Wu Fengguang , David Rientjes , Rik van Riel Subject: Re: [PATCH 3/5] Show kernel stack usage to /proc/meminfo and OOM log In-Reply-To: <20090705182409.08FC.A69D9226@jp.fujitsu.com> Message-ID: References: <20090705181400.08F1.A69D9226@jp.fujitsu.com> <20090705182409.08FC.A69D9226@jp.fujitsu.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 25 On Sun, 5 Jul 2009, KOSAKI Motohiro wrote: > Subject: [PATCH] Show kernel stack usage to /proc/meminfo and OOM log > > if the system have a lot of thread, kernel stack consume unignorable large size > memory. IOW, it make a lot of unaccountable memory. > Tons unaccountable memory bring to harder analyse memory related trouble. > > Then, kernel stack account is useful. The amount of memory allocated to kernel stacks can become significant and cause OOM conditions. However, we do not display the amount of memory consumed by stacks.' Add code to display the amount of memory used for stacks in /proc/meminfo. Reviewed-by: (It may be useful to also include the stack sizes in the per zone information displayed when an OOM occurs). -- 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/