3 ms·
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
by gcr 2y ago
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?
- deleted 2y ago[deleted]
- westurner 2y agotorvalds/linux//kernel/hung_task.c : static void check_hung_task(struct task_struct *t, unsigned long timeout) https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36a4be1b21575651d8833/kernel/hung_task.c#L91 https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36... static void check_hung_uninterruptible_tasks(unsigned long timeout) https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36a4be1b21575651d8833/kernel/hung_task.c#L181 https://github.com/torvalds/linux/blob/9f16d5e6f220661f73b36...
- striking 2y agoJust 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?