当前位置:网站首页>[开发杂项][调试]debug into kernel
[开发杂项][调试]debug into kernel
2022-08-04 05:30: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 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 内核崩溃时产生的内核转储文件)
以便后续分析
边栏推荐
- latex-写论文时一些常用设置
- Install Minikube Cluster in AWS-EC2
- 深度学习,“粮草”先行--浅谈数据集获取之道
- makefile基础学习
- MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络
- MNIST handwritten digit recognition - based on Mindspore to quickly build a perceptron to achieve ten categories
- Comparison of oracle's number and postgresql's numeric
- tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
- Data reading in yolov3 (1)
- 图像合并水平拼接
猜你喜欢
[CV-Learning] Convolutional Neural Network Preliminary Knowledge
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio
SQL注入详解
Deep Learning Theory - Overfitting, Underfitting, Regularization, Optimizers
How to get started with MOOSE platform - an example of how to run the official tutorial
DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better 图像去模糊
Copy攻城狮信手”粘“来 AI 对对联
Deep Adversarial Decomposition: A Unified Framework for Separating Superimposed Images
安装pyspider后运行pyspider all后遇到的问题
随机推荐
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
SQL注入详解
[CV-Learning] Linear Classifier (SVM Basics)
CAS无锁队列的实现
【论文阅读】SPANET: SPATIAL PYRAMID ATTENTION NETWORK FOR ENHANCED IMAGE RECOGNITION
lstm pipeline 过程理解(输入输出)
A code example of the PCL method in the domain of DG (Domain Generalization)
强化学习中,Q-Learning与Sarsa的差别有多大?
Qt日常学习
yoloV5 使用——训练速度慢,加速训练
Pytest common plug-in
剪映专业版字幕导出随笔
Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
MNIST手写数字识别 —— ResNet-经典卷积神经网络
MNIST手写数字识别 —— 从二分类到十分类
Code to celebrate the Dragon Boat Festival - Zongzi, your heart
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio
2020-10-19
MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类