当前位置:网站首页>[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
gdb
get 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 newfstatat
fstatat
print kernel space call stack
cat /proc/PID/stack
ps
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=true
list 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_VSOCK
kernel 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
边栏推荐
- 集合---ArrayList的底层
- MNIST手写数字识别 —— 从感知机到卷积神经网络
- Install Minikube Cluster in AWS-EC2
- 管道重定向
- 学习资料re-id
- Copy攻城狮信手”粘“来 AI 对对联
- 基于BiGRU和GAN的数据生成方法
- 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 pipeline 过程理解(输入输出)
- Amazon Cloud Technology Build On-Amazon Neptune's Knowledge Graph-Based Recommendation Model Building Experience
猜你喜欢
双向LSTM
度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)
arm-3-中断体系结构
安装pyspider后运行pyspider all后遇到的问题
makefile基础学习
MNIST Handwritten Digit Recognition - Building a Perceptron from Zero for Two-Classification
arm学习-1-开发板
MNIST手写数字识别 —— ResNet-经典卷积神经网络
CSDN大礼包--高校圆桌派大礼包
亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得
随机推荐
卷积神经网络入门详解
"A minute" Copy siege lion log 】 【 run MindSpore LeNet model
tensorRT5.15 使用中的注意点
Stream API
【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#
The Unity of ML - agents interpret parameter Settings
How to grow into a senior engineer?
No matching function for call to ‘RCTBridgeModuleNameForClass‘
第三章 标准单元库(下)
[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
YOLOV5 V6.1 详细训练方法
MNIST Handwritten Digit Recognition - Image Analysis Method for Binary Classification
How to get started with MOOSE platform - an example of how to run the official tutorial
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
LeetCode_Nov_5th_Week
深度学习理论 —— 初始化、参数调节
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
LeetCode_Dec_2nd_Week
文件编辑器