linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Report the size of pages backing VMAs in /proc V2
@ 2008-09-23 20:45 Mel Gorman
  2008-09-23 20:45 ` [PATCH 1/3] Report the pagesize backing a VMA in /proc/pid/smaps Mel Gorman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mel Gorman @ 2008-09-23 20:45 UTC (permalink / raw)
  To: Linux-MM; +Cc: LKML, Dave Hansen, KOSAKI Motohiro, Mel Gorman

The following three patches add support for printing the size of pages 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.

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 on
the size of page used by the MMU as it can differ - for example on POWER
using 64K as a base pagesize on older processors. The final 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.

Changelog since V1
  o Fix build failure on !CONFIG_HUGETLB_PAGE
  o Uninline helper functions
  o Distinguish between base pagesize and MMU pagesize

 arch/powerpc/include/asm/hugetlb.h |    6 ++++++
 arch/powerpc/mm/hugetlbpage.c      |    7 +++++++
 fs/proc/task_mmu.c                 |   32 ++++++++++++++++++++++++--------
 include/linux/hugetlb.h            |    6 ++++++
 mm/hugetlb.c                       |   30 ++++++++++++++++++++++++++++++
 5 files changed, 73 insertions(+), 8 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-25 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23 20:45 [PATCH 0/3] Report the size of pages backing VMAs in /proc V2 Mel Gorman
2008-09-23 20:45 ` [PATCH 1/3] Report the pagesize backing a VMA in /proc/pid/smaps Mel Gorman
2008-09-25 14:51   ` KOSAKI Motohiro
2008-09-23 20:45 ` [PATCH 2/3] Report the MMU pagesize " Mel Gorman
2008-09-23 20:45 ` [PATCH 3/3] Report the pagesize backing a VMA in /proc/pid/maps Mel Gorman
2008-09-25 14:57   ` KOSAKI Motohiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox