* interruptible sleep tasks
@ 2018-09-11 10:56 Muni Sekhar
2018-09-11 14:12 ` valdis.kletnieks at vt.edu
0 siblings, 1 reply; 2+ messages in thread
From: Muni Sekhar @ 2018-09-11 10:56 UTC (permalink / raw)
To: kernelnewbies
Hi All,
During kernel drivers testing I see lot of user mode applications
blocks forever in interruptible sleep mode. Is there any way to get
the corresponding kernel functions stack trace ?
I see kernel has ?hung_task_timeout_secs? parameter and when a task in
D state did not get scheduled for more than this value report a
warning.
Similarly is it possible to get a warning or kernel functions stack
trace when a task in ?S - interruptible sleep mode? and did not get
scheduled for certain duration?
--
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 2+ messages in thread
* interruptible sleep tasks
2018-09-11 10:56 interruptible sleep tasks Muni Sekhar
@ 2018-09-11 14:12 ` valdis.kletnieks at vt.edu
0 siblings, 0 replies; 2+ messages in thread
From: valdis.kletnieks at vt.edu @ 2018-09-11 14:12 UTC (permalink / raw)
To: kernelnewbies
On Tue, 11 Sep 2018 16:26:40 +0530, Muni Sekhar said:
> During kernel drivers testing I see lot of user mode applications
> blocks forever in interruptible sleep mode. Is there any way to get
> the corresponding kernel functions stack trace ?
cat /proc/NNN/stack should do the trick.
> Similarly is it possible to get a warning or kernel functions stack
> trace when a task in ???S - interruptible sleep mode??? and did not get
> scheduled for certain duration?
Take a look at the number of processes in that state *normally* on a desktop
system:
[~] ps ax | grep S | wc -l
218
And that's running e16 as a window manager, not a full Gnome environment.
That's the *normal* state for a process or kernel thread waiting for work.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-11 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11 10:56 interruptible sleep tasks Muni Sekhar
2018-09-11 14:12 ` valdis.kletnieks at vt.edu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.