Skip to contentSkip to conversation

How to store kernel pranic/oops

DISCUSSION Marco Stornelli 2 participants 2 messages Dec 28, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I know the open project proposal 2010 is closed, but it's just to start a discussion. It would be nice to save oops/panic automatically in a structure/file in ram. At the moment there are two way to save
information: mtdoops (save the information in flash), with kdump/kexec (we can extract the dmesg from vmcore file). With these tools there are some drawbacks:

1) There are embedded systems without a flash where to save the information;
2) we could consider this kind of logs too volatile for a flash, I mean there's no reason to store it for a long time, it's important to recover and read them as soon as possible, at next boot for example.
3) kdump requires a lot of ram and resources for embedded systems.
4) kexec is available only for some archs.

It would be nice to have a "ramoops" to save in a circular buffer in a persistent ram this kind of information. Any comments? Is there already anything similar out-of-tree?

Marco

#1 lore raw
Quoted 3 lines · Marco Stornelli

It would be nice to have a "ramoops" to save in a circular buffer in a persistent ram this kind of information. Any comments? Is there already anything similar out-of-tree?

Can't it be done with what's in the tree already? Just create an MTD device using phram or something else, then point mtdoops at it.

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation