From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with SMTP id 780A36B004D for ; Wed, 1 Jul 2009 13:16:21 -0400 (EDT) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id 4A57682C31A for ; Wed, 1 Jul 2009 13:34:31 -0400 (EDT) Received: from smtp.ultrahosting.com ([74.213.175.254]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3qZVOgC8pfM2 for ; Wed, 1 Jul 2009 13:34:31 -0400 (EDT) Received: from gentwo.org (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id E9F5F82C595 for ; Wed, 1 Jul 2009 13:34:22 -0400 (EDT) Date: Wed, 1 Jul 2009 13:16:27 -0400 (EDT) From: Christoph Lameter 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.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" List-ID: 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. -- 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