当前位置:网站首页>[开发杂项][调试]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 内核崩溃时产生的内核转储文件)
以便后续分析
边栏推荐
- 软著撰写注意事项
- 【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
- 【论文阅读】Anchor-Free Person Search
- Data reading in yolov3 (1)
- Tencent and NetEase have taken action one after another. What is the metaverse that is so popular that it is out of the circle?
- 双向LSTM
- DRA821 环境搭建
- Pytorch问题总结
- LeetCode_Nov_5th_Week
- Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
猜你喜欢

PCL1.12 解决memory.h中EIGEN处中断问题

LeetCode_Dec_3rd_Week

度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)

迅雷关闭自动更新

亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得

tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)

The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation

No matching function for call to ‘RCTBridgeModuleNameForClass‘
![[CV-Learning] Convolutional Neural Network Preliminary Knowledge](/img/7d/58d9649b06e78eeb019d63615a90c4.png)
[CV-Learning] Convolutional Neural Network Preliminary Knowledge

MNIST Handwritten Digit Recognition - Lenet-5's First Commercial Grade Convolutional Neural Network
随机推荐
Deep Learning Theory - Initialization, Parameter Adjustment
Copy Siege Lions "sticky" to AI couplets
Golang环境变量设置(二)--GOMODULE&GOPROXY
[CV-Learning] Convolutional Neural Network Preliminary Knowledge
深度学习理论——过拟合、欠拟合、正则化、优化器
How to grow into a senior engineer?
强化学习中,Q-Learning与Sarsa的差别有多大?
CAS无锁队列的实现
Install Minikube Cluster in AWS-EC2
典型CCN网络——efficientNet(2019-Google-已开源)
yoloV5 使用——训练速度慢,加速训练
LeetCode_Nov_3rd_Week
How to get started with MOOSE platform - an example of how to run the official tutorial
LeetCode_Nov_4th_Week
MNIST手写数字识别 —— ResNet-经典卷积神经网络
【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
ConnectionRefusedError: [Errno 111] Connection refused问题解决
LeetCode_22_Apr_2nd_Week
Deep Learning Theory - Overfitting, Underfitting, Regularization, Optimizers
MNIST Handwritten Digit Recognition - Lenet-5's First Commercial Grade Convolutional Neural Network