lkml.org 
[lkml]   [2009]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] Show kernel stack usage to /proc/meminfo and OOM log
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.


\
 
 \ /
  Last update: 2009-07-01 19:27    [W:0.044 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site