System Becomes Unresponsive
System Becomes Unresponsive
Products & Services Knowledgebase System becomes unresponsive with message "INFO: task
<process>:<pid> blocked for more than 120 secon...
Environment
Red Hat Enterprise Linux (RHEL) 9
Red Hat Enterprise Linux (RHEL) 8
Red Hat Enterprise Linux (RHEL) 7
Red Hat Enterprise Linux (RHEL) 6
Red Hat Enterprise Linux (RHEL) 5.5 (kernel-2.6.18-194) or above
Processes in uninterruptible sleep (D state)
Issue
/var/log/messages had a series of following messages before the system
became unresponsive:
What is the reason behind above messages and what kind of information is
needed to troubleshoot them?
Resolution
https://access.redhat.com/solutions/31453 Page 1 of 12
System becomes unresponsive with message "INFO: task <process>… blocked for more than 120 seconds". - Red Hat Customer Portal 27/02/24, 11:10 AM
See CAUTIONS section with "How do I use hung task check?" for
possible situations that can cause false triggering of stalled task logic
due to misconfiguration of the system.
# sysctl kernel.hung_task_timeout_secs=0
If it causes the crash and the causes are known to be erroneous, please
disable it by putting the below in /etc/sysctl.conf. Once have the below value
in the file, please run 'sysctl -p' to apply the change.
kernel.hung_task_panic = 0
Root Cause
In kernel version 2.6.18-194 of Red Hat Enterprise Linux 5.5, the Detect
Hung Task kernel thread ( khungtaskd ) was added, which provides the
ability to detect tasks stuck in D-state ( Uninterruptible Sleep (UN) ) longer
than a specified time period (120 seconds by default) and results in following
type of message in system log file ( i.e /var/log/messages ).
https://access.redhat.com/solutions/31453 Page 2 of 12
System becomes unresponsive with message "INFO: task <process>… blocked for more than 120 seconds". - Red Hat Customer Portal 27/02/24, 11:10 AM
The khungtaskd kernel thread monitors the process states and checks if
there are any processes stuck in uninterruptible state for the period set in
"kernel.hung_task_timeout_secs" sysctl parameter (default is 120 seconds).
If so it will log the message along with a call trace of the process that is
blocked. The hung task watchdog will by default only report the first 10
instances of detected hung tasks and then will disable reporting. This is to
prevent the system log from being flooded with messages. This means that
even though no more blocked task messages are being reported there may
still be processes becoming stuck for long periods.
Diagnostic Steps
Look for log messages like:
https://access.redhat.com/solutions/31453 Page 3 of 12
System becomes unresponsive with message "INFO: task <process>… blocked for more than 120 seconds". - Red Hat Customer Portal 27/02/24, 11:10 AM
Then provide:
Check if it's using remote filesystem such as NFS which can cause of delay
when there's high number of requests on NFS server
Category Troubleshoot
This solution is part of Red Hat’s fast-track publication program, providing a huge
library of solutions that Red Hat engineers have created while supporting our
customers. To give you the knowledge you need the instant it becomes available,
these articles may be presented in a raw and unedited form.
https://access.redhat.com/solutions/31453 Page 4 of 12