Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752324AbZGAPSp (ORCPT ); Wed, 1 Jul 2009 11:18:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751871AbZGAPSi (ORCPT ); Wed, 1 Jul 2009 11:18:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33338 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827AbZGAPSi (ORCPT ); Wed, 1 Jul 2009 11:18:38 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20090701103622.85CD.A69D9226@jp.fujitsu.com> References: <20090701103622.85CD.A69D9226@jp.fujitsu.com> <20090701082531.85C2.A69D9226@jp.fujitsu.com> To: KOSAKI Motohiro Cc: dhowells@redhat.com, Christoph Lameter , 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 Date: Wed, 01 Jul 2009 15:44:18 +0100 Message-ID: <10604.1246459458@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 429 Lines: 12 KOSAKI Motohiro wrote: > + int pages = THREAD_SIZE / PAGE_SIZE; Bad assumption. On FRV, for example, THREAD_SIZE is 8K and PAGE_SIZE is 16K. David -- 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/