From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Rik van Riel <riel@redhat.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
Christoph Lameter <cl@linux-foundation.org>,
David Howells <dhowells@redhat.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: Fri, 3 Jul 2009 09:03:15 +0900 (JST) [thread overview]
Message-ID: <20090703090226.08E6.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <4A4B9BA1.6040109@redhat.com>
> 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.
Thanks good idea. I'll implement this today (or tommorow).
--
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>
prev parent reply other threads:[~2009-07-02 23:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-30 6:03 [PATCH] " KOSAKI Motohiro
2009-06-30 6:29 ` KOSAKI Motohiro
2009-06-30 14:13 ` Christoph Lameter
2009-06-30 23:26 ` KOSAKI Motohiro
2009-07-01 1:37 ` [PATCH v2] " KOSAKI Motohiro
2009-07-01 2:11 ` David Rientjes
2009-07-01 2:52 ` KOSAKI Motohiro
2009-07-01 14:44 ` David Howells
2009-07-01 17:16 ` Christoph Lameter
2009-07-01 17:23 ` Rik van Riel
2009-07-03 0:03 ` KOSAKI Motohiro [this message]
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=20090703090226.08E6.A69D9226@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.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=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.com \
--cc=npiggin@suse.de \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox