Skip to the content.

hung task 机制

每次上下文切换的时候,

struct task_struct {
// ...
#ifdef CONFIG_DETECT_HUNG_TASK
	unsigned long			last_switch_count;
	unsigned long			last_switch_time;
#endif
// ...
}

也就是进入到内核中,并且在用户态杀不掉的时候,那么会出现问题。

整理一下 https://blog.cloudflare.com/es-la/searching-for-the-cause-of-hung-tasks-in-the-linux-kernel/

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。