当前位置:网站首页>[Development miscellaneous][Debug]debug into kernel
[Development miscellaneous][Debug]debug into kernel
2022-08-04 06:31: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 WCHANps -flp pidps -flp pidcat /proc/pid/wchan # check wait statuscat /proc/pid/syscall # check syscall262 .....262 ⇒ newfstatat
man newfstatatfstatat
print kernel space call stack
cat /proc/PID/stackps
ps fauwwwxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.0 896 576 ? Sl 15:58 0:00 /initroot 239 0.0 0.0 896 84 ? Ss 16:01 0:00 /initroot 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 \_ /initroot 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=truelist open file
sudo lsof -p 1COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEinit 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 /initinit 1 root 0u CHR 1,3 0t0 10 /dev/nullinit 1 root 1u CHR 1,3 0t0 10 /dev/nullinit 1 root 2u CHR 1,3 0t0 10 /dev/nullinit 1 root 3w CHR 1,11 0t0 15 /dev/kmsginit 1 root 5r REG 0,4 0 4026532184 mntinit 1 root 6r REG 0,4 0 4026532200 mntinit 1 root 8u DIR 8,16 4096 2/init 1 root 9u sock 0,8 0t0 15429 protocol: AF_VSOCKinit 1 root 10u a_inode 0,12 0 14787 [eventpoll]init 1 root 100u sock 0,8 0t0 15424 protocol: AF_VSOCKkernel core dump
The ipmitool tool sends an NMI signal
to make the system generate vmcore (a kernel dump file generated when the Linux kernel crashes)
for subsequent analysis
边栏推荐
- SQL注入详解
- LeetCode_Nov_3rd_Week
- MNIST手写数字识别 —— 从二分类到十分类
- 【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
- yoloV5 使用——训练速度慢,加速训练
- (Navigation page) OpenStack-M version - manual construction of two nodes - with video from station B
- DRA821 环境搭建
- 第三章 标准单元库(下)
- 腾讯、网易纷纷出手,火到出圈的元宇宙到底是个啥?
- MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
猜你喜欢
随机推荐
Install Minikube Cluster in AWS-EC2
arm交叉编译
第三章 标准单元库(下)
【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
IEEE802.X协议族
Implementation of CAS lock-free queue
【代码学习】
Pytest常用插件
LeetCode_22_Apr_4th_Week
双向LSTM
Fabric v1.1 环境搭建
Rules.make - suitable for viewing in edit mode
基于asp.net的法律援助平台的设计与实现(附项目链接)
YOLOV5 V6.1 详细训练方法
MNIST handwritten digit recognition - based on Mindspore to quickly build a perceptron to achieve ten categories
SQL注入详解
[日常办公][shell]常用代码段
安装pyspider后运行pyspider all后遇到的问题
迅雷关闭自动更新
bind()系统调用的用处









