[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1223052415-18956-1-git-send-email-mel@csn.ul.ie>
Date: Fri, 3 Oct 2008 17:46:53 +0100
From: Mel Gorman <mel@....ul.ie>
To: akpm@...ux-foundation.org
Cc: Mel Gorman <mel@....ul.ie>, kosaki.motohiro@...fujitsu.com,
dave@...ux.vnet.ibm.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] Report the size of pages backing VMAs in /proc V3
The following two patches add support for printing the size of pages used
by the kernel to back VMAs in maps and smaps. This can be used by a user
to verify that a hugepage-aware application is using the expected page sizes.
In one case the pagesize used by the MMU differs from the size used by the
kernel. This is on PPC64 using 64K as a base page size running on a processor
that does not support 64K in the MMU. In this case, the kernel uses 64K pages
but the MMU is still using 4K.
The first patch prints the size of page used by the kernel when allocating
pages for a VMA in /proc/pid/smaps and should not be considered too
contentious as it is highly unlikely to break any parsers. The second patch
reports the size of page used by hugetlbfs regions in /proc/pid/maps. There is
a possibility that the final patch will break parsers but they are arguably
already broken. More details are in the patches themselves.
Thanks to KOSAKI Motohiro for rebasing the patches onto mmotm, reviewing
and testing.
Changelog since V2
o Drop printing of MMUPageSize (mel)
o Rebase onto mmotm (KOSAKI Motohiro)
Changelog since V1
o Fix build failure on !CONFIG_HUGETLB_PAGE
o Uninline helper functions
o Distinguish between base pagesize and MMU pagesize
fs/proc/task_mmu.c | 27 ++++++++++++++++++---------
include/linux/hugetlb.h | 3 +++
mm/hugetlb.c | 17 +++++++++++++++++
3 files changed, 38 insertions(+), 9 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists