Messages in this thread | | | Date | Wed, 01 Jul 2009 13:23:45 -0400 | From | Rik van Riel <> | Subject | Re: [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.
| |