Re: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log

From: KOSAKI Motohiro
Date: Thu Jul 02 2009 - 20:03:41 EST


> Christoph Lameter wrote:
> > On Wed, 1 Jul 2009, David Howells wrote:
> >
> >> KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> 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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/