All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Christoph Lameter <cl@linux-foundation.org>
Cc: David Howells <dhowells@redhat.com>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Minchan Kim <minchan.kim@gmail.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"peterz@infradead.org" <peterz@infradead.org>,
	"tytso@mit.edu" <tytso@mit.edu>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"elladan@eskimo.com" <elladan@eskimo.com>,
	"npiggin@suse.de" <npiggin@suse.de>,
	"Barnes, Jesse" <jesse.barnes@intel.com>
Subject: Re: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log
Date: Wed, 01 Jul 2009 13:23:45 -0400	[thread overview]
Message-ID: <4A4B9BA1.6040109@redhat.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0907011315540.9522@gentwo.org>

Christoph Lameter wrote:
> On Wed, 1 Jul 2009, David Howells wrote:
> 
>> KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 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.

WARNING: multiple messages have this Message-ID (diff)
From: Rik van Riel <riel@redhat.com>
To: Christoph Lameter <cl@linux-foundation.org>
Cc: David Howells <dhowells@redhat.com>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Minchan Kim <minchan.kim@gmail.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"peterz@infradead.org" <peterz@infradead.org>,
	"tytso@mit.edu" <tytso@mit.edu>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"elladan@eskimo.com" <elladan@eskimo.com>,
	"npiggin@suse.de" <npiggin@suse.de>,
	"Barnes, Jesse" <jesse.barnes@intel.com>
Subject: Re: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log
Date: Wed, 01 Jul 2009 13:23:45 -0400	[thread overview]
Message-ID: <4A4B9BA1.6040109@redhat.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0907011315540.9522@gentwo.org>

Christoph Lameter wrote:
> On Wed, 1 Jul 2009, David Howells wrote:
> 
>> KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-07-01 17:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  6:03 [PATCH] Show kernel stack usage to /proc/meminfo and OOM log KOSAKI Motohiro
2009-06-30  6:03 ` KOSAKI Motohiro
2009-06-30  6:29 ` KOSAKI Motohiro
2009-06-30  6:29   ` KOSAKI Motohiro
2009-06-30 14:13 ` Christoph Lameter
2009-06-30 14:13   ` Christoph Lameter
2009-06-30 23:26   ` KOSAKI Motohiro
2009-06-30 23:26     ` KOSAKI Motohiro
2009-07-01  1:37     ` [PATCH v2] " KOSAKI Motohiro
2009-07-01  1:37       ` KOSAKI Motohiro
2009-07-01  2:11       ` David Rientjes
2009-07-01  2:11         ` David Rientjes
2009-07-01  2:52         ` KOSAKI Motohiro
2009-07-01  2:52           ` KOSAKI Motohiro
2009-07-01 14:44       ` David Howells
2009-07-01 14:44         ` David Howells
2009-07-01 17:16         ` Christoph Lameter
2009-07-01 17:16           ` Christoph Lameter
2009-07-01 17:23           ` Rik van Riel [this message]
2009-07-01 17:23             ` Rik van Riel
2009-07-03  0:03             ` KOSAKI Motohiro
2009-07-03  0:03               ` KOSAKI Motohiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4B9BA1.6040109@redhat.com \
    --to=riel@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=elladan@eskimo.com \
    --cc=hannes@cmpxchg.org \
    --cc=jesse.barnes@intel.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=minchan.kim@gmail.com \
    --cc=npiggin@suse.de \
    --cc=peterz@infradead.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.