makedumpfile fails with --mem-usage and --show-stats options on /proc/kcore

Solution Verified - Updated -

Issue

  • Unable to estimate the disk space required for the kdump dump file using the makedumpfile command.
# makedumpfile --mem-usage /proc/kcore
read_from_vmcore: Can't read the dump memory(/proc/kcore). Bad address
readpage_elf: Can't read the dump memory(/proc/kcore).
readmem: type_addr: 1, addr:236e00000, size:4096
exclude_zero_pages_cyclic: Can't get the page data(pfn:236e00, max_mapnr:240000).
create_2nd_bitmap: Can't exclude pages filled with zero for creating an ELF dumpfile.

makedumpfile Failed.
  • The following errors occur when executing makedumpfile with the --mem-usage or --show-stats options on /proc/kcore.
# makedumpfile --mem-usage /proc/kcore
read_from_vmcore: Can't read the dump memory(/proc/kcore). Bad address
readpage_elf: Can't read the dump memory(/proc/kcore).
readmem: type_addr: 1, addr:236e00000, size:4096
exclude_zero_pages_cyclic: Can't get the page data(pfn:236e00, max_mapnr:240000).
create_2nd_bitmap: Can't exclude pages filled with zero for creating an ELF dumpfile.

makedumpfile Failed.

# makedumpfile -F -l -d 31 /proc/kcore --dry-run --show-stats
Checking for memory holes                         : [100.0 %] |                  STEP [Checking for memory holes  ] : 0.007916 seconds
Excluding unnecessary pages                       : [100.0 %] \                  STEP [Excluding unnecessary pages] : 0.041266 seconds
read_from_vmcore: Can't read the dump memory(/proc/kcore). Bad address
readpage_elf: Can't read the dump memory(/proc/kcore).
readmem: type_addr: 1, addr:236e00000, size:4096
read_pfn: Can't get the page data.
STEP [Copying data               ] : 0.764934 seconds

makedumpfile Failed.

Environment

  • Red Hat Enterprise Linux 10
  • makedumpfile

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content