lkml.org 
[lkml]   [2011]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Debugging hung tasks?
On Fri, 22 Apr 2011 16:09:29 -0700 Ben Greear wrote:

> I am testing lots of NFS traffic against an over-loaded and slow file server.
>
> I enabled the hung-task detection logic, and it's hitting after 180
> seconds.
>
> First: Is there any valid reason to have funky NFS cause a hung task?
>
> Second: Why doesn't the hung-task panic logic print the stack trace of
> the hung task?
> Is this an option that can be enabled?

hung_task.c::check_hung_task() always calls sched_show_task() and
optionally does the panic:

if (sysctl_hung_task_panic)
panic("hung_task: blocked tasks");

sched.c::sched_show_task() calls show_stack(), which should be doing what
you are asking for AFAICT. What kernel version are you using?


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***


\
 
 \ /
  Last update: 2011-04-23 05:59    [W:0.036 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site