Re: [RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-08 Thread Luis R. Rodriguez
On Wed, Nov 08, 2017 at 11:58:13AM +0530, Lingutla Chandrasekhar wrote: > khungtask by default monitors all tasks for long unterruptible sleep. > This change introduces a sysctl option, /proc/sys/kernel/ > hung_task_selective_monitoring, to enable monitoring selected tasks. > If this sysctl option

Re: [RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-08 Thread Andrew Morton
On Wed, 8 Nov 2017 20:57:42 +0900 Tetsuo Handa wrote: > Lingutla Chandrasekhar wrote: > > Some tasks may intentionally moves to uninterruptable sleep state, > > which shouldn't leads to khungtask panics, as those are recoverable > > hungs. So to avoid false hung reports, add an option to select

Re: [RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-08 Thread Tetsuo Handa
Lingutla Chandrasekhar wrote: > Some tasks may intentionally moves to uninterruptable sleep state, > which shouldn't leads to khungtask panics, as those are recoverable > hungs. So to avoid false hung reports, add an option to select tasks > to be monitored and report/panic them only. What are bac

[RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-07 Thread Lingutla Chandrasekhar
khungtask by default monitors all tasks for long unterruptible sleep. This change introduces a sysctl option, /proc/sys/kernel/ hung_task_selective_monitoring, to enable monitoring selected tasks. If this sysctl option is enabled then only the tasks with /proc/$PID/hang_detection_enabled set are to

Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-23 Thread Imran Khan
On 8/23/2017 2:06 AM, Peter Zijlstra wrote: > On Mon, Aug 21, 2017 at 03:55:53PM +0530, Imran Khan wrote: >> khungtask by default monitors either all tasks or no tasks at all >> for long unterruptible sleeps. >> For Android like environments this arrangement is not optimal because >> on one hand it

Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-22 Thread Peter Zijlstra
On Mon, Aug 21, 2017 at 03:55:53PM +0530, Imran Khan wrote: > khungtask by default monitors either all tasks or no tasks at all > for long unterruptible sleeps. > For Android like environments this arrangement is not optimal because > on one hand it may be permissible to have some background(bg) ta

RE: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-21 Thread Zhang, Shile (NSB - CN/Hangzhou)
an ; Luis R. > Rodriguez ; Kees Cook ; Peter > Zijlstra (Intel) ; Zhang, Shile (NSB - CN/Hangzhou) > ; Matt Fleming ; > Andrew Morton ; Vegard Nossum > ; Tetsuo Handa > ; John Siddle ; open > list ; open list:PROC SYSCTL > > Subject: [PATCH] RFC: hung task: Check speci

Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-21 Thread Imran Khan
lstra (Intel) ; Zhang, Shile (NSB - CN/Hangzhou) > ; Matt Fleming ; > Andrew Morton ; Vegard Nossum > ; Tetsuo Handa > ; John Siddle ; open > list ; open list:PROC SYSCTL > > Subject: [PATCH] RFC: hung task: Check specific tasks for long > uninterruptible sleep state

RE: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-21 Thread Zhang, Shile (NSB - CN/Hangzhou)
Intel) ; Zhang, Shile (NSB - CN/Hangzhou) ; Matt Fleming ; Andrew Morton ; Vegard Nossum ; Tetsuo Handa ; John Siddle ; open list ; open list:PROC SYSCTL Subject: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state khungtask by default monitors either all tasks o

[PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

2017-08-21 Thread Imran Khan
khungtask by default monitors either all tasks or no tasks at all for long unterruptible sleeps. For Android like environments this arrangement is not optimal because on one hand it may be permissible to have some background(bg) task in uninterruptible sleep state for long duration while on the oth