Project

General

Profile

Bug #8870 » mdb.txt

mdb live when a VLAN is not reachable - Benjamin MONTHOUËL, 2017-11-29 05:16 PM

 
1
> ::cpuinfo
2
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
3
  0 fffffffffbc30c40  1b    0    0  -1   no    no t-0    ffffff003d005c40 (idle)
4
  1 ffffff09101bfac0  1b    0    0  -1   no    no t-0    ffffff003d3a0c40 (idle)
5
  2 ffffff09101b4580  1b    0    0  59   no    no t-0    ffffff0937271140 mdb
6
  3 ffffff09101aa500  1b    0    0 105   no    no t-0    ffffff003d55cc40 sched
7
  4 ffffff09101a2540  1b   14    0  60  yes    no t-25757232 ffffff003ee22c40 sched
8
  5 ffffff09101a1040  1b    0    0  -1   no    no t-0    ffffff003d628c40 (idle)
9
  6 ffffff09103f4b00  1b    0    0  -1   no    no t-11   ffffff003d699c40 (idle)
10
  7 ffffff09103ef500  1b    0    0  -1   no    no t-22   ffffff003d704c40 (idle)
11
> ffffff003ee22c40::thread
12
            ADDR    STATE  FLG PFLG SFLG   PRI  EPRI PIL             INTR
13
ffffff003ee22c40 onproc      8    0   13    60     0   0              n/a
14
> ffffff003e31ac40::findstack -v
15
stack pointer for thread ffffff003e31ac40: ffffff003e31a8f0
16
[ ffffff003e31a8f0 _resume_from_idle+0xf4() ]
17
  ffffff003e31aa20 0xfffffb846d05()
18
  ffffff003e31aa30 gethrtime+0xa()
19
  ffffff003e31aa60 drv_usecwait+0x47(64)
20
  ffffff003e31aa90 kcs_wait_for_obf+0x55(ffffffffc01a9da0, 1)
21
  ffffff003e31aac0 kcs_read_byte+0x6d(ffffffffc01a9da0, ffffff003e31aadf)
22
  ffffff003e31ab20 kcs_polled_request+0x24b(ffffffffc01a9da0, ffffff093d3b2e00)
23
  ffffff003e31ab60 kcs_loop+0x61(ffffffffc01a9da0)
24
  ffffff003e31ac20 taskq_thread+0x2d0(ffffff09353ef6d8)
25
  ffffff003e31ac30 thread_start+8()
26

    
27
**** the 2 following stacks are alternative ****
28

    
29
> ffffff003e31ac40::stacks -v
30
mdb: stacks: processing kernel threads
31
mdb: stacks: 1 unique stacks / 1 threads
32
mdb: stacks: done
33
THREAD           STATE    SOBJ                COUNT
34
ffffff003e31ac40 ONPROC   <NONE>                  1
35
                 tsc_gethrtime_delta+0xa5
36
                 gethrtime+0xa
37
                 drv_usecwait+0x47
38
                 kcs_wait_for_obf+0x55
39
                 kcs_read_byte+0x6d
40
                 kcs_polled_request+0x24b
41
                 kcs_loop+0x61
42
                 taskq_thread+0x2d0
43
                 thread_start+8
44

    
45
> ffffff003e31ac40::stacks -v
46
mdb: stacks: processing kernel threads
47
mdb: stacks: 1 unique stacks / 1 threads
48
mdb: stacks: done
49
THREAD           STATE    SOBJ                COUNT
50
ffffff003e31ac40 ONPROC   <NONE>                  1
51
                 apix_setspl+0x17
52
                 splr+0x6a
53
                 0x1e1b710b326553
54

    
55

    
56
**** then goes back to locking on kcs_wait_for_obf() ****
57

    
58
> ::cpuinfo -v
59
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
60
  0 fffffffffbc30c40  1b    0    0  59   no    no t-0    ffffff09351d17a0 mdb
61
                       |    
62
            RUNNING <--+    
63
              READY         
64
             EXISTS         
65
             ENABLE         
66

    
67
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
68
  1 ffffff090fd69ac0  1b    0    0  -1   no    no t-1    ffffff003d310c40 (idle)
69
                       |    
70
            RUNNING <--+    
71
              READY         
72
             EXISTS         
73
             ENABLE         
74

    
75
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
76
  2 ffffff090fd5e580  1b    0    0  -1   no    no t-2    ffffff003d3c3c40 (idle)
77
                       |    
78
            RUNNING <--+    
79
              READY         
80
             EXISTS         
81
             ENABLE         
82

    
83
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
84
  3 ffffff09103ef500  1b    0    0  59   no    no t-0    ffffff0933d4a0a0 sshd
85
                       |    
86
            RUNNING <--+    
87
              READY         
88
             EXISTS         
89
             ENABLE         
90

    
91
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
92
  4 ffffff09103ee000  1b    0    0  -1   no    no t-8    ffffff003d3acc40 (idle)
93
                       |    
94
            RUNNING <--+    
95
              READY         
96
             EXISTS         
97
             ENABLE         
98

    
99
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
100
  5 ffffff09103e8ac0  1b    0    0  -1   no    no t-11   ffffff003d569c40 (idle)
101
                       |    
102
            RUNNING <--+    
103
              READY         
104
             EXISTS         
105
             ENABLE         
106

    
107
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
108
  6 ffffff09103dab00  1b    7    0  60  yes    no t-694923 ffffff003e31ac40 sched
109
                       |    |
110
            RUNNING <--+    +-->  PRI THREAD           PROC
111
              READY                99 ffffff003d648c40 sched
112
             EXISTS                99 ffffff003f238c40 sched
113
             ENABLE                99 ffffff003f862c40 sched
114
                                   99 ffffff003e491c40 sched
115
                                   99 ffffff003d2aac40 sched
116
                                   99 ffffff003e652c40 sched
117
                                   99 ffffff0040276c40 sched
118

    
119
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD           PROC
120
  7 ffffff09103d7500  1b    0    0  -1   no    no t-78   ffffff003d665c40 (idle)
121
                       |    
122
            RUNNING <--+    
123
              READY         
124
             EXISTS         
125
             ENABLE         
126

    
127
> 
128

    
129
**** it seems like those guys will wait for ever in runqueue, and they are linked to network commutation ****
130

    
131
> ::stacks -c mac_soft_ring_worker
132
THREAD           STATE    SOBJ                COUNT
133
ffffff003fb82c40 SLEEP    CV                    119
134
                 swtch+0x141
135
                 cv_wait+0x70
136
                 mac_soft_ring_worker+0xb1
137
                 thread_start+8
138

    
139
ffffff003f139c40 SLEEP    CV                     21
140
                 swtch+0x141
141
                 cv_wait+0x70
142
                 mac_soft_ring_worker+0x153
143
                 thread_start+8
144

    
145
ffffff003e491c40 RUN      <NONE>                  5
146
                 swtch+0x141
147
                 cv_wait+0x70
148
                 mac_soft_ring_worker+0xb1
149
                 thread_start+8
150

    
151
> 
(2-2/3)