From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id BE2076B005D for ; Wed, 1 Jul 2009 13:23:18 -0400 (EDT) Message-ID: <4A4B9BA1.6040109@redhat.com> Date: Wed, 01 Jul 2009 13:23:45 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log References: <20090701103622.85CD.A69D9226@jp.fujitsu.com> <20090701082531.85C2.A69D9226@jp.fujitsu.com> <10604.1246459458@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Christoph Lameter Cc: David Howells , KOSAKI Motohiro , Minchan Kim , Johannes Weiner , Andrew Morton , LKML , "peterz@infradead.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" List-ID: Christoph Lameter wrote: > 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. Or we count the number of stacks internally and only convert to pages whenever we display the value. -- All rights reversed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org