Reboot on blocked task. I.E. Hanging after "INFO: task blahblah:1234 blocked for more than 120 seconds."

home | blog | Terrible people and places | Covid-19 links | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts




Nice write up here: line http://www.nico.schottelius.org/blog/reboot-linux-if-task-blocked-for-more-than-n-seconds/

Summary (in case that link goes away in future):
Set items in sysctl.conf if your badly written code hangs and
eventually panics the kernel:
# Reboot X seconds after panic
kernel.panic = X

# Panic if a hung task was found
kernel.hung_task_panic = 1

# Setup timeout for hung task to XYZ seconds
kernel.hung_task_timeout_secs = XYZ



[æ]