News: 0001603762

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux's Hung Task Detector Will Be Able To Be Reset For Easing System Administration

([Linux Kernel] 5 Hours Ago hung_task_detect_count)


Worked on back in 2024 for the Linux kernel was [1]a built-in counter to keep track of the number of hung tasks since boot . That feature for keeping track of the number of hung tasks since boot was [2]merged in Linux 6.13 and exposed via /proc/sys/kernel/hung_task_detect_count . For helping ease use around it, new code working its way to the kernel will allow resetting that "hung_task_detect_count" counter.

From Linux 6.13 to now the /proc/sys/kernel/hung_task_detect_count has just provided a numeric indicator for the number of hung tasks since boot time. But for helping ease monitoring of such Linux servers/systems, patches working their way via the MM tree will allow resetting that counter. Simply writing 0 to the /proc/sys/kernel/hung_task_detect_count will allow resetting that counter. Such as if applying live kernel updates or other system changes in an effort to address prior hangs without a reboot, now you will be able to easily reset that counter rather than having to remember its former value for comparison.

Pretty straight forward and a bit surprising that functionality wasn't in place from the start. In any event those curious about this pending support for being able to zero out the hung task detector at run-time can see [3]this patch for all the details. A small but useful addition.



[1] https://www.phoronix.com/news/Linux-hung_task_detect_count

[2] https://www.phoronix.com/news/Linux-6.13-Non-MM

[3] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?h=mm-everything&id=060aa092dc03e61ffbf74de8c32c55b8f6a75e44



There are two jazz musicians who are great buddies. They hang out and play
together for years, virtually inseparable. Unfortunately, one of them is
struck by a truck and killed. About a week later his friend wakes up in
the middle of the night with a start because he can feel a presence in the
room. He calls out, "Who's there? Who's there? What's going on?"
"It's me -- Bob," replies a faraway voice.
Excitedly he sits up in bed. "Bob! Bob! Is that you? Where are
you?"
"Well," says the voice, "I'm in heaven now."
"Heaven! You're in heaven! That's wonderful! What's it like?"
"It's great, man. I gotta tell you, I'm jamming up here every day.
I'm playing with Bird, and 'Trane, and Count Basie drops in all the time!
Man it is smokin'!"
"Oh, wow!" says his friend. "That sounds fantastic, tell me more,
tell me more!"
"Let me put it this way," continues the voice. "There's good news
and bad news. The good news is that these guys are in top form. I mean
I have *never* heard them sound better. They are *wailing* up here."
"The bad news is that God has this girlfriend that sings..."