On Wed, Nov 27, 2019 at 2:48 PM Valdis Klētnieks <valdis.kletnieks@xxxxxx> wrote: > > On Tue, 26 Nov 2019 22:31:08 +0000, Lucas Tanure said: > > Hi, > > > > What about ftrace ? Documentation/trace/ftrace.txt > > That won't help - his ^@^@^@ is a result of the system stopping and no longer > writing to disk, so his logfile has blocks allocated to it but not yet written > to. > > Using ftrace will have the same problem, if his kernel is locking up and not > syncing to disk. I too noticed this kind of behavior i.e. kernel locks up and won’t respond for SYSRQ key(even it is enabled), just system freezes. Only way to recover is hard reboot, after reboot I looked at the kernel log and most of the times it has ^@^@^@. My system is installed with crashdump tools and it captures the crashed Linux kernel dump for soft\hard lockups triggered via /sys/kernel/debug/provoke-crash/DIRECT file, but the crashdump tool not helped in the original scenario. Apart from soft\hard lockups, are there any other scenarios kernel locks up and won’t respond for SYSRQ key? Is there any kernel patch I can apply to get the stack trace of each CPU before it stops? I enabled “kernel.softlockup_panic = 1” and “kernel.hardlockup_panic = 1” variables, but just system freezes without panic, so can we say this fault neither soft lockup nor hard lockup? Does machine check exceptions result the system to freeze? If so how to capture the dump\log for this scenario? I build the kernel with lockdep too, but does not show any possible lockups. Netconsole also not helped. > > A better approach would be to use netconsole to send all the console output to > another machine, or serial console if that's an option. > > Though I have to wonder how he's determining it's a deadlock issue rather than > a panic that's just plain stopping the system - building the kernel with > lockdep support should reveal the issue before a lockup. And if it *is* a > deadlock, there should be sufficient info in the watchdog logging (assuming the > hardware has some sort of watchdog support, as most systems do). > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@xxxxxxxxxxxxxxxxx > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Thanks, Sekhar _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies