From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753597AbZGARQw (ORCPT ); Wed, 1 Jul 2009 13:16:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753144AbZGARQp (ORCPT ); Wed, 1 Jul 2009 13:16:45 -0400 Received: from smtp3.ultrahosting.com ([74.213.175.254]:53364 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752295AbZGARQo (ORCPT ); Wed, 1 Jul 2009 13:16:44 -0400 Date: Wed, 1 Jul 2009 13:16:27 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: David Howells cc: KOSAKI Motohiro , Minchan Kim , Johannes Weiner , "riel@redhat.com" , Andrew Morton , LKML , "peterz@infradead.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" Subject: Re: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log In-Reply-To: <10604.1246459458@redhat.com> Message-ID: References: <20090701103622.85CD.A69D9226@jp.fujitsu.com> <20090701082531.85C2.A69D9226@jp.fujitsu.com> <10604.1246459458@redhat.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 On Wed, 1 Jul 2009, David Howells wrote: > KOSAKI Motohiro wrote: > > > + int pages = THREAD_SIZE / PAGE_SIZE; > > Bad assumption. On FRV, for example, THREAD_SIZE is 8K and PAGE_SIZE is 16K. Guess that means we need arch specific accounting for this counter.