Interview Prep/Linux/Boot, time, cron and kernel

`dmesg` shows `watchdog: BUG: soft lockup - CPU#3 stuck for 23s!` on a VM.

AdvancedTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → The CPU didn't schedule for a long time: on VMs usually hypervisor contention (vCPU not run, host overloaded, live migration); on bare metal, a kernel or driver bug.

Diagnose →

dmesg -T | grep -A 30 'soft lockup'      # stack trace of what was running
mpstat 1 5                               # %steal
uname -r

Check hypervisor/cloud events for host maintenance.

Fix → For steal/hypervisor issues, move the VM or resize the host. For driver bugs, update the kernel/driver indicated in the stack.

Prevent → Avoid overcommitted hosts for latency-sensitive VMs; keep kernels current.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel