Linux 6.13 Will Report The Number Of Hung Tasks Since Boot

Written by Michael Larabel in Linux Kernel on 24 November 2024 at 06:15 AM EST. 2 Comments
LINUX KERNEL
Following all of the MM patches earlier this week sent in by Andrew Morton, on Sunday morning he sent out all of the non-MM patches that he manages for the Linux kernel. Notable for Linux 6.13 with this pull request is presenting the hung task counter as well as finishing off the folio conversion in the NILFS2 code.

Among the patches in the non-MM pull request is adding the code to detect the count of the number of hung tasks since boot time. Back when the idea and patches were first floated this work was covered on Phoronix within Linux Working On A Counter To Keep Track Of The Number Of Hung Tasks Since Boot.

Long story short this adds /proc/sys/kernel/hung_task_detect_count for indicating the number of hung task warnings since the system/server was booted. This is intended to help out particularly with Linux servers as a health metric for administrators to gauge if there may be software/hardware problems at play if encountering a number of unexpected hung tasks. It's a simple metric but until now there hasn't been any convenient "hung_task_detect_count" report readily available.

hung_task_detect_count


Also part of today's non-MM pull are clean-ups to the resource management code and finishing off the folio conversion for the NILFS2 file-system.

See the non-MM pull request for the full list of patches.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week