[PATCH v3] hung_task:add detecting task in D state milliseconds timeout

2020-07-09 Thread yang che
hung_task_check_interval_msecs, check interval use milliseconds. Add hung_task_timeout_msecs file to set milliseconds. task timeout = hung_task_timeout_secs * 1000 + hung_task_timeout_msecs. Signed-off-by: yang che --- v2->v3: Fix some format issues. add use msecs_to_jiffies,jiffies_to_msec. because use timeout = s

[PATCH v3] hung_task:add detecting task in D state milliseconds timeout

2020-07-06 Thread yang che
hung_task_check_interval_msecs, check interval use milliseconds. Add hung_task_timeout_msecs file to set milliseconds. task timeout = hung_task_timeout_secs * 1000 + hung_task_timeout_msecs. Signed-off-by: yang che --- v2->v3: Fix some format issues. add use msecs_to_jiffies,jiffies_to_msec. because use timeout = s

Re: [RFC] hung_task:add detecting task in D state milliseconds timeout

2020-07-06 Thread yang che
t the detection of millisecond settings? In theory, there is no harm, and the detection time can be more accurate. Matthew Wilcox 于2020年7月6日周一 上午1:18写道: > > On Fri, Jul 03, 2020 at 11:18:28AM +0800, yang che wrote: > > my understanding, KernelShark can't trigger panic, hun

[PATCH v2] hung_task:add detecting task in D state milliseconds timeout

2020-07-05 Thread yang che
hung_task_check_interval_millisecs, check interval use milliseconds. Add hung_task_timeout_millisecs file to set milliseconds. task timeout = hung_task_timeout_secs * 1000 + hung_task_timeout_millisecs. (timeout * HZ / 1000) calculate how many are generated jiffies in timeout milliseconds. Signed-off-by: yang che --- v1->

Re: [RFC] hung_task:add detecting task in D state milliseconds timeout

2020-07-02 Thread yang che
02, 2020 at 10:08:13PM +0800, yang che wrote: > > current hung_task_check_interval_secs and hung_task_timeout_secs > > only supports seconds.in some cases,the TASK_UNINTERRUPTIBLE state > > takes less than 1 second.The task of the graphical interface, > > the unterr

[RFC] hung_task:add detecting task in D state milliseconds timeout

2020-07-02 Thread yang che
> /proc/sys/kernel/hung_task_milliseconds value of hung_task_check_interval_secs and hung_task_timeout_secs whill to milliseconds Signed-off-by: yang che --- include/linux/sched/sysctl.h | 1 + kernel/hung_task.c | 33 +++-- kernel/sysctl.c |