OpenWRT snapshot - LuCI performance

Hi,

does anyone else experience problems accessing LuCI using snapshots from the last few days?

When I try accessing the GUI, the page usually times-out. After few attempts, the overview page might show after some heavy loading. Even then, everything feels very sluggish. Also, the RAM usage keeps increasing gradually (the router uptime is now 1 day, the RAM usage has doubled in this time…normally, it is around 150MB, now it has risen to 300MB and keeps rising). I have not changed any configuration file/settings lately. Internet use is also a bit affected, sometimes it takes some time to load a web page. But, it is still way more responsive as the LuCI.

I am using NanoPI R5C, currently on the latest snapshot.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
: cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
free

ubus call system board

"kernel": "6.12.49",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 0",
        "model": "FriendlyElec NanoPi R5C",
        "board_name": "friendlyarm,nanopi-r5c",
        "rootfs_type": "ext4",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "firmware_url": "https://downloads.openwrt.org/",
                "revision": "r31243-1a79345b5d",
                "target": "rockchip/armv8",
                "description": "OpenWrt SNAPSHOT r31243-1a79345b5d",
                "builddate": "1759243460"

/etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd0f:07f9:9457::/48'
        option packet_steering '2'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0'

config device
        option name 'eth0'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'
        list dns '192.168.1.1'
        list dns 'fd0f:07f9:9457::1'

config device
        option name 'eth1'
        option macaddr 'xx:xx:xx:xx:xx:xx'

config interface 'wan'
        option device 'eth1'
        option proto 'dhcp'
        option norelease '1'
        option sourcefilter '0'

config interface 'wan6'
        option device 'eth1'
        option proto 'dhcpv6'
        option reqaddress 'force'
        option norelease '1'
        option ip6assign '128'
        option reqprefix 'auto'
        option sourcefilter '0'

config interface 'vpn'
        option proto 'wireguard'
        option private_key 'xxxx='
        option listen_port '51820'
        list addresses '192.168.9.1/24'
        option ip6assign '64'
        option mtu '1420'
        list dns '192.168.9.1'
        list dns 'fd0f:07f9:9457:10::1'

config wireguard_vpn 'wgclient'
        option public_key 'xxxxxDs='
        option preshared_key 'xxxx='
        option description 'xxxx'
        option route_allowed_ips '1'
        list allowed_ips '192.168.9.2/32'
        list allowed_ips 'fd0f:07f9:9457:10::2/128'
        list allowed_ips '2a01:xxxx:xxxx:xxxx::x/128'

config wireguard_vpn 'wgTV'
        option public_key 'xxxxxxxx='
        option preshared_key 'xxxxxxxx='
        list allowed_ips '192.168.9.3/32'
        option description 'xxxxxxxxx'
        option route_allowed_ips '1'

config wireguard_vpn 'wgxxxx'
        option public_key 'xxxxxxxx='
        option preshared_key 'xxxxxxxxxx='
        option description 'xxxxxxx'
        option route_allowed_ips '1'
        list allowed_ips '192.168.9.4/32'
        list allowed_ips 'fd0f:07f9:9457:10::4/128'
        list allowed_ips '2a01:xxxx:xxxx:xxxx::xxxx/128'

config wireguard_vpn 'wgxxxxx'
        option public_key 'xxxxxxxxxx='
        option preshared_key 'xxxxxxxxxx='
        option description 'xxxxxxx'
        option route_allowed_ips '1'
        list allowed_ips '192.168.9.5/32'
        list allowed_ips 'fd0f:07f9:9457:10::5/128'
        list allowed_ips '2a01:xxxx:xxxx:xxxx::xxxx/128'

config wireguard_vpn
        option description 'Txxxx'
        option public_key 'xxxxxxx='
        option preshared_key 'xxxxxxxx='
        list allowed_ips '192.168.9.6/32'
        list allowed_ips 'fd0f:07f9:9457:10::6/128'
        list allowed_ips '2a01:xxxx:xxxx:xxxx::xxxx/128'
        option route_allowed_ips '1'

/etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/fd000000.usb/xhci-hcd.1.auto/usb8/8-1/8-1:1.0'
        option band '5g'
        option channel '48'
        option htmode 'HE80'
        option txpower '20'
        option country 'SI'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'xxxxx'
        option encryption 'psk2+ccmp'
        option key 'xxxxxxx'

cat /etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'xxxxxx'
        option expandhosts '1'
        option cachesize '1000'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option localservice '1'
        option ednspacket_max '1232'
        list addnmount '/bin/busybox'
        option confdir '/tmp/dnsmasq.d'

config dhcp 'lan'
        option interface 'lan'
        option start '200'
        option limit '50'
        option leasetime '12h'
        option dhcpv4 'server'
        option force '1'
        option ra 'server'
        option ndp 'hybrid'
        option ra_default '1'
        option dhcpv6 'server'

config dhcp 'wan'
        option interface 'wan'
        option start '100'
        option limit '150'
        option leasetime '12h'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

/etc/config/firewall

config defaults
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option synflood_protect '1'
        option flow_offloading '1'
        option flow_offloading_hw '1'

config zone
        option name 'lan'
        list network 'lan'
        list network 'vpn'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config zone
        option name 'wan'
        list network 'wan'
        list network 'wan6'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

config forwarding
        option src 'lan'
        option dest 'wan'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

config rule 'wg'
        option name 'Allow-WireGuard'
        option src 'wan'
        option dest_port '51820'
        option proto 'udp'
        option target 'ACCEPT'

free

              total        used        free      shared  buff/cache   available
Mem:        2035408      259100     1730912        7580       45396     1725248
Swap:             0           0           0

any specific reason why you're not using stable ?
snapshots are considered betas, and might/will contain bugs.

1 Like

willingness to test?

We need people using main/master to find out new bugs.
Always scaring people to go to stable hurts that.

It is well possible that there is a new memory eating bug that manifests in certain configuration, with certain wifi drivers etc.

5 Likes

No problems at my own routers. So far.

Have you checked with top or htop, that which process seems to eat the memory?
Or which process consumes the CPU?

I have now removed the wifi usb add on MT7921AU (I have to admit it has been behaving strangly for the last month) to see if wifi is a culprit. I left the drivers/firmware for the wifi card still installed, might also try to remove them later.

dont bother - no device , no resources used

1 Like

Because the BT8 is only available as snapshot, as is the mx5500 and the b3000.

I'm not noticing this issue though on any of the above devices

Which one of us missed something....?

1 Like

It looks like that without wifi device and its drivers, there are no issues, LuCI runs as it should. Hopefully, the driver will be improved, otherwise no wifi on my device (I have others access points in the network, so it is not problematic).

Try stronger power adapter like USB-PD laptop charger. Even 35-50W mobile superfast charger may work better. Cheeck with phone that cable is up for the task.

Checks subject of thread, I do not know, according to the subject this is about LuCI performance using snapshot builds.