Help me update my HFSC shaper scripts for fw4/nftables

Parte 2

[    0.023384] PCI: bus2: Fast back to back transfers disabled
[    0.023389] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.023414] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    0.023422] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0400000-0xe06fffff]
[    0.023428] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bi                                                                                                                                                             t pref]
[    0.023439] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0200000-0xe02fffff 64bi                                                                                                                                                             t pref]
[    0.023448] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.023454] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    0.023468] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0400000-0xe05fffff 64bi                                                                                                                                                             t pref]
[    0.023479] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0600000-0xe06fffff 64bi                                                                                                                                                             t pref]
[    0.023509] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.023515] pci 0000:00:02.0:   bridge window [mem 0xe0400000-0xe06fffff]
[    0.023740] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.093824] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy int                                                                                                                                                             r )
[    0.093973] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.153816] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy int                                                                                                                                                             r )
[    0.154002] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.154736] printk: console [ttyS0] disabled
[    0.174821] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 30, base_baud =                                                                                                                                                              12500000) is a 16550A
[    1.188870] printk: console [ttyS0] enabled
[    1.194974] loop: module loaded
[    1.198137] Loading iSCSI transport class v2.0-870.
[    1.203992] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regu                                                                                                                                                             lator
[    1.211661] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regul                                                                                                                                                             ator
[    1.219223] ahci-mvebu f10a8000.sata: supply target not found, using dummy re                                                                                                                                                             gulator
[    1.227071] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps                                                                                                                                                              0x3 impl platform mode
[    1.236170] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs                                                                                                                                                              pio slum part sxs
[    1.245438] scsi host0: ahci-mvebu
[    1.249107] scsi host1: ahci-mvebu
[    1.252606] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x1                                                                                                                                                             00 irq 49
[    1.260573] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x1                                                                                                                                                             80 irq 49
[    1.269035] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    1.275430] nand: AMD/Spansion S34ML02G2
[    1.279369] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz                                                                                                                                                             e: 128
[    1.287269] Bad block table found at page 131008, version 0x01
[    1.293457] Bad block table found at page 130944, version 0x01
[    1.299615] 10 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    1.306710] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    1.312220] 0x000000000000-0x000000200000 : "u-boot"
[    1.317418] 0x000000200000-0x000000220000 : "u_env"
[    1.322480] 0x000000220000-0x000000260000 : "s_env"
[    1.327538] 0x000000260000-0x000000820000 : "unused_area"
[    1.333102] 0x0000007e0000-0x000000820000 : "devinfo"
[    1.338339] 0x000000900000-0x000008400000 : "kernel1"
[    1.343720] 0x000000f00000-0x000008400000 : "ubi"
[    1.348738] 0x000008400000-0x00000ff00000 : "kernel2"
[    1.354118] 0x000008a00000-0x00000ff00000 : "rootfs2"
[    1.359496] 0x00000ff00000-0x000010000000 : "BBT"
[    1.366635] mv88e6085 f1072004.mdio-mii:00: switch 0x3520 detected: Marvell 8                                                                                                                                                             8E6352, revision 1
[    1.386121] hwmon hwmon0: temp1_input not attached to any thermal zone
[    1.406089] hwmon hwmon1: temp1_input not attached to any thermal zone
[    1.426072] hwmon hwmon2: temp1_input not attached to any thermal zone
[    1.443771] hwmon hwmon3: temp1_input not attached to any thermal zone
[    1.463764] hwmon hwmon4: temp1_input not attached to any thermal zone
[    1.591729] mvneta_bm f10c8000.bm: Buffer Manager for network controller enab                                                                                                                                                             led
[    1.599755] ata1: SATA link down (SStatus 0 SControl 300)
[    1.605238] ata2: SATA link down (SStatus 0 SControl 300)
[    1.605551] mvneta f1070000.ethernet eth0: Using hardware mac address 60:38:e                                                                                                                                                             0:c8:43:70
[    1.618779] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.625346] ehci-pci: EHCI PCI platform driver
[    1.629831] ehci-platform: EHCI generic platform driver
[    1.635146] ehci-orion: EHCI orion driver
[    1.639242] orion-ehci f1058000.usb: EHCI Host Controller
[    1.644681] orion-ehci f1058000.usb: new USB bus registered, assigned bus num                                                                                                                                                             ber 1
[    1.652322] orion-ehci f1058000.usb: irq 46, io mem 0xf1058000
[    1.683497] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.689636] hub 1-0:1.0: USB hub found
[    1.693414] hub 1-0:1.0: 1 port detected
[    1.697791] usbcore: registered new interface driver usb-storage
[    1.703965] i2c_dev: i2c /dev entries driver
[    1.710925] orion_wdt: Initial timeout 171 sec
[    1.715597] sdhci: Secure Digital Host Controller Interface driver
[    1.721805] sdhci: Copyright(c) Pierre Ossman
[    1.726270] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.735641] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.743309] NET: Registered PF_INET6 protocol family
[    1.748803] Segment Routing with IPv6
[    1.752500] In-situ OAM (IOAM) with IPv6
[    1.756491] NET: Registered PF_PACKET protocol family
[    1.756830] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using A                                                                                                                                                             DMA
[    1.761581] bridge: filtering via arp/ip/ip6tables is no longer available by                                                                                                                                                              default. Update your scripts to load br_netfilter if you need this.
[    1.782170] 8021q: 802.1Q VLAN Support v1.8
[    1.786418] Registering SWP/SWPB emulation handler
[    1.793939] usb_phy_generic usb3_1-phy: dummy supplies not allowed for exclus                                                                                                                                                             ive requests
[    1.802716] mv88e6085 f1072004.mdio-mii:00: switch 0x3520 detected: Marvell 8                                                                                                                                                             8E6352, revision 1
[    1.822475] hwmon hwmon2: temp1_input not attached to any thermal zone
[    1.839900] mmc0: new high speed SDIO card at address 0001
[    1.848197] hwmon hwmon3: temp1_input not attached to any thermal zone
[    1.868364] hwmon hwmon4: temp1_input not attached to any thermal zone
[    1.888373] hwmon hwmon5: temp1_input not attached to any thermal zone
[    1.906060] hwmon hwmon6: temp1_input not attached to any thermal zone
[    2.238778] mv88e6085 f1072004.mdio-mii:00: configuring for fixed/ link mode
[    2.248795] mv88e6085 f1072004.mdio-mii:00: Link is Up - 1Gbps/Full - flow co                                                                                                                                                             ntrol off
[    2.344963] mv88e6085 f1072004.mdio-mii:00 lan4 (uninitialized): PHY [mv88e6x                                                                                                                                                             xx-1:00] driver [Marvell 88E1540] (irq=64)
[    2.462900] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6x                                                                                                                                                             xx-1:01] driver [Marvell 88E1540] (irq=65)
[    2.574970] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6x                                                                                                                                                             xx-1:02] driver [Marvell 88E1540] (irq=66)
[    2.682904] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6x                                                                                                                                                             xx-1:03] driver [Marvell 88E1540] (irq=67)
[    2.794967] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xx                                                                                                                                                             x-1:04] driver [Marvell 88E1540] (irq=68)
[    2.824862] DSA: tree 0 setup
[    2.828005] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.833349] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus numb                                                                                                                                                             er 2
[    2.840934] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 q                                                                                                                                                             uirks 0x0000000000010010
[    2.850230] xhci-hcd f10f8000.usb3: irq 52, io mem 0xf10f8000
[    2.856083] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.861423] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus numb                                                                                                                                                             er 3
[    2.868951] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    2.875539] hub 2-0:1.0: USB hub found
[    2.879318] hub 2-0:1.0: 1 port detected
[    2.883388] usb usb3: We don't know the algorithms for LPM for this host, dis                                                                                                                                                             abling LPM.
[    2.891674] hub 3-0:1.0: USB hub found
[    2.895456] hub 3-0:1.0: 1 port detected
[    2.899749] UBI: auto-attach mtd6
[    2.903081] ubi0: attaching mtd6
[    3.223641] ubi0: scanning is finished
[    3.231877] ubi0: attached mtd6 (name "ubi", size 117 MiB)
[    3.237400] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.244313] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.251131] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.258127] ubi0: good PEBs: 936, bad PEBs: 0, corrupted PEBs: 0
[    3.264163] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 12                                                                                                                                                             8
[    3.271417] ubi0: max/mean erase counter: 4/1, WL threshold: 4096, image sequ                                                                                                                                                             ence number: 1692453666
[    3.280593] ubi0: available PEBs: 0, total reserved PEBs: 936, PEBs reserved                                                                                                                                                              for bad PEB handling: 40
[    3.290078] ubi0: background thread "ubi_bgt0d" started, PID 550
[    3.293747] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.301622] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.311008] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.318672] Freeing unused kernel image (initmem) memory: 1024K
[    3.353604] Run /sbin/init as init process
[    3.357718]   with arguments:
[    3.357719]     /sbin/init
[    3.357721]   with environment:
[    3.357723]     HOME=/
[    3.357724]     TERM=linux
[    3.480244] init: Console is alive
[    3.483768] init: - watchdog -
[    3.827701] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.870954] kmodloader: done loading kernel modules from /etc/modules-boot.d/                                                                                                                                                             *
[    3.879362] init: - preinit -
[    4.125627] random: jshn: uninitialized urandom read (4 bytes read)
[    4.146942] random: jshn: uninitialized urandom read (4 bytes read)
[    4.173789] mtdblock: MTD device 'devinfo' is NAND, please consider using UBI                                                                                                                                                              block devices instead.
[    4.218325] random: jshn: uninitialized urandom read (4 bytes read)
[    4.285526] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id lin                                                                                                                                                             k mode
[    4.293650] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow con                                                                                                                                                             trol off
[    4.301549] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii lin                                                                                                                                                             k mode
[    4.311821] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.373974] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    6.383509] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 670
[    6.400704] UBIFS (ubi0:1): recovery needed
[    6.467206] UBIFS (ubi0:1): recovery completed
[    6.471712] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "root                                                                                                                                                             fs_data"
[    6.479585] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O u                                                                                                                                                             nit sizes: 2048 bytes/2048 bytes
[    6.489549] UBIFS (ubi0:1): FS size: 107167744 bytes (102 MiB, 844 LEBs), max                                                                                                                                                              855 LEBs, journal size 5332992 bytes (5 MiB, 42 LEBs)
[    6.501432] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[    6.508080] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 1308F                                                                                                                                                             9BF-5AAA-4D21-B88B-E1BB934EB366, small LPT model
[    6.523520] mount_root: switching to ubifs overlay
[    6.588936] urandom-seed: Seeding with /etc/urandom.seed
[    6.707926] procd: - early -
[    6.710865] procd: - watchdog -
[    7.253524] procd: - watchdog -
[    7.257873] procd: - ubus -
[    7.296376] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.312147] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.318830] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.326808] procd: - init -
[    7.716940] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.771429] Loading modules backported from Linux version v6.1.24-0-g0102425a                                                                                                                                                             c76b
[    7.778986] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[    7.839060] <<Marvell Mac80211 Wireless PCIE Network Driver version 10.4.10.0                                                                                                                                                             >>
[    7.846446] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    7.852208] rate_adapt_mode: 0, dwds_stamode: 1, optimization_level: 1, dump_                                                                                                                                                             hostcmd: 0, feature: 0
[    7.861353] ieee80211 phy0: priv->pcmd_buf = (ptrval)  priv->pphys_cmd_buf =                                                                                                                                                              (ptrval)
[    7.874344] urngd: v1.0.2 started.
[    7.953496] ieee80211 phy0: fw download start
[    7.953507] ieee80211 phy0: ddr init: download start
[    7.953886] ieee80211 phy0: ddr init: download complete
[    8.046452] random: crng init done
[    8.049876] random: 27 urandom warning(s) missed due to ratelimiting
[    8.134813] ieee80211 phy0: FwSize = 451040 downloaded Size = 451040 curr_ite                                                                                                                                                             ration 65522
[   11.003491] ieee80211 phy0: fw download complete
[   11.003522] ieee80211 phy0: device node: pcie@1,0
[   11.037141] ieee80211 phy0: firmware version: 0x903020c
[   11.397497] ieee80211 phy0: firmware region code: 10
[   11.436427] ieee80211 phy0: 2G disabled, 5G enabled
[   11.441333] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   11.446845] pci 0000:00:02.0: enabling device (0140 -> 0142)
[   11.452620] rate_adapt_mode: 0, dwds_stamode: 1, optimization_level: 1, dump_                                                                                                                                                             hostcmd: 0, feature: 0
[   11.461788] ieee80211 phy1: priv->pcmd_buf = 2b08648f  priv->pphys_cmd_buf =                                                                                                                                                              b0916f48
[   11.468672] ieee80211 phy1: fw download start
[   11.468683] ieee80211 phy1: ddr init: download start
[   11.469065] ieee80211 phy1: ddr init: download complete
[   11.610975] ieee80211 phy1: FwSize = 451040 downloaded Size = 451040 curr_ite                                                                                                                                                             ration 65527
[   12.809494] ieee80211 phy1: fw download complete
[   12.809531] ieee80211 phy1: device node: pcie@2,0
[   12.842518] ieee80211 phy1: firmware version: 0x903020c
[   13.201504] ieee80211 phy1: firmware region code: 10
[   13.232681] ieee80211 phy1: 2G enabled, 5G disabled
[   13.237634] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   13.246931] hid: raw HID events driver (C) Jiri Kosina
[   13.252812] GACT probability on
[   13.256556] Mirror/redirect action on
[   13.263891] u32 classifier
[   13.266625]     input device check on
[   13.270309]     Actions configured
[   13.285855] Simple TC action Loaded
[   13.311971] Bluetooth: Core ver 2.22
[   13.315654] NET: Registered PF_BLUETOOTH protocol family
[   13.320996] Bluetooth: HCI device and connection manager initialized
[   13.327404] Bluetooth: HCI socket layer initialized
[   13.332309] Bluetooth: L2CAP socket layer initialized
[   13.337397] Bluetooth: SCO socket layer initialized
[   13.345539] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.350889] Bluetooth: BNEP filters: protocol multicast
[   13.356177] Bluetooth: BNEP socket layer initialized
[   13.363038] Bluetooth: vendor=0x2df, device=0x9136, class=255, fn=2
[   14.060162] Bluetooth: FW download over, size 616840 bytes
[   14.663524] btmrvl_sdio mmc0:0001:2: sdio device tree data not available
[   14.672007] usbcore: registered new interface driver btusb
[   14.678413] Bluetooth: HCI UART driver ver 2.3
[   14.682890] Bluetooth: HCI UART protocol H4 registered
[   14.688059] Bluetooth: HCI UART protocol BCSP registered
[   14.693393] Bluetooth: HCI UART protocol ATH3K registered
[   14.699484] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   14.705460] Bluetooth: HIDP socket layer initialized
[   14.723599] Bluetooth: RFCOMM TTY layer initialized
[   14.723811] mwifiex_sdio mmc0:0001:1: WLAN FW already running! Skip FW dnld
[   14.728526] Bluetooth: RFCOMM socket layer initialized
[   14.735534] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[   14.740700] Bluetooth: RFCOMM ver 1.11
[   14.758606] xt_time: kernel timezone is -0000
[   14.780739] PPP generic driver version 2.4.2
[   14.785581] NET: Registered PF_PPPOX protocol family
[   14.792886] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.833943] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (15.                                                                                                                                                             68.7.p189)
[   14.842084] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (15.68.7.p                                                                                                                                                             189)
[   16.859069] mvneta f1070000.ethernet eth0: Link is Down
[   16.875112] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id lin                                                                                                                                                             k mode
[   16.883067] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow con                                                                                                                                                             trol off
[   16.893532] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   16.975341] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii lin                                                                                                                                                             k mode
[   16.988411] br-lan: port 1(lan1) entered blocking state
[   16.993695] br-lan: port 1(lan1) entered disabled state
[   17.010724] device lan1 entered promiscuous mode
[   17.015391] device eth0 entered promiscuous mode
[   17.217982] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii lin                                                                                                                                                             k mode
[   17.229006] br-lan: port 2(lan2) entered blocking state
[   17.234311] br-lan: port 2(lan2) entered disabled state
[   17.272338] device lan2 entered promiscuous mode
[   17.388493] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii lin                                                                                                                                                             k mode
[   17.441940] br-lan: port 3(lan3) entered blocking state
[   17.447262] br-lan: port 3(lan3) entered disabled state
[   17.469997] device lan3 entered promiscuous mode
[   17.557170] mv88e6085 f1072004.mdio-mii:00 lan4: configuring for phy/gmii lin                                                                                                                                                             k mode
[   17.609895] br-lan: port 4(lan4) entered blocking state
[   17.615165] br-lan: port 4(lan4) entered disabled state
[   17.637084] device lan4 entered promiscuous mode
[   17.719347] mv88e6085 f1072004.mdio-mii:00 wan: configuring for phy/gmii link                                                                                                                                                              mode
[   18.456062] ieee80211 phy1: change: 0xffffffff
[   18.543195] br-lan: port 5(phy1-ap0) entered blocking state
[   18.548854] br-lan: port 5(phy1-ap0) entered disabled state
[   18.554631] device phy1-ap0 entered promiscuous mode
[   18.559694] br-lan: port 5(phy1-ap0) entered blocking state
[   18.565308] br-lan: port 5(phy1-ap0) entered forwarding state
[   18.571321] br-lan: port 5(phy1-ap0) entered disabled state
[   18.612701] ieee80211 phy1: change: 0x100
[   18.621776] ieee80211 phy1: change: 0x42
[   18.768695] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[   18.775454] br-lan: port 5(phy1-ap0) entered blocking state
[   18.781066] br-lan: port 5(phy1-ap0) entered forwarding state
[   18.787455] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   19.875674] mv88e6085 f1072004.mdio-mii:00 lan1: Link is Up - 1Gbps/Full - fl                                                                                                                                                             ow control rx/tx
[   19.884339] br-lan: port 1(lan1) entered blocking state
[   19.889591] br-lan: port 1(lan1) entered forwarding state
[   21.418060] mv88e6085 f1072004.mdio-mii:00 wan: Link is Up - 1Gbps/Full - flo                                                                                                                                                             w control rx/tx
[   21.426673] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   59.083613] ieee80211 phy1: staid 3 deleted
[   73.256359] mv88e6085 f1072004.mdio-mii:00 wan: Link is Down
[   75.513592] ieee80211 phy1: staid 3 deleted
[   76.117715] mv88e6085 f1072004.mdio-mii:00 wan: Link is Up - 1Gbps/Full - flo                                                                                                                                                             w control rx/tx
[  101.713520] mv88e6085 f1072004.mdio-mii:00 wan: Link is Down
[  104.577712] mv88e6085 f1072004.mdio-mii:00 wan: Link is Up - 1Gbps/Full - flo                                                                                                                                                             w control rx/tx
[  207.222646] ieee80211 phy1: staid 3 deleted
[  216.613881] pppoe-wan: renamed from ppp0
[  339.253576] ieee80211 phy1: staid 1 deleted
[  486.276498] ieee80211 phy1: staid 1 deleted
root@OpenWrt:~# dnsmasq            less               rpcd               unalias

dnsmasq: junk found in command line
root@OpenWrt:~# dropbear           let                scp                uname
          uname
dropbearkey        root@OpenWrt:~# dropbearkey        ln                 seccomp                                                                                                                                                             -trace      uniq
        Must specify a key filename
Usage: dropbearkey -t <type> -f <filename> [-s bits]
-t type Type of key to generate. One of:
                rsa
                ed25519
-f filename    Use filename for the secret key.
               ~/.ssh/id_dropbear is recommended for client keys.
-s bits Key size in bits, should be a multiple of 8 (optional)
           Ed25519 has a fixed size of 256 bits
-y              Just print the publickey and fingerprint for the
                private key in <filename>.
root@OpenWrt:~# du                 local              sed                unset
  du: local: No such file or directory
du: sed: No such file or directory
du: unset: No such file or directory
root@OpenWrt:~# echo               lock               seq                upgrade
d
          lock seq upgraded
root@OpenWrt:~# egrep              logd               service            uptime
           egrep: service: No such file or directory
egrep: uptime: No such file or directory
root@OpenWrt:~# env                logger             set                urandom
_seed
root@OpenWrt:~# eval               login              sh                 urngd
Password:

This disables LOOKUP in the conntrack tables only, it will not disable your router's NAT/MASQUERADING, but for the more interesting isolation modes (triple, and the 4 *host modes), cake needs to see the internal IP addresses...

Cake's ack-filter does not play prioritisation games (nor should it) but it does careful ACK thinning...

If this is cake's rtt setting I think you need to spell out the trade-offs, setting a lower rtt will result in less latency under load, but also less throughput for flows with noticeably longer RTT, say you set this for 20ms because most data centers are 20ms away, but then you do a download from the other side of the globe, that other long RTT download might not manage to fill the pipe.

Not sure what is happening there, when I copy and paste the instructions into a terminal running busybox sh I get a way more reasonable:

root@turris:~# sh


BusyBox v1.35.0 (2024-04-02 01:04:13 UTC) built-in shell (ash)

root@turris:~# for file in /sys/class/net/*
> do
> echo "file:" ${file}
> for rxqueue in "${file}"/queues/rx-*
> do
> if [ -f "${rxqueue}"/rps_cpus ]
> then
> echo "rxqueue:" ${rxqueue}
> echo "previous value" $(cat "${rxqueue}"/rps_cpus)
> echo 3 > "${rxqueue}"/rps_cpus
> echo "current value" $(cat "${rxqueue}"/rps_cpus)
> fi 
> done
> done
file: /sys/class/net/br-guest-turris
rxqueue: /sys/class/net/br-guest-turris/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/br-lan
rxqueue: /sys/class/net/br-lan/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/eth0
rxqueue: /sys/class/net/eth0/queues/rx-0
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-1
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-2
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-3
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-4
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-5
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-6
previous value 3
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-7
previous value 3
current value 3
file: /sys/class/net/eth1
rxqueue: /sys/class/net/eth1/queues/rx-0
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-1
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-2
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-3
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-4
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-5
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-6
previous value 3
current value 3
rxqueue: /sys/class/net/eth1/queues/rx-7
previous value 3
current value 3
file: /sys/class/net/eth2
rxqueue: /sys/class/net/eth2/queues/rx-0
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-1
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-2
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-3
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-4
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-5
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-6
previous value 3
current value 3
rxqueue: /sys/class/net/eth2/queues/rx-7
previous value 3
current value 3
file: /sys/class/net/eth2.42
rxqueue: /sys/class/net/eth2.42/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/eth2.7
rxqueue: /sys/class/net/eth2.7/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/ifb4pppoe-wan
rxqueue: /sys/class/net/ifb4pppoe-wan/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/ip6tnl0
rxqueue: /sys/class/net/ip6tnl0/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lan0
rxqueue: /sys/class/net/lan0/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lan1
rxqueue: /sys/class/net/lan1/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lan2
rxqueue: /sys/class/net/lan2/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lan3
rxqueue: /sys/class/net/lan3/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lan4
rxqueue: /sys/class/net/lan4/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/lo
rxqueue: /sys/class/net/lo/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/pppoe-wan
rxqueue: /sys/class/net/pppoe-wan/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/sit0
rxqueue: /sys/class/net/sit0/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/tun_turris
rxqueue: /sys/class/net/tun_turris/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/wlan0
rxqueue: /sys/class/net/wlan0/queues/rx-0
previous value 3
current value 3
file: /sys/class/net/wlan1
rxqueue: /sys/class/net/wlan1/queues/rx-0
previous value 3
current value 3
1 Like

Ahora si :smiley:

BusyBox v1.36.1 (2024-03-22 22:09:42 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.3, r23809-234f1a2efa
 -----------------------------------------------------
root@OpenWrt:~# for file in /sys/class/net/*
> do
> echo "file:" ${file}
> for rxqueue in "${file}"/queues/rx-*
then
> do
> if [ -f "${rxqueue}"/rps_cpus ]
echo 3 > "${rxqueue}"/rps_cpus
> then
> echo "rxqueue:" ${rxqueue}
> echo "previous value" $(cat "${rxqueue}"/rps_cpus)
> echo 3 > "${rxqueue}"/rps_cpus
> echo "current value" $(cat "${rxqueue}"/rps_cpus)
> fi
> done
> done
file: /sys/class/net/br-lan
rxqueue: /sys/class/net/br-lan/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/eth0
rxqueue: /sys/class/net/eth0/queues/rx-0
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-1
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-2
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-3
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-4
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-5
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-6
previous value 0
current value 3
rxqueue: /sys/class/net/eth0/queues/rx-7
previous value 0
current value 3
file: /sys/class/net/ifb-pppoe-wan
rxqueue: /sys/class/net/ifb-pppoe-wan/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/lan1
rxqueue: /sys/class/net/lan1/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/lan2
rxqueue: /sys/class/net/lan2/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/lan3
rxqueue: /sys/class/net/lan3/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/lan4
rxqueue: /sys/class/net/lan4/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/lo
rxqueue: /sys/class/net/lo/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/mlan0
rxqueue: /sys/class/net/mlan0/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/phy1-ap0
rxqueue: /sys/class/net/phy1-ap0/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/pppoe-wan
rxqueue: /sys/class/net/pppoe-wan/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/teql0
rxqueue: /sys/class/net/teql0/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/wan
rxqueue: /sys/class/net/wan/queues/rx-0
previous value 0
current value 3
file: /sys/class/net/wlan0
rxqueue: /sys/class/net/wlan0/queues/rx-0
previous value 0
current value 3
root@OpenWrt:~#

Ah, then rerun a speedtest with the htop capturing as before. Did that help?

1 Like

Ahora me gusto! Cuando llegue a casa pruebo si hay mejoras en juegos. Ahora estoy desde remoto, ya me voy rumbo a mi casa. Cuando llegue, aviso como funciona. Muchas Gracias amigo! :kissing_smiling_eyes:



1 Like

Is it like an addition? Should I download it with the settings I have at the moment? How can I delete it if it doesn't work?

I'm currently in the process of writing a simple README for the script, but it's not finished yet. I just copied and pasted all the configuration options here so that anyone interested can experimented with it.

The script is essentially the same but with a few additional features, such as allowing you to use cake as a root qdisc and preserving config files even after a firmware update. This means you can use pretty much the same settings as before.

2 Likes

Good day. Well last night I started playing online, to see how it works. And it barely improved. The good thing is that it recovered the discarded megabytes. Note, that if I lower the megabytes to 300 up 300 dow. CPU usage drops to 75%. (But I left it back to 560000 kbps)
I tried deactivating irqbalance, and barely noticed a loss in performance, so I preferred to leave it On.
I don't know if it's a good idea to disable WiFi to recover more processor and see if they recommend uninstalling services that consume resources.
And if you want me to try something new, let me know so I can collaborate with the evolution of the script. Thank you very much in advance for the help and to all those who join in and contribute their part. :wink:

Well, if even a single CPU (with lots of pink SIRQ) gets to 90-100% cake will become unhappy and accumulate additional latency, so you really should set the shaper rates such that yiu have some idle reserve...

That can also help if you are running out of CPU, but an alternative solution might be simply to set the shaper rate lower so the router has enough CPU left for WiFi.

Ah, wrong address, I am not involved with this script I just help out here on general issues that essentially affect all shaper/AQM/scheduler alternatives...

But the question for your rputer is, are rps_cpu still set correctly? Because we did not change the normal hotplug script yet that had set the initial values... so maybe try the following again (best in a fresh busybox sh shell):

for file in /sys/class/net/*
do
for queue in "${file}"/queues/rx-*
do
echo "${queue}" RX rps_cpus
cat "${queue}"/rps_cpus
done
for queue in "${file}"/queues/tx-*
do
echo "${queue}" TX xps_cpus
cat "${queue}"/xps_cpus
done
done

to see whether the value of three you set is still valid?

1 Like
root@OpenWrt:~# for file in /sys/class/net/*
> do
> for queue in "${file}"/queues/rx-*
> do
> echo "${queue}" RX rps_cpus
> cat "${queue}"/rps_cpus
> done
> for queue in "${file}"/queues/tx-*
> do
> echo "${queue}" TX xps_cpus
> cat "${queue}"/xps_cpus
> done
> done
/sys/class/net/br-lan/queues/rx-0 RX rps_cpus
3
/sys/class/net/br-lan/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/eth0/queues/rx-0 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-1 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-2 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-3 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-4 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-5 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-6 RX rps_cpus
3
/sys/class/net/eth0/queues/rx-7 RX rps_cpus
3
/sys/class/net/eth0/queues/tx-0 TX xps_cpus
1
/sys/class/net/eth0/queues/tx-1 TX xps_cpus
2
/sys/class/net/eth0/queues/tx-2 TX xps_cpus
1
/sys/class/net/eth0/queues/tx-3 TX xps_cpus
2
/sys/class/net/eth0/queues/tx-4 TX xps_cpus
1
/sys/class/net/eth0/queues/tx-5 TX xps_cpus
2
/sys/class/net/eth0/queues/tx-6 TX xps_cpus
1
/sys/class/net/eth0/queues/tx-7 TX xps_cpus
2
/sys/class/net/ifb-pppoe-wan/queues/rx-0 RX rps_cpus
3
/sys/class/net/ifb-pppoe-wan/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/lan1/queues/rx-0 RX rps_cpus
3
/sys/class/net/lan1/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/lan2/queues/rx-0 RX rps_cpus
3
/sys/class/net/lan2/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/lan3/queues/rx-0 RX rps_cpus
3
/sys/class/net/lan3/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/lan4/queues/rx-0 RX rps_cpus
3
/sys/class/net/lan4/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/lo/queues/rx-0 RX rps_cpus
3
/sys/class/net/lo/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/mlan0/queues/rx-0 RX rps_cpus
3
/sys/class/net/mlan0/queues/tx-0 TX xps_cpus
0
/sys/class/net/mlan0/queues/tx-1 TX xps_cpus
0
/sys/class/net/mlan0/queues/tx-2 TX xps_cpus
0
/sys/class/net/mlan0/queues/tx-3 TX xps_cpus
0
/sys/class/net/phy1-ap0/queues/rx-0 RX rps_cpus
3
/sys/class/net/phy1-ap0/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/pppoe-wan/queues/rx-0 RX rps_cpus
3
/sys/class/net/pppoe-wan/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/teql0/queues/rx-0 RX rps_cpus
3
/sys/class/net/teql0/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/wan/queues/rx-0 RX rps_cpus
3
/sys/class/net/wan/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
/sys/class/net/wlan0/queues/rx-0 RX rps_cpus
3
/sys/class/net/wlan0/queues/tx-0 TX xps_cpus
cat: read error: No such file or directory
root@OpenWrt:~#

Well, this is the result.
halfway there are some errors.

These are fine, we can not read/write the xps_cpus variables...

But it seems the value stayed at 3 which means both COU0 and CPU1 can be used for soft interrupt processing.

1 Like

Well, I guess these settings. Do I have to apply them when the scripts are updated? or install a firmware update.
I don't know if something else can be done, and try improvements to the scripts.
Then I will see about adding an AP, to broadcast WiFi. This way I can recover more performance with SQM.

Mmmh, could you enable the detailed CPU times display please and a display of all individual CPUs (what router is this and what CPU)?

And how did you specify that bandwidth unlimited or just unlimited?

My point is the libreQos project uses HTB+cake quite successfully, so I assume that it should be possible to use cake as leaf more efficiently than appears ti be the case with your configuration.

Sure, here is a test with detailed CPU times and cake as leaf qdisc within the script:

Iperf3 output:

Summary
Accepted connection from 192.168.1.1, port 37530
[  5] local 192.168.88.55 port 5201 connected to 192.168.1.1 port 37546
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  98.0 MBytes   822 Mbits/sec                  
[  5]   1.00-2.00   sec  81.5 MBytes   684 Mbits/sec                  
[  5]   2.00-3.00   sec   102 MBytes   856 Mbits/sec                  
[  5]   3.00-4.00   sec   102 MBytes   860 Mbits/sec                  
[  5]   4.00-5.00   sec   102 MBytes   858 Mbits/sec                  
[  5]   5.00-6.00   sec   103 MBytes   860 Mbits/sec                  
[  5]   6.00-7.00   sec   103 MBytes   860 Mbits/sec                  
[  5]   7.00-8.00   sec   102 MBytes   855 Mbits/sec                  
[  5]   8.00-9.00   sec   102 MBytes   860 Mbits/sec                  
[  5]   9.00-10.00  sec  99.8 MBytes   837 Mbits/sec                  
[  5]  10.00-11.00  sec   102 MBytes   854 Mbits/sec                  
[  5]  11.00-12.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  12.00-13.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  13.00-14.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  14.00-15.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  15.00-16.00  sec   102 MBytes   856 Mbits/sec                  
[  5]  16.00-17.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  17.00-18.00  sec   102 MBytes   854 Mbits/sec                  
[  5]  18.00-19.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  19.00-20.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  20.00-21.00  sec  99.0 MBytes   830 Mbits/sec                  
[  5]  21.00-22.00  sec   102 MBytes   855 Mbits/sec                  
[  5]  22.00-23.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  23.00-24.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  24.00-25.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  25.00-26.00  sec  83.7 MBytes   702 Mbits/sec                  
[  5]  26.00-27.00  sec   102 MBytes   852 Mbits/sec                  
[  5]  27.00-28.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  28.00-29.00  sec   103 MBytes   861 Mbits/sec                  
[  5]  29.00-30.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  30.00-31.00  sec   102 MBytes   856 Mbits/sec                  
[  5]  31.00-32.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  32.00-33.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  33.00-34.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  34.00-35.00  sec   102 MBytes   853 Mbits/sec                  
[  5]  35.00-36.00  sec   103 MBytes   861 Mbits/sec                  
[  5]  36.00-37.00  sec   102 MBytes   855 Mbits/sec                  
[  5]  37.00-38.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  38.00-39.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  39.00-40.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  40.00-41.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  41.00-42.00  sec   102 MBytes   854 Mbits/sec                  
[  5]  42.00-43.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  43.00-44.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  44.00-45.00  sec   102 MBytes   855 Mbits/sec                  
[  5]  45.00-46.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  46.00-47.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  47.00-48.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  48.00-49.00  sec   102 MBytes   859 Mbits/sec                  
[  5]  49.00-50.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  50.00-51.00  sec   103 MBytes   861 Mbits/sec                  
[  5]  51.00-52.00  sec   102 MBytes   860 Mbits/sec                  
[  5]  52.00-53.00  sec   102 MBytes   857 Mbits/sec                  
[  5]  53.00-54.00  sec   102 MBytes   860 Mbits/sec                  
[  5]  54.00-55.00  sec   102 MBytes   856 Mbits/sec                  
[  5]  55.00-56.00  sec   102 MBytes   858 Mbits/sec                  
[  5]  56.00-57.00  sec   102 MBytes   852 Mbits/sec                  
[  5]  57.00-58.00  sec   102 MBytes   860 Mbits/sec                  
[  5]  58.00-59.00  sec   103 MBytes   860 Mbits/sec                  
[  5]  59.00-60.00  sec   102 MBytes   855 Mbits/sec                  
[  5]  60.00-60.04  sec  4.49 MBytes   860 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-60.04  sec  5.95 GBytes   851 Mbits/sec                  receiver

Cpu stats of my VM:

Summary
root@OpenWrt:~# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  1
  On-line CPU(s) list:   0
Vendor ID:               AuthenticAMD
  BIOS Vendor ID:        QEMU
  Model name:            AMD Ryzen 5 PRO 4650GE with Radeon Graphics
    BIOS Model name:     pc-i440fx-8.1  CPU @ 2.0GHz
    BIOS CPU family:     1
    CPU family:          23
    Model:               96
    Thread(s) per core:  1
    Core(s) per socket:  1
    Socket(s):           1
    Stepping:            1
    BogoMIPS:            6587.61
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 sysc
                         all nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq 
                         ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervis
                         or lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw perfctr_core ssbd ibrs i
                         bpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsave
                         opt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid
                          pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities
Virtualization features: 
  Virtualization:        AMD-V
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):     
  L1d:                   64 KiB (1 instance)
  L1i:                   64 KiB (1 instance)
  L2:                    512 KiB (1 instance)
  L3:                    16 MiB (1 instance)
Vulnerabilities:         
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Mitigation; untrained return thunk; SMT disabled
  Spec rstack overflow:  Mitigation; SMT disabled
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected

First of all I personally don't have any issues running any shaper or leaf qdiscs as my main router is pretty powerful (intel i31215u).

This was a synthetic test designed to determine whether CAKE as a leaf qdisc is more resource-intensive than FQ-CoDel, as you and Daniel were discussing.

For my tests, I set up a virtual machine running OpenWrt with a single core on my Proxmox server and emulated ISP traffic originating from my regular LAN.

I am limited to emulating 1 Gbit speeds because the physical port on my Proxmox server has just 1 Gbit port.

My testing topology:

ISP | OpenWrt Mini PC (x86 i31215u) [192.168.1.0/24]
            |
            v
End user| OpenWrt VM [192.168.88.0/24]
            |
            v
 Client (Ubuntu) [192.168.88.55]

Then I perform an iperf3 test where my main router (OpenWrt Mini PC (x86 i31215u)) is the iperf3 client and the Client (Ubuntu) is the iperf3 server.

htop screenshot of course is taken from the OpenWrt VM (end user)

I didn't specify any bandwidth at all. Just this:

tc qdisc add dev "$DEV" parent "1:$i" cake besteffort ack-filter
1 Like

The colors are pretty muted for me, I take it is mostly "pink" SIRQ?

Thanks I appreciate that a lot, even though I am unhappy about the outcome :frowning:

Thanks, unlimited is the default so that makes sense that not specifying it explicitly cake will select unlimited, I just was not aware that this gets reported as bandwidth unlimited in the tc -s qdisc output.

Mmmh, I wonder how much of that might caused by running on a VM, but I fear I will need to accept that cake is heavy even without the shaper... (the VOM machine has two NICs I assume?)

Thanks for the testing, the ball is now in mz court and I will need to set up a few tests locally... (I wanted to postpone this until I get hands on a OpenWrt One as currently everything not badly outdated is used in "production", so this might take a while, but your testing was quite revealing.)

2 Likes

Does it help if I do these tests with my linksys wrt x32 router?

Gracias, only if you are interested in the results, this is on my TODO list for some time now, so can wait until the OpenWrt One becomes available... (I will either use the One or more likely push the One into service and use the older WNDR3700v2 for this testing as that is so weak CPU wise that I expect not only to see differences in CPU usage but potentially also in throughput...)

1 Like

Yea, seems like Pink/Magenta... So Soft IRQ

So I did a little bit more testing:

2 cpu's:

2 cpu's + packet steering

2 cpu's + irqbalance:
Looks pretty much the same on the screenshot. But the load was constantly switching between core 0 and 1

2 cpu's + irqbalance + packet steering:

I also made a few tests with 2 cpu's + irqbalance + packet steering and various cake options (besteffort + flowbind, setting unlimited manually, etc...) to see if they would make any difference in performance. However, they did not result in any significant improvement.

You're welcome. I'd be happy to perform further tests if you would like. If I set up 2 VMs with OpenWrt, I could max out the potential throughput as I wouldn't be limited by the NIC.

You mean the virtual OpenWrt machine? Yes it has two virtual NICs

root@OpenWrt:~# cat /proc/interrupts
           CPU0       CPU1       
  0:         15          0   IO-APIC   2-edge      timer
  1:          9          0   IO-APIC   1-edge      i8042
  8:          0          1   IO-APIC   8-edge      rtc0
  9:          0          0   IO-APIC   9-fasteoi   acpi
 10:         15        288   IO-APIC  10-fasteoi   virtio0
 11:          0          0   IO-APIC  11-fasteoi   uhci_hcd:usb1
 12:          0          5   IO-APIC  12-edge      i8042
 14:          0          0   IO-APIC  14-edge      ata_piix
 15:          0         15   IO-APIC  15-edge      ata_piix
 24:          0          0   PCI-MSI 81920-edge      virtio1-config
 25:          0          0   PCI-MSI 81921-edge      virtio1-control
 26:          0          0   PCI-MSI 81922-edge      virtio1-event
 27:        938          0   PCI-MSI 81923-edge      virtio1-request
 28:          0        182   PCI-MSI 81924-edge      virtio1-request
 29:          0          0   PCI-MSI 294912-edge      virtio2-config
 30:          0     921422   PCI-MSI 294913-edge      virtio2-input.0
 31:    1284403          0   PCI-MSI 294914-edge      virtio2-output.0
 32:          0          0   PCI-MSI 311296-edge      virtio3-config
 33:         79      82747   PCI-MSI 311297-edge      virtio3-input.0
 34:     196935     656453   PCI-MSI 311298-edge      virtio3-output.0
NMI:          0          0   Non-maskable interrupts
LOC:    1068628      61288   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
IWI:          0          0   IRQ work interrupts
RTR:          0          0   APIC ICR read retries
RES:       1290       1621   Rescheduling interrupts
CAL:     138095       8116   Function call interrupts
TLB:         20          2   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
DFR:          0          0   Deferred Error APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:          2          2   Machine check polls
ERR:          0
MIS:          0
PIN:          0          0   Posted-interrupt notification event
NPI:          0          0   Nested posted-interrupt event
PIW:          0          0   Posted-interrupt wakeup event

It seems like it's not distributed across both virtual NICs.

To really test if running OpenWrt as a VM makes a huge difference I could setup a second phyical mini pc (with an j4125) I have lying around.

I'm glad the testing was helpful. If you need any further assistance or more tests done in the meantime, feel free to reach out.

1 Like

Consultation. Could it be possible to add a USB 3.0 pendrive to the router to improve performance? :thinking:

Cache: The router can cache frequently accessed files and data on the USB flash drive, which can reduce loading times and improve overall speed.
Increase swap space: If the router runs out of RAM, you can use the swap space on the USB flash drive to temporarily store data that does not fit in RAM.
This can help prevent crashes and improve router stability.
Run applications: Some routers with OpenWrt allow you to run applications directly from a USB pendrive.

By following these steps, you can determine if adding a USB flash drive to your router with OpenWrt can improve performance.

Here are some additional resources that may be helpful:

Configure USB storage in OpenWrt: https://m.youtube.com/watch?v=gL_7XAoB2oA
Use a USB pendrive as storage in OpenWrt: Looking for "best overall" OpenWrt router with a USB port (2023)
Run applications from a USB pendrive in OpenWrt: https://openwrt.org/docs/guide-user/storage/usb-installing