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

From: David Howells
Date: Wed Jul 01 2009 - 11:18:50 EST


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.

David
--
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/