[PATCH 0/3] makedumpfile: hugepage filtering for vmcore dump

Jingbai Ma
2013-11-05T13:46:00Z

This patch set intend to exclude unnecessary hugepages from vmcore dump file.

This patch requires the kernel patch to export necessary data structures into
vmcore: "kexec: export hugepage data structure into vmcoreinfo"
http://lists.infradead.org/pipermail/kexec/2013-November/009997.html

This patch introduce two new dump levels 32 and 64 to exclude all unused and
active hugepages. The level to exclude all unnecessary pages will be 127 now.

| cache cache free active
Dump | zero without with user free huge huge
Level | page private private data page page page
-------+----------------------------------------------------------
0 |
1 | X
2 | X
4 | X X
8 | X
16 | X
32 | X
64 | X X
127 | X X X X X X X

example:
To exclude all unnecessary pages:
makedumpfile -c --message-level 23 -d 127 /proc/vmcore /var/crash/kdump

To exclude all unnecessary pages but keep active hugepages:
makedumpfile -c --message-level 23 -d 63 /proc/vmcore /var/crash/kdump

---

Jingbai Ma (3):
makedumpfile: hugepage filtering: add hugepage filtering functions
makedumpfile: hugepage filtering: add excluding hugepage messages
makedumpfile: hugepage filtering: add new dump levels for manual page

makedumpfile.8 | 170 +++++++++++++++++++++++++++--------
makedumpfile.c | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
makedumpfile.h | 19 ++++
print_info.c | 12 +-
print_info.h | 2
5 files changed, 431 insertions(+), 44 deletions(-)

--