NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
altqd, 100% of a CPU and panic
Hello,
I have filled a long time ago this PR : http://gnats.netbsd.org/50674
I have to use altqd to do some QoS. My configuration is :
interface wm0 bandwidth 6.5M priq
class priq wm0 high_class NULL priority 1
class priq wm0 low_class NULL priority 0 default
filter wm0 high_class 0 1194 0 0 17
filter wm0 high_class 0 0 0 1194 17
filter wm0 high_class 0 1195 0 0 17
filter wm0 high_class 0 0 0 10240 17
filter wm0 high_class 0 10000 0 0 17
filter wm0 high_class 0 0 0 10000 17
interface tap0 bandwidth 2M priq
class priq tap0 high_class_vpn NULL priority 1
class priq tap0 low_class_vpn NULL priority 0 default
interface tap1 bandwidth 2M priq
class priq tap1 high_class_vpn NULL priority 1
class priq tap1 low_class_vpn NULL priority 0 default
filter tap0 high_class_vpn 192.168.10.250 0 0 0 17
filter tap0 high_class_vpn 0 0 192.168.10.250 0 17
interface agr0 bandwidth 1000M priq
class priq agr0 high_class_lan NULL priority 1
class priq agr0 low_class_lan NULL priority 0 default
filter agr0 high_class_lan 192.168.10.250 0 0 0 17
filter agr0 high_class_lan 0 0 192.168.10.250 0 17
filter agr0 high_class_lan 0 10000 0 0 17
filter agr0 high_class_lan 0 0 0 10000 17
# QoS
conditioner agr0 af41_agr0 <mark 0xb8>
filter agr0 af41_agr0 0 10000 0 0 17
filter agr0 af41_agr0 0 0 0 10000 17
filter agr0 af41_agr0 0 0 192.168.10.250 0 17
conditioner bridge0 af41_tap0 <mark 0xb8>
filter bridge0 af41_tap0 0 0 192.168.10.250 0 17
filter bridge0 af41_tap0 0 10000 0 0 17
filter bridge0 af41_tap0 0 0 0 10000 17
I don't know if I can use a bridge in this file (bridge0 is build with
tap0 and tap1). Agr0 (lan) is build with wm1 and wm2, and wm0 is wan
interface. Since I have tried to reload configuration with
/etc/rc.d/altqd onereload, altqd takes 100% of one CPU :
load averages: 2.11, 1.73, 1.35; up 1+00:11:47
11:24:21
68 processes: 65 sleeping, 3 on CPU
CPU states: 12.5% user, 0.0% nice, 0.0% system, 0.0% interrupt, 87.3%
idle
Memory: 9200M Act, 4511M Inact, 16M Wired, 45M Exec, 12G File, 27M Free
Swap: 16G Total, 16G Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
1019 root 45 -20 20M 1560K CPU/1 7:45 99.02% 99.02% altqd
1188 root 85 0 116M 2736K nfsd/4 79:11 0.00% 0.00% nfsd
If I kill altqd, kernel panics. This server runs with NetBSD 9 :
legendre# uname -a
NetBSD legendre.systella.fr 9.0_STABLE NetBSD 9.0_STABLE (CUSTOM) #4:
Thu Apr 16 22:53:40 CEST 2020
root%legendre.systella.fr@localhost:/usr/src/netbsd-9/obj/sys/arch/amd64/compile/CUSTOM
amd64
And, of course, QoS is mandatory.
Best regards,
JB
Home |
Main Index |
Thread Index |
Old Index