On Wed, 13 Jul 2011 16:00:04 -0400 Vivek Goyal <vgoyal@xxxxxxxxxx> wrote: > On Wed, Jul 13, 2011 at 06:46:11PM +0200, Martin Schwidefsky wrote: > > [..] > > > What I am suggesting is that stand alone dumper gets control only if > > > kdump kernel is corrupted. > > > > > > So following sequence. > > > > > > Kernel Crash ---> purgatory --> either kdump kenrel/IPL stand alone tools > > > > > > Here only drawback seems to be that we assume that purgatory code and > > > pre-calculated checksum has not been corrupted. The big advantage is > > > that s390 kdump support looks very similar to other arches and > > > understaning and supporting kdump across architectures becomes easy. > > > > My problem with that is the following: how do we get from the "Kernel Crash" > > step to the purgatory code? It does work for "normal" panics, but it fails > > miserably for a hard crash that does not even get as far as panic. That is > > why we insist on a possible second order of things: > > What is hard crash? How does that happen and what does x86 and s390 > do in that case? E.g. an endless loop with interrupts disabled. To get out of this situation we will IPL/boot a new system. That is either the production system itself or the stand-alone dump tool. > Though I don't have details but your argument seems to be that in s390 > we are always guranteed that we will jump to IPLing the stand alone > tools code irresepective of the system state hence it is relatively > safer to do checks in stand alone tools instead of purgatory where > code is in memory. Now you got it. That is the crux of the argument. > If due to hard hang, code can not even make to purgatory, where would > it go? Can't we do IPLing of stand alone tool then. It doesn't go anywhere. Basically the system is manually stopped and restarted. But on s390 we can still get to all the required information to generated a dump. That is one of the major differences to x86, if you have to do a restart the registers on x86 will be gone, no? > So we first try to take purgatory path which does the checksum and is > consistent with other architectures. If that does not work in case > of hard hang, you always have the option of IPLing the stand alone tool > later manually. How are we suddenly on the purgatory path again? The code that gets control in case of a hard crash + IPL is the stand-alone dump tool, not the purgatory code. The first thing we want to do is to check if the purgatory is still fine, that is do a checksum. If we have the infrastructure in place to do one checksum then we can easily do the other checksums as well. > This will also get rid of requirement passing all the segment and cheksum > info to stand alone tool with the help of meminfo (That's another sore > point). No, it doesn't. We will still need to do the checksum for the purgatory code and we already have the re-ipl information which won't go away. > Bottom line, even if you can't make to purgatory reliably, you always > have the option of capturing dump manually using stand alone tools. We > don't have to mix up kdump and stand alone mechanism. If kdump fails, we > just need to have capability to still capture the dump using stand alone > tools manually. I think that will make things simpler even for stand alone > tools. If we decide not to mix kdump and stand-alone dump then we loose something. Consider a hard crash where the kdump segments are still intact. What our customers do in that case is to start the stand-alone dump utility. Without a way to find and verify the kdump setup we would have to do a full dump. Which will take its time if the memory size is big. See? -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html