By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Kmemdump Proposed For The Linux Kernel To Help With Memory Dumping & Debugging
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Kmemdump Proposed For The Linux Kernel To Help With Memory Dumping & Debugging
Computing

Kmemdump Proposed For The Linux Kernel To Help With Memory Dumping & Debugging

News Room
Last updated: 2025/04/22 at 8:36 AM
News Room Published 22 April 2025
Share
SHARE

Eugen Hristev of Linaro sent out a “request for comments” patch series today proposing kmemdump for the Linux kernel as a new means to assist in debugging driver/system problems by making it easier to dump memory for specific areas/regions.

Kmemdump is infrastructure that allows kernel drivers to register specific chunks of memory and those flagged areas can be easily dumped in case of system problems or other debugging purposes. The infrastructure is basically allowing drivers or other producers to recognize certain regions of memory important for debugging so that they can be easily dumped later on short of having to dump and archive all of the memory (RAM) contents. With appropriate system capabilities and hardware, it could be possible to save those kmemdump-monitored regions in case the kernel becomes frozen/crashed or other problematic state and just keeping track of those specific memory areas.

This experimental kmemdump code also allows assembling memory regions into a coredump readable format for consumption by debuggers. The marked memory regions can be put into a core ELF file along with associated data structures so that the coredump file can then be loaded into the GNU Debugger (GDB) or other crash reporting analysis tools.

broken memory

With Linaro’s involvement, the initial focus seems to be on making use of kmemdump for Qualcomm hardware. As part of this RFC patch series is Qualcomm Minidump as a back-end for kmemdump.

Eugen Hristev sums up in the RFC patch series for kmemdump:

“kmemdump is a mechanism which allows the kernel to mark specific memory areas for dumping or specific backend usage.

Once regions are marked, kmemdump keeps an internal list with the regions and registers them in the backend.

Further, depending on the backend driver, these regions can be dumped using firmware or different hardware block.

Regions being marked beforehand, when the system is up and running, there is no need nor dependency on a panic handler, or a working kernel that can dump the debug information.

The kmemdump approach works when pstore, kdump, or another mechanism do not. Pstore relies on persistent storage, a dedicated RAM area or flash, which has the disadvantage of having the memory reserved all the time, or another specific non volatile memory. Some devices cannot keep the RAM contents on reboot so ramoops does not work. Some devices do not allow kexec to run another kernel to debug the crashed one. For such devices, that have another mechanism to help debugging, like firmware, kmemdump is a viable solution.

kmemdump can create a core image, similar with /proc/vmcore, with only the registered regions included. This can be loaded into crash tool/gdb and analyzed.

To have this working, specific information from the kernel is registered, and this is done at kmemdump init time, no need for the kmemdump user to do anything.”

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article The Best Kitchen Composters for Digging in the Dirt
Next Article This Retro Handheld Maker Has Stopped US Shipments During Tariff Confusion
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Crisol is a BioShock-Like Cult Horror Shooter Using Your Blood For Bullets
News
A Beginner’s Guide to Data Protection for Microsoft 365 Exchange
Computing
Why Eco-Luxury Is The Next Big Market For Tech-Savvy Entrepreneurs
Gadget
Huge Timberland weekend sale live — 15 summer footwear styles from $39 I’d shop now
News

You Might also Like

Computing

A Beginner’s Guide to Data Protection for Microsoft 365 Exchange

0 Min Read
Computing

How to Create a Gantt Chart in Google Calendar? |

22 Min Read
Computing

How America Helped Iran Start Its Nuclear Program | HackerNoon

6 Min Read
Computing

Vulkan 1.4.319 Published With New Data Graph Extension

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?