linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] Mark vmalloc and page-table pages
@ 2018-03-07 13:44 Matthew Wilcox
  2018-03-07 13:44 ` [PATCH v5 1/4] s390: Use _refcount for pgtables Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Matthew Wilcox @ 2018-03-07 13:44 UTC (permalink / raw)
  To: linux-mm; +Cc: Matthew Wilcox, linux-kernel

From: Matthew Wilcox <mawilcox@microsoft.com>

This patch set changes how we use the _mapcount field in struct page
so that we can store an extra 20+ bits of information about why the
page was allocated.  We expose that information to userspace through
/proc/kpageflags to help diagnose memory usage.  It can also help
debugging if we know what a page was most recently allocated for.

Changes since v4:
 - Added Kirill's acks
 - Fixed spelling (Kirill)
 - Allow a few extra bits to be used in page_type.

Matthew Wilcox (4):
  s390: Use _refcount for pgtables
  mm: Split page_type out from _mapcount
  mm: Mark pages allocated through vmalloc
  mm: Mark pages in use for page tables

 arch/s390/mm/pgalloc.c                 | 21 +++++++------
 arch/tile/mm/pgtable.c                 |  3 ++
 fs/proc/page.c                         |  4 +++
 include/linux/mm.h                     |  2 ++
 include/linux/mm_types.h               | 13 +++++---
 include/linux/page-flags.h             | 57 ++++++++++++++++++++++------------
 include/uapi/linux/kernel-page-flags.h |  3 +-
 kernel/crash_core.c                    |  1 +
 mm/page_alloc.c                        | 13 +++-----
 mm/vmalloc.c                           |  2 ++
 scripts/tags.sh                        |  6 ++--
 tools/vm/page-types.c                  |  2 ++
 12 files changed, 82 insertions(+), 45 deletions(-)

-- 
2.16.1

--
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] 8+ messages in thread

end of thread, other threads:[~2018-06-17 21:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 13:44 [PATCH v5 0/4] Mark vmalloc and page-table pages Matthew Wilcox
2018-03-07 13:44 ` [PATCH v5 1/4] s390: Use _refcount for pgtables Matthew Wilcox
2018-03-07 13:44 ` [PATCH v5 2/4] mm: Split page_type out from _mapcount Matthew Wilcox
2018-03-07 13:44 ` [PATCH v5 3/4] mm: Mark pages allocated through vmalloc Matthew Wilcox
2018-03-07 13:44 ` [PATCH v5 4/4] mm: Mark pages in use for page tables Matthew Wilcox
2018-06-17 15:09   ` Stafford Horne
2018-06-17 18:52     ` Matthew Wilcox
2018-06-17 21:46       ` Stafford Horne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).