OpenSolaris

Printable Version Enter a New Search
Bug ID 6612324
Synopsis ::threadlist could identify taskq threads
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:mdb
Keywords
Responsible Engineer John Levon
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_77
Fixed In snv_77
Release Fixed solaris_nevada(snv_77)
Related Bugs
Submit Date 3-October-2007
Last Update Date 8-November-2007
Description
Currently, a ::threadlist can be hard to read due to the large
number of taskq threads. It would be nice to have a -t option
to strip out such threads (t->t_taskq != NULL), as well as
print taskq names as appropriate, e.g.:

> ::threadlist
            ADDR             PROC              LWP CMD/LWPID
fffffffffbc488e0 fffffffffbc47c70 fffffffffbc4b540 sched/1
ffffff0001c05c80 fffffffffbc47c70                0 idle()
ffffff0001c0bc80 fffffffffbc47c70                0 thread_reaper()
ffffff0001c11c80 fffffffffbc47c70                0 tq:kmem_taskq

> ffffff0001c11c80::threadlist -v
            ADDR             PROC              LWP CLS PRI            WCHAN
ffffff0001c11c80 fffffffffbc47c70                0   0  60 ffffff00b9cf5f38
  PC: _resume_from_idle+0xfa    TASKQ: kmem_taskq
  stack pointer for thread ffffff0001c11c80: ffffff0001c11b60
  [ ffffff0001c11b60 _resume_from_idle+0xfa() ]
    swtch+0x221()
    cv_wait+0x73()
    taskq_thread+0x130()
    thread_start+8()
Work Around
N/A
Comments
N/A