sometime the process hang in the kernel, however it's a sleep case hang,such as mutex.
then we need a kthread call stack dump.
1. 生成kdump
virsh dump guest1 core.dump --memory-only
或者
trigger a kdump
2. crash vmlinux x.dump
ps the task
bt pid to get the call stack

这篇博客探讨了当Linux内核中进程出现挂起情况,特别是睡眠状态下的挂起时,如何通过kdump生成核心转储文件,并使用crash工具分析vmlinux和dump文件,获取挂起线程的调用堆栈。通过 pst 和 btpid 命令来定位问题。

8万+

被折叠的 条评论
为什么被折叠?



