针对系统版本为:CentOS Linux release 7.4.1708 (Core)
[root@node3 opt]# cat /etc/redhat-release

问题:由于并发执行脚本导致内核软死锁:

解决方式:
1、查看/proc/sys/kernel/watchdog_thresh中的参数
[root@node3 opt]# tail -1 /proc/sys/kernel/watchdog_thresh
20

2、临时生效该参数
[root@node3 opt]# sysctl -w kernel.watchdog_thresh=30
kernel.watchdog_thresh = 30

#将修改watchdog_thresh中的参数为30。
#查看watchdog_thresh中参数
# tail -1 /proc/sys/kernel/watchdog_thresh
30

3、使用echo永久生效
[root@node3 opt]# echo 30 > /proc/sys/kernel/watchdog_thresh
[root@node3 opt]# tail -1 /proc/sys/kernel/watchdog_thresh

本文针对CentOSLinuxrelease7.4.1708(Core)系统中因并发执行脚本导致的内核软死锁问题,提供了一种通过调整watchdog_thresh参数来解决的方法。首先,通过查看当前watchdog_thresh参数的设置,然后临时将其从20调整到30以观察效果。最后,通过修改配置文件使这一改动永久生效。
3617

被折叠的 条评论
为什么被折叠?



