How to verify if hung_task_panic kernel parameter is working properly on linux ?
Today in this article, we will look how to verify if kernel.hung_task_panic parameter is working fine or not as we have checked in below article.
https://ngelinux.com/what-is-hung-task-and-how-to-panic-our-rhel-centos-system-when-a-task-remains-hanged-for-specific-period-of-time/
Lets test this scenario and verify hung task panic if it works fine or not.
1. On first terminal: Run an infinite look for a disk write job.
# while true; do dd if=/dev/zero of=/tmp/dd_tempfile bs=15 count=2100; done
2. On Second terminal: Freeze this mount point /tmp/
# fsfreeze -f /tmp
Now after some time, system should panic and generate a task core dump as well.