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
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
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
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->
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
> /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 |
6 matches
Mail list logo