当前位置:网站首页>[开发杂项][调试]debug into kernel
[开发杂项][调试]debug into kernel
2022-08-04 05:30:00 【xcy6666】
problem
- a blocked process on server
gdbget few infomation- log get few infomation
top/ps check pid, check cpu utilization
strace check syscall
pstrack print userspace call stack
WCHAN, syscall
man ps | grep WCHAN
ps -flp pid
ps -flp pid
cat /proc/pid/wchan # check wait status
cat /proc/pid/syscall # check syscall
262 .....
262 ⇒ newfstatat
man newfstatat
fstatat
print kernel space call stack
cat /proc/PID/stack
ps
ps fauwwwx
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 896 576 ? Sl 15:58 0:00 /init
root 239 0.0 0.0 896 84 ? Ss 16:01 0:00 /init
root 240 0.0 0.0 0 0 ? Z 16:01 0:00 \_ [init] <defunct>
root 242 0.0 0.0 0 0 ? Z 16:01 0:00 \_ [init] <defunct>
root 244 0.0 0.0 896 84 ? S 16:01 0:00 \_ /init
root 245 0.0 0.4 1242416 27228 pts/2 Ssl+ 16:01 0:01 \_ /mnt/wsl/docker-desktop/docker-desktop-proxy --distro-name Ubuntu-20.04 --docker-desktop-root /mnt/wsl/docker-desktop --show-kube-system-containers=true
list open file
sudo lsof -p 1
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
init 1 root cwd DIR 8,16 4096 2 /
init 1 root rtd DIR 8,16 4096 2 /
init 1 root txt REG 0,18 632048 281474977205323 /init
init 1 root 0u CHR 1,3 0t0 10 /dev/null
init 1 root 1u CHR 1,3 0t0 10 /dev/null
init 1 root 2u CHR 1,3 0t0 10 /dev/null
init 1 root 3w CHR 1,11 0t0 15 /dev/kmsg
init 1 root 5r REG 0,4 0 4026532184 mnt
init 1 root 6r REG 0,4 0 4026532200 mnt
init 1 root 8u DIR 8,16 4096 2 /
init 1 root 9u sock 0,8 0t0 15429 protocol: AF_VSOCK
init 1 root 10u a_inode 0,12 0 14787 [eventpoll]
init 1 root 100u sock 0,8 0t0 15424 protocol: AF_VSOCK
kernel core dump
ipmitool 工具发送 NMI 信号
让系统产生 vmcore(Linux 内核崩溃时产生的内核转储文件)
以便后续分析
边栏推荐
- 如何用Pygame制作简单的贪吃蛇游戏
- 【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
- MFC 打开与保存点云PCD文件
- 光条中心提取方法总结(一)
- tensorRT5.15 使用中的注意点
- LeetCode_Dec_1st_Week
- Unity ML-agents 参数设置解明
- How to get started with MOOSE platform - an example of how to run the official tutorial
- lstm pipeline 过程理解(输入输出)
- (Navigation page) OpenStack-M version - manual construction of two nodes - with video from station B
猜你喜欢

【论文阅读】SPANET: SPATIAL PYRAMID ATTENTION NETWORK FOR ENHANCED IMAGE RECOGNITION

Transformer

第二章 STA相关概念

"A minute" Copy siege lion log 】 【 run MindSpore LeNet model

Deep Learning Theory - Overfitting, Underfitting, Regularization, Optimizers

MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络

lstm pipeline 过程理解(输入输出)

【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification

腾讯、网易纷纷出手,火到出圈的元宇宙到底是个啥?

【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#
随机推荐
投稿相关
sbl_init.asm-适合在编辑模式下看
语音驱动嘴型与面部动画生成的现状和趋势
LeetCode_22_Apr_2nd_Week
TypeError: load() missing 1 required positional argument: ‘Loader‘
[CV-Learning] Convolutional Neural Network Preliminary Knowledge
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
如何成长为高级工程师?
Android foundation [Super detailed android storage method analysis (SharedPreferences, SQLite database storage)]
Introduction to Convolutional Neural Networks
Endnote编辑参考文献
Qt日常学习
2020-10-19
机器学习——分类问题对于文字标签的处理(特征工程)
双向LSTM
MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
光条中心提取方法总结(一)
Unity ML-agents 参数设置解明
动手学深度学习__数据操作
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation