tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ALTQ cannot be stopped Was: Fwd: 10-BETA : some network issues
BERTRAND Joël a écrit :
> Taylor R Campbell a écrit :
>>> Date: Fri, 6 Jan 2023 15:55:37 +0100
>>> From: BERTRAND Joël <joel.bertrand%systella.fr@localhost>
>>>
>>> /etc/rc.d/altqd onestop doesn't stop altqd. top shows that altqd
>>> remains on CPU (and takes 100% of a CPU).
>>>
>>> gdb -p 1342 (altq) returns that altqd stalls in qop_clear() function (I
>>> don't have altdq sources on this system).
>>
>> Can you get a kernel stack trace with crash(8) on the running system
>> when altqd(8) is taking 100% CPU? If the pid is 1342, you use the
>> command `bt/t 0t1342' to get it:
>
> I have tried, but without usable result.
>
> netbsd-test1# ps auwx | grep altq
> root 1779 98.5 0.2 20356 1433 ? Os 4:39PM 1:06.26 /usr/sbin/altqd
>
>> # crash
>> crash> bt/t 0t1342
>
> netbsd-test1# crash
> ...
> crash> bt/t 0t1779
> crash: kvm_resad(0x7f7fff7738e8, 8): kvm_read: Bad address
> trace: pid 1779 lid 1779
> crash>
New test with serial console: altqd runs with PID 470.
>> While here, can you also provide output of:
>>
>> crash> ps
>> crash> ps/w
crash> bt/t 470
trace: pid 1136 not found
crash> bt/t 0t470
crash: kvm_read(0x7f7fff7b0f68, 8): kvm_read: Bad address
trace: pid 470 lid 470
crash> ps
PID LID S CPU FLAGS STRUCT LWP * NAME WAIT
1962 >1962 7 1 100 ffff80a29340b700 crash
1967 1967 3 0 180 ffff80a28e6531c0 sh wait
1980 1980 3 0 180 ffff80a293508680 top select
470 > 470 7 0 40100 ffff80a29298f100 altqd
1627 1627 3 1 180 ffff80a292f62480 sh wait
1325 1325 3 0 180 ffff80a2931beb80 getty ttyraw
1318 1318 3 0 180 ffff80a292e184c0 getty ttyraw
1240 1240 3 0 180 ffff80a29298f540 login wait
1319 1319 3 1 180 ffff80a29340b2c0 login wait
1355 1355 3 0 180 ffff80a292b35940 cron nanoslp
1361 1361 3 0 180 ffff80a292b35500 inetd kqueue
1279 1279 3 1 180 ffff80a28f49e580 qmgr kqueue
1206 1206 3 1 180 ffff80a292b350c0 pickup kqueue
1331 1331 3 1 180 ffff80a29298f980 master kqueue
1138 1138 3 1 180 ffff80a292e18900 sshd poll
936 936 3 1 180 ffff80a2931be300 powerd kqueue
565 565 3 0 180 ffff80a292f628c0 syslogd kqueue
368 368 3 1 180 ffff80a292ed0bc0 dhcpcd poll
466 466 3 1 180 ffff80a292ed0340 dhcpcd poll
458 458 3 0 180 ffff80a292f62040 dhcpcd poll
454 454 3 0 180 ffff80a292ed0780 dhcpcd poll
1 1 3 0 180 ffff80a293566a80 init wait
0 162 3 1 200 ffff80a293508ac0 physiod physiod
0 206 3 1 200 ffff80a293645b00 pooldrain pooldrain
0 205 3 1 200 ffff80a2936456c0 ioflush syncer
0 204 3 0 200 ffff80a293645280 pgdaemon pgdaemon
0 201 3 0 200 ffff80a2935fc500 swwreboot swwreboot
0 200 3 0 200 ffff80a2935fc0c0 iscsi_cleanup cleanup
0 199 3 0 200 ffff80a2935fc940 atapibus0 sccomp
0 196 3 0 200 ffff80a2935e7900 usb3 usbevt
0 195 3 1 200 ffff80a2935e74c0 usb2 usbevt
0 194 3 0 200 ffff80a2935e7080 usb1 usbevt
0 193 3 0 200 ffff80a2935d1100 usb0 usbevt
0 192 3 1 200 ffff80a293508240 npfgc0 npfgcw
0 178 3 1 200 ffff80a293566640 rt_free rt_free
0 177 3 1 200 ffff80a293566200 unpgc unpgc
0 31 3 0 200 ffff80a293551a40 key_timehandler
key_timehandler
0 63 3 1 200 ffff80a293551600 icmp6_wqinput/1
icmp6_wqinput
0 126 3 0 200 ffff80a2935511c0 icmp6_wqinput/0
icmp6_wqinput
0 125 3 1 200 ffff80a29357ca00 nd6_timer nd6_timer
0 124 3 1 200 ffff80a29357c5c0 carp6_wqinput/1
carp6_wqinput
0 123 3 0 200 ffff80a29357c180 carp6_wqinput/0
carp6_wqinput
0 122 3 1 200 ffff80a2935279c0 carp_wqinput/1
carp_wqinput
0 121 3 0 200 ffff80a293527580 carp_wqinput/0
carp_wqinput
0 120 3 1 200 ffff80a293527140 icmp_wqinput/1
icmp_wqinput
0 119 3 0 200 ffff80a2935d1980 icmp_wqinput/0
icmp_wqinput
0 118 3 1 200 ffff80a2935d1540 rt_timer rt_timer
0 117 3 0 200 ffff80a25815c6c0 vmem_rehash vmem_rehash
0 108 3 1 200 ffff80a25828c8c0 entbutler entropy
0 107 3 0 240 ffff80a25828c480 atabus5 atath
0 106 3 1 240 ffff80a25828c040 atabus4 atath
0 105 3 0 240 ffff80a25836bbc0 atabus3 atath
0 104 3 1 240 ffff80a25836b780 atabus2 atath
0 103 3 0 240 ffff80a25836b340 atabus1 atath
0 102 3 0 240 ffff80a25826bb80 atabus0 atath
0 101 3 0 200 ffff80a25826b740 usbtask-dr usbtsk
0 100 3 1 200 ffff80a25826b300 usbtask-hc usbtsk
0 99 3 1 200 ffff80a258133b40 viomb balloon
0 98 3 0 200 ffff80a258133700 wm0Reset wm0Reset
0 97 3 1 200 ffff80a2581332c0 wm0TxRx/1 wm0TxRx
0 96 3 0 200 ffff80a25815cb00 wm0TxRx/0 wm0TxRx
0 29 3 0 200 ffff80a25815c280 pms0 pmsreset
0 28 3 1 200 ffff80a257f2dac0 xcall/1 xcall
0 27 1 1 200 ffff80a257f2d680 softser/1
0 26 1 1 200 ffff80a257f2d240 softclk/1
0 25 1 1 200 ffff80a257eeca80 softbio/1
0 24 1 1 200 ffff80a257eec640 softnet/1
0 23 1 1 201 ffff80a257eec200 idle/1
0 22 3 0 200 ffff80a293756a40 lnxsyswq lnxsyswq
0 21 3 0 200 ffff80a293756600 lnxubdwq lnxubdwq
0 20 3 0 200 ffff80a2937561c0 lnxpwrwq lnxpwrwq
0 19 3 0 200 ffff80a293771a00 lnxlngwq lnxlngwq
0 18 3 0 200 ffff80a2937715c0 lnxhipwq lnxhipwq
0 17 3 0 200 ffff80a293771180 lnxrcugc lnxrcugc
0 16 3 0 200 ffff80a29377e9c0 sysmon smtaskq
0 15 3 0 200 ffff80a29377e580 pmfsuspend pmfsuspend
0 14 3 0 200 ffff80a29377e140 pmfevent pmfevent
0 13 3 0 200 ffff80a29379b980 sopendfree sopendfr
0 12 3 0 200 ffff80a29379b540 ifwdog ifwdog
0 11 3 1 200 ffff80a29379b100 iflnkst iflnkst
0 10 3 0 200 ffff80a2939c2940 nfssilly nfssilly
0 9 3 0 200 ffff80a2939c2500 vdrain vdrain
0 8 3 0 200 ffff80a2939c20c0 modunload mod_unld
0 7 3 0 200 ffff80a2939f3900 xcall/0 xcall
0 6 1 0 200 ffff80a2939f34c0 softser/0
0 5 1 0 200 ffff80a2939f3080 softclk/0
0 4 1 0 200 ffff80a293a1d8c0 softbio/0
0 3 1 0 200 ffff80a293a1d480 softnet/0
0 2 1 0 201 ffff80a293a1d040 idle/0
0 0 3 1 200 ffffffff8188a740 swapper uvm
crash> ps/w
PID LID COMMAND EMUL PRI WAIT-MSG WAIT-CHANNEL
1962 >1962 crash netbsd 43 0
1967 1967 sh netbsd 43 wait ffff80a28de8c598
1980 1980 top netbsd 43 select ffff80a293afd400
470 > 470 altqd netbsd 29 0
1627 1627 sh netbsd 43 wait ffff80a292ee9118
1325 1325 getty netbsd 43 ttyraw ffff80a292d92408
1318 1318 getty netbsd 43 ttyraw ffff80a292eb0508
1240 1240 login netbsd 43 wait ffff80a29284d518
1319 1319 login netbsd 43 wait ffff80a2935f43d8
1355 1355 cron netbsd 43 nanoslp ffff80a292b35940
1361 1361 inetd netbsd 43 kqueue ffff80a2927b4a60
1279 1279 qmgr netbsd 43 kqueue ffff80a2927b4d60
1206 1206 pickup netbsd 43 kqueue ffff80a292bfbd60
1331 1331 master netbsd 43 kqueue ffff80a28eac2fa0
1138 1138 sshd netbsd 43 poll ffff80a293721700
936 936 powerd netbsd 43 kqueue ffff80a291a43fa0
565 565 syslogd netbsd 43 kqueue ffff80a292a4c5e0
368 368 dhcpcd netbsd 43 poll ffff80a293721700
466 466 dhcpcd netbsd 43 poll ffff80a293721700
458 458 dhcpcd netbsd 43 poll ffff80a293afd400
454 454 dhcpcd netbsd 43 poll ffff80a293afd400
1 1 init netbsd 43 wait ffff80a2935f4058
0 162 system netbsd 123 physiod ffff80a29304cc48
0 206 system netbsd 125 pooldrain ffffffff8190f980
0 205 system netbsd 124 syncer ffff80a2936456c0
0 204 system netbsd 126 pgdaemon ffffffff8190d548
0 201 system netbsd 43 swwreboot ffff80a293628088
0 200 system netbsd 96 cleanup ffffffff819834f0
0 199 system netbsd 96 sccomp ffff980002448ba0
0 196 system netbsd 96 usbevt ffff80a2583674b8
0 195 system netbsd 96 usbevt ffff980001f2a478
0 194 system netbsd 96 usbevt ffff980001f28478
0 193 system netbsd 96 usbevt ffff980001f26478
0 192 system netbsd 96 npfgcw ffff80a2935487c8
0 178 system netbsd 222 rt_free ffff80a2936829c8
0 177 system netbsd 96 unpgc ffffffff81980ab0
0 31 system netbsd 222 key_timehandler ffff80a293682888
0 63 system netbsd 222 icmp6_wqinput ffff80a2935a8d48
0 126 system netbsd 222 icmp6_wqinput ffff80a2935a8d08
0 125 system netbsd 222 nd6_timer ffff80a293682748
0 124 system netbsd 222 carp6_wqinput ffff80a2935a8748
0 123 system netbsd 222 carp6_wqinput ffff80a2935a8708
0 122 system netbsd 222 carp_wqinput ffff80a2935a82c8
0 121 system netbsd 222 carp_wqinput ffff80a2935a8288
0 120 system netbsd 222 icmp_wqinput ffff80a2935f5d08
0 119 system netbsd 222 icmp_wqinput ffff80a2935f5cc8
0 118 system netbsd 222 rt_timer ffff80a293682608
0 117 system netbsd 125 vmem_rehash ffff80a2936824c8
0 108 system netbsd 43 entropy ffffffff818b21a8
0 107 system netbsd 96 atath ffff98000244aba0
0 106 system netbsd 96 atath ffff98000244a3b0
0 105 system netbsd 96 atath ffff980002449bc0
0 104 system netbsd 96 atath ffff9800024493d0
0 103 system netbsd 96 atath ffff980002448be0
0 102 system netbsd 96 atath ffff9800024483f0
0 101 system netbsd 96 usbtsk ffffffff818d52d8
0 100 system netbsd 96 usbtsk ffffffff818d5298
0 99 system netbsd 0 balloon ffff80a2581b6608
0 98 system netbsd 222 wm0Reset ffff80a258067708
0 97 system netbsd 222 wm0TxRx ffff80a2581a30c8
0 96 system netbsd 222 wm0TxRx ffff80a2581a3088
0 29 system netbsd 96 pmsreset ffff80a2580a4e94
0 28 system netbsd 127 xcall ffff98006191c010
0 27 system netbsd 223 0
0 26 system netbsd 220 0
0 25 system netbsd 221 0
0 24 system netbsd 222 0
0 23 system netbsd 0 0
0 22 system netbsd 43 lnxsyswq ffff80a293afdc08
0 21 system netbsd 43 lnxubdwq ffff80a293afdb08
0 20 system netbsd 43 lnxpwrwq ffff80a293afda08
0 19 system netbsd 43 lnxlngwq ffff80a293afd908
0 18 system netbsd 43 lnxhipwq ffff80a293afd808
0 17 system netbsd 43 lnxrcugc ffffffff818b0788
0 16 system netbsd 96 smtaskq ffffffff818f5f60
0 15 system netbsd 43 pmfsuspend ffff80a293a33808
0 14 system netbsd 43 pmfevent ffff80a293a336c8
0 13 system netbsd 96 sopendfr ffffffff81980a30
0 12 system netbsd 222 ifwdog ffff80a293a33588
0 11 system netbsd 222 iflnkst ffff80a293a33448
0 10 system netbsd 43 nfssilly ffff80a293a33308
0 9 system netbsd 125 vdrain ffffffff81981c30
0 8 system netbsd 125 mod_unld ffffffff819738b0
0 7 system netbsd 127 xcall ffffffff8183bcd0
0 6 system netbsd 223 0
0 5 system netbsd 220 0
0 4 system netbsd 221 0
0 3 system netbsd 222 0
0 2 system netbsd 0 0
0 0 system netbsd 125 uvm ffffffff8188a740
crash>
JKB
Home |
Main Index |
Thread Index |
Old Index