Hacker News Clone new | comments | show | ask | jobs | submit | github repologin
Linux 6.13 Will Report the Number of Hung Tasks Since Boot (www.phoronix.com)
56 points by LinuxBender 2 hours ago | hide | past | web | 2 comments | favorite





What counts as a hung task? Blocking on unsatisfiable I/O for more than X seconds? Scheduler hasn’t gotten to it in X seconds?

If a server process is blocking on accept(), wouldn’t it count as hung until a remote client connects? or do only certain operations count?


torvalds/linux//kernel/hung_task.c :

static void check_hung_task(struct task_struct *t, unsigned long timeout) https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36...

static void check_hung_uninterruptible_tasks(unsigned long timeout) https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36...


Just to double check my understanding (because being wrong on the internet is perhaps the fastest way to get people to check your work):

Is this saying that regular tasks that haven't been scheduled for two minutes and tasks that are uninterruptible (truly so, not idle or also killable despite being marked as uninterruptible) that haven't been woken up for two minutes are counted?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: