본문 바로가기

리눅스

[리눅스] watchdog: BUG: soft lockup - CPU#0 stuck for 63s!

728x90

watchdog: BUG: soft lockup 에러

테스트 환경

$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

커널(kernel) 로그 확인

cat /var/log/kern.log
Nov  7 11:00:05 kube-control1 kernel: [ 5641.225770] watchdog: BUG: soft lockup - CPU#0 stuck for 63s! [containerd-shim:2130]

커널 파라미터 확인

cat /proc/sys/kernel/watchdog_thresh
$ cat /proc/sys/kernel/watchdog_thresh
10

해결 방법

echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.conf
sysctl -p
$ sysctl -p
kernel.watchdog_thresh = 20
728x90