tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to identify specific wait-state for a "DE" process?



On Tue, 5 Jan 2016, Michael van Elst wrote:

paul%whooppee.com@localhost (Paul Goyette) writes:

I'm pretty sure that the device in question is the console terminal
driver /dev/console since the problem does not happen if filemon is
sending the entries to a "real" file.  But I can't figure why it is
waiting, so I don't know what I should do to satisfy the wait state and
continue.

You can use crash(8) to backtrace the process in the kernel.

Yeah, that does give me some additional clues; thanks for the hint.

# crash
Crash version 7.99.25, image version 7.99.25.
Output from a running system is unreliable.
crash> trace/t 0t455
trace: pid 455 lid 1 at 0xfffffe8002ff0ce0
sleepq_block() at sleepq_block+0xa2
cv_wait() at cv_wait+0x116
fd_close() at fd_close+0x39a
fd_free() at fd_free+0x178
exit1() at exit1+0x10a
sys_exit() at sys_exit+0x3a
syscall() at syscall+0x9c
--- syscall (number 1) ---

So I guess I need to figure out which/what condvar it is waiting on...


+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index