@apccv @rickkz0r
Possibly related to smalldog's SQM problems two weeks back, I am on apccv's 22.03.05 build using rickkz0r's sqm scripts, with a configuration that was working on several of ACwifidude;s builds, but is not working now.
I don't have access to a shell on this computer to post config files, but I believe I am using reccommended/near-default settings for the script. Also, using ACwifidude's rc.local commands in the top posts fail similarly.
Here is the resulting log for /etc/init.d/sqm start:
Sat May 13 13:01:08 2023 user.notice SQM: Starting SQM script: nss-rk.qos on eth0, in: 500000 Kbps, out: 20000 Kbps
Sat May 13 13:01:08 2023 kern.err kernel: [ 814.947204] debugfs: File 'virt_if' in directory 'stats' already present!
Sat May 13 13:01:08 2023 kern.info kernel: [ 814.947550] Created a NSS virtual interface for dev [nssifb]
Sat May 13 13:01:08 2023 kern.info kernel: [ 814.953114] NSS IFB data callback registered
Sat May 13 13:01:08 2023 kern.info kernel: [ 814.958695] NSS IFB transmit callback registered
Sat May 13 13:01:08 2023 kern.info kernel: [ 814.963558] NSS IFB module loaded.
Sat May 13 13:01:08 2023 user.notice SQM: ERROR: cmd_wrapper: ip: FAILURE (2): /sbin/ip link add dev nssifb type nss_ifb
Sat May 13 13:01:08 2023 user.notice SQM: ERROR: cmd_wrapper: ip: LAST ERROR: ip: RTNETLINK answers: File exists
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (1): /sbin/tc qdisc add dev eth0 root handle 1: nsstbl rate 20000kbit burst 2500
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Unknown qdisc "nsstbl", hence option "rate" is unparsable
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (1): /sbin/tc qdisc add dev eth0 parent 1: handle 10: nssfq_codel limit 1001 flows 1024 quantum 300 target 5ms interval 100ms set_default
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Unknown qdisc "nssfq_codel", hence option "limit" is unparsable
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (1): /sbin/tc qdisc add dev nssifb root handle 1: nsstbl rate 500000kbit burst 62500
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Unknown qdisc "nsstbl", hence option "rate" is unparsable
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (1): /sbin/tc qdisc add dev nssifb parent 1: handle 10: nssfq_codel limit 1001 flows 1024 quantum 1514 target 5ms interval 100ms set_default
Sat May 13 13:01:09 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Unknown qdisc "nssfq_codel", hence option "limit" is unparsable
Sat May 13 13:01:09 2023 kern.info kernel: [ 815.107258] 453a4caf: Found net device [eth0]
Sat May 13 13:01:09 2023 kern.info kernel: [ 815.107288] 453a4caf: Net device [eth0] has NSS intf_num [1]
Sat May 13 13:01:09 2023 kern.info kernel: [ 815.110934] Nexthop successfully set for [eth0] to [nssifb]
Sat May 13 13:01:09 2023 user.notice SQM: nss-rk.qos was started on eth0 successfully
And this is what happens when I run /etc/init.d/sqm stop:
Sat May 13 13:02:50 2023 user.notice SQM: Stopping SQM on eth0
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev eth0 ingress
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Cannot find specified qdisc on specified device.
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev eth0 root
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev nssifb root
Sat May 13 13:02:50 2023 user.notice SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
I seem to be missing some qdiscs?
EDIT: Adding config and tc -s qdisc output.
config queue 'eth1'
option interface 'eth0'
option debug_logging '0'
option verbosity '5'
option enabled '1'
option download '500000'
option upload '20000'
option qdisc 'fq_codel'
option script 'nss-rk.qos'
option linklayer 'none'
tc -s qdisc:
qdisc noqueue 0: dev lo root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 19314364 bytes 69281 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 1514 drop_overlimit 0 new_flow_count 90 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 40168557 bytes 88915 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 1434 drop_overlimit 0 new_flow_count 123 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev eth1.1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev br-lan_guest root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev eth1.3 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wg0 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1-1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev tun0 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 304 bytes 4 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev wlan1-2 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0-1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0-2 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev nssifb root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0