How to use ftrace and trace-cmd to trace function calls inside the Linux kernel. Configuration, usage examples, and performance diagnostics.
Posts for: #Debug
dmesg Command in Linux — How to Read Kernel Logs
How to use the dmesg command to diagnose hardware, driver, and boot issues in Linux. Practical examples of filtering and analyzing kernel log messages.
Strace in Linux — How to Trace System Calls
How to use strace to trace system calls of processes in Linux. Attaching to running processes, filtering, and practical debugging examples.
Linux SysRq Key — How to Rescue a Frozen Server
How to use the Magic SysRq Key for emergency reboot of a frozen Linux server. The REISUB sequence, sysctl configuration, and essential SysRq commands.
Kdump — How to Capture and Analyze Linux Kernel Crashes
How to configure kdump to capture memory dumps after a Kernel Panic and analyze them with the crash tool. Setting up kexec, crashkernel, and vmcore analysis.
Linux Kernel Panic — Causes and How to Fix It
What is a Kernel Panic and how to configure automatic system reboot after a crash using the sysctl kernel.panic parameter. Values and use cases for servers.
Linux OOM Killer — The Process Assassin You Need to Know
What is the Linux OOM Killer, how does it choose which process to terminate, and how can you protect critical services from being killed when memory runs out.