HI all,

cpuinfo -v yields (see file "cpuinfo.txt" ).

I noticed one interesting thing:

When preparing to catche the hang i opened the console and pre-typed "mdb -K" 
to crash the system if needed to.
When the system hang i pressed <ENTER> but nothing happened. While digging 
around in the core dump i found my "mdb -K":

ffffff1381a42e40 ffffff13a6594cc0 ffffff138192c310   1  60                0
  PC: _resume_from_idle+0xf1    CMD: mdb -K
  stack pointer for thread ffffff1381a42e40: ffffff008c643d30
  [ ffffff008c643d30 _resume_from_idle+0xf1() ]
    swtch+0x145()
    cv_wait+0x61()
    vmem_xalloc+0x635()
    vmem_alloc+0x161()
    segkmem_xalloc+0x90()
    segkmem_alloc_vn+0xcd()
    segkmem_zio_alloc+0x24()
    vmem_xalloc+0x546()
    vmem_alloc+0x161()
    kmem_slab_create+0x81()
    kmem_slab_alloc+0x5b()
    kmem_cache_alloc+0x1fa()
    zio_data_buf_alloc+0x2c()
    arc_get_data_buf+0x18b()
    arc_buf_alloc+0xa2()
    arc_read_nolock+0x12f()
    arc_read+0x75()
    dbuf_read_impl+0x172()
    dbuf_read+0xfe()
    dmu_buf_hold_array_by_dnode+0x1c9()
    dmu_buf_hold_array+0x6e()
    dmu_read_uio+0x4d()
    zfs_read+0x2d1()
    fop_read+0x6b()
    vn_rdwr+0x17f()
    gexec+0x140()
    exec_common+0x45c()
    exece+0x1f()
    _sys_sysenter_post_swapgs+0x149()

> ffffff1381a42e40::thread
            ADDR    STATE  FLG PFLG SFLG   PRI  EPRI PIL             INTR
ffffff1381a42e40 run      1000  104    3    60     0   0              n/a
> ffffff1381a42e40::threadlist
            ADDR             PROC              LWP CMD/LWPID
ffffff1381a42e40 ffffff13a6594cc0 ffffff138192c310 mdb/1


So i looked for the mdb process and found it on CPU ID #7:

I noticed "mdb -K" was in run queue on CPU ID 7: 

ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  7 ffffff1376a44540  1f    7    0  99   no    no t-0    ffffff008b137c60 sched
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                60 ffffff1381a42e40 mdb
           QUIESCED                60 ffffff13a35ee720 nfsd
             EXISTS                60 ffffff1377474400 bash
             ENABLE                60 ffffff008c1bec60 sched
                                   59 ffffff13817ef540 nscd
                                   59 ffffff13817fbc60 syslogd
                                   58 ffffff1381a38720 smbd

So it seems mdb was blocked by sched (thread ffffff008b137c60); digging it 
yields:

> ffffff008b137c60::findstack
stack pointer for thread ffffff008b137c60: ffffff008b1370d0
  ffffff008b137120 intr_thread_prolog+0x2a()
  ffffff008b137140 apic_setspl+0x5c()
  ffffff008b137180 splr+0x55()
  ffffff008b137c60 0x22d9fd9301c7()


Any ideas?

Message was edited by: ronnyegn
-- 
This message posted from opensolaris.org
> ::cpuinfo -v
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  0 fffffffffbc3a080  1b    2    0  60  yes    no t-1    ffffff008bfe0c60 sched
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                99 ffffff008bb81c60 sched
             EXISTS                60 ffffff008cbd4c60 sched
             ENABLE

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  1 ffffff13767fc080  1f    8    0  -1   no    no t-17   ffffff008b526c60 (idle)
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                99 ffffff008bb69c60 sched
           QUIESCED                60 ffffff008b915c60 sched
             EXISTS                60 ffffff008b017c60 sched
             ENABLE                60 ffffff008c877c60 sched
                                   59 ffffff1377476760 sendmail
                                   59 ffffff13817fe040 hald
                                   59 ffffff13817fb8e0 syslogd
                                   59 ffffff13a35f2a80 nsrexecd

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  2 ffffff13767f8000  1f    2    0  60   no    no t-0    ffffff008b9cfc60 
fsflush
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                59 ffffff1377475c80 inetd
           QUIESCED                59 ffffff13a5bb5e80 iostat
             EXISTS
             ENABLE

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  3 ffffff1376a57ac0  1f    0    0  59   no    no t-0    ffffff13817e7520 utmpd
                       |
            RUNNING <--+
              READY
           QUIESCED
             EXISTS
             ENABLE

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  4 ffffff1376a52580  1f    3    0  -1   no    no t-0    ffffff008b775c60 (idle)
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                60 ffffff008b631c60 sched
           QUIESCED                60 ffffff008b34cc60 sched
             EXISTS                60 ffffff008cbecc60 sched
             ENABLE

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  5 ffffff1376a51080  1f    7    0  99   no    no t-0    ffffff008b131c60 sched
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                60 ffffff008cbe0c60 sched
           QUIESCED                60 ffffff008b01dc60 sched
             EXISTS                59 ffffff13a35fab00 smbd
             ENABLE                59 ffffff1377475900 ntpd
                                   59 ffffff1381a42ac0 devfsadm
                                   59 ffffff13a36043c0 smbd
                                   59 ffffff13a5bb3000 fmd

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  6 ffffff1376a4ba80  1f    2    0  59   no    no t-0    ffffff13a5bb81e0 intrd
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                59 ffffff13817e7c20 nscd
           QUIESCED                59 ffffff1376b378a0 svc.configd
             EXISTS
             ENABLE

 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
  7 ffffff1376a44540  1f    7    0  99   no    no t-0    ffffff008b137c60 sched
                       |    |
            RUNNING <--+    +-->  PRI THREAD           PROC
              READY                60 ffffff1381a42e40 mdb
           QUIESCED                60 ffffff13a35ee720 nfsd
             EXISTS                60 ffffff1377474400 bash
             ENABLE                60 ffffff008c1bec60 sched
                                   59 ffffff13817ef540 nscd
                                   59 ffffff13817fbc60 syslogd
                                   58 ffffff1381a38720 smbd

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to