By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux Working On A Counter To Keep Track Of The Number Of Hung Tasks Since Boot
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Linux Working On A Counter To Keep Track Of The Number Of Hung Tasks Since Boot

Linux Working On A Counter To Keep Track Of The Number Of Hung Tasks Since Boot

News Room
Last updated: 2024/10/27 at 10:22 AM
News Room Published 27 October 2024
Share
SHARE
LINUX KERNEL

Sent out in original patch form this past week and already iterated to a second version this Sunday, a new proposal is underway to introduce “hung_task_detect_count” as a convenient means of tracking the number of times hung tasks are detected since boot.

Via /proc/sys/kernel/hung_task_warnings is already the ability to read the number of hung task warnings and the like. With a set of two patches now under review, /proc/sys/kernel/hung_task_detect_count would be added to report the total number of hung tasks detected since boot time.

Lance Yang who sent out the patches proposing the “hung_task_detect_count” counter explained in the patch cover letter:

“This patchset adds a counter, hung_task_detect_count, to track the number of times hung tasks are detected.

IHMO, hung tasks are a critical metric. Currently, we detect them by periodically parsing dmesg. However, this method isn’t as user-friendly as using a counter.

Sometimes, a short-lived issue with NIC or hard drive can quickly decrease the hung_task_warnings to zero. Without warnings, we must directly access the node to ensure that there are no more hung tasks and that the system has recovered. After all, load average alone cannot provide a clear picture.

Once this counter is in place, in a high-density deployment pattern, we plan to set hung_task_timeout_secs to a lower number to improve stability, even though this might result in false positives. And then we can set a time-based threshold: if hung tasks last beyond this duration, we will automatically migrate containers to other nodes. Based on past experience, this approach could help avoid many production disruptions.

Moreover, just like other important events such as OOM that already have counters, having a dedicated counter for hung tasks makes sense ;)”

Adding this functionality to the Linux kernel for this hung task detected counter is just 18 lines of new code and under review on the Linux kernel mailing list. Given its small size and shouldn’t be really controversial, hopefully it will end up in one of the mainline kernel releases soon.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article The theory that explains why you should look for problems in your professional career
Next Article The Best Horror Movies to Watch on Netflix Right Now
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Garmin Forerunner 970 Review
Gadget
Xiaomi and MediaTek announce first joint lab, unveil next-gen Redmi K70 Premium Edition · TechNode
Computing
Exclusive: One UI 8 gives us our first look at Samsung’s upcoming tri-fold phone
Gadget
All Amazon Prime members can unlock 13 freebies worth £220 in giveaway bonanza
News

You Might also Like

Gadget

Garmin Forerunner 970 Review

18 Min Read
Computing

Xiaomi and MediaTek announce first joint lab, unveil next-gen Redmi K70 Premium Edition · TechNode

1 Min Read
Gadget

Exclusive: One UI 8 gives us our first look at Samsung’s upcoming tri-fold phone

7 Min Read
News

All Amazon Prime members can unlock 13 freebies worth £220 in giveaway bonanza

5 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?