i have installed nlbwmon app using opkg install nlbwmon luci-app-nlbwmon.
The problem is that it works for few days and then it stops collecting data. It shows the data on administration panel but it only shows the data to the point when it stucks. Restarting the service helps, then the app updates the accounting perdion until it hangs again. How can i start troubleshoot the issue to see what causes this?
Tue Oct 4 10:14:17 2022 daemon.err nlbwmon[2586]: The netlink receive buffer size of 524288 bytes will be capped to 180224 bytes
Tue Oct 4 10:14:17 2022 daemon.err nlbwmon[2586]: by the kernel. The net.core.rmem_max sysctl limit needs to be raised to
Tue Oct 4 10:14:17 2022 daemon.err nlbwmon[2586]: at least 524288 in order to sucessfully set the desired receive buffer size!
Tue Oct 4 10:14:17 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of lan (br-lan)
Tue Oct 4 10:14:18 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of loopback (lo)
Tue Oct 4 10:14:21 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of wan (wan)
Do you think those daemon.err events might be something related to nlbwmon hangs?
sysctl shows/sets kernel parameters. sysctl -w net.core.rmem_max=524288 updates the kernel UDP receive buffer maximum size which is set at 180224 bytes and must be increased to 524288 bytes. You should also add sysctl -w net.core.rmem_default=524288 to set the default size, and you might want to see if the errors disappear first by running each of these commands before making permanent changes.
You could also place these commands into a sysctl.conf file that will be incorporated by the init script on startup which executes well before rc.local.
You can see the kernel values used by sysctl for the net.core values by running sysctl -a | grep net.core.
I have no idea why nlbwmon uses the default values considering there are many threads surrounding this topic with nlbwmon, that's above my head and not pursued, but I am pretty sure there is a valid reasoning.
Tue Oct 4 10:14:17 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of lan (br-lan)
Tue Oct 4 10:14:18 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of loopback (lo)
Tue Oct 4 10:14:21 2022 user.notice nlbwmon: Reloading nlbwmon due to ifup of wan (wan)
This is a normal response from nlbwmon. It uses a hotplug script to trigger a reload of nlbwmon whenever an ifup of a specified interface is detected.
Fri Oct 7 01:56:14 2022 daemon.err nlbwmon[2540]: Netlink receive failure: Out of memory
Fri Oct 7 01:56:14 2022 daemon.err nlbwmon[2540]: Unable to dump conntrack: No buffer space available
Fri Oct 7 07:40:49 2022 daemon.err nlbwmon[2540]: Netlink receive failure: Out of memory
Fri Oct 7 07:40:49 2022 daemon.err nlbwmon[2540]: Unable to dump conntrack: No buffer space available
I am using Linksys WRT3200ACM. I have 32GB flashdrive connected where I store nlbwmon database. This is df -h: