Posted: Tue Jun 23, 2020 0:39 Post subject: Help diagnosing slowdown issue
Hi all,
R6400v1 running DD-WRT v3.0-r43171 std (05/16/20)
Router is an OpenVPN client, running as a gateway with SPI firewall and a couple of basic iptables rules, and is running DNSMasq.
Intermittently (daily or so), ping to and through the router (from internal subnet) slows to as much as 950ms. Once I can get into the web manager (takes a minute or more to fully load) I notice that CPU load and RAM usage are normal (both less than 10%).
Only one client is generally connected when this occurs, and not performing any expensive operations (e.g. bittorrent).
Rebooting resolves the issue.
Nothing in syslog is very helpful. I actually disabled syslog yesterday to rule that out as a culprit. I'll re-enable now so I'll be able to provide logs when it next happens.
Any advice on narrowing down the cause? Specific log settings, etc?
Thanks!
Last edited by looselyhuman on Tue Jun 23, 2020 5:14; edited 1 time in total
Joined: 21 Jan 2017 Posts: 1782 Location: Illinois Moderator
Posted: Tue Jun 23, 2020 3:47 Post subject:
running a VPN client on ANY router is going to eat CPU & Ram. That is the first suspect to look at and try turning off. Only the strongest 1.5ghz+ routers can handle a VPN, and even then at limited speeds...
Then it could be a botched wifi security setting, you should only be using WPA2 ccmp-128 AES.
Also what are you running in the Additional Dnsmasq Options under the services tab? Are you running any other scripts on the router?
All of these would be things to look over. _________________ FORUM RULES
running a VPN client on ANY router is going to eat CPU & Ram. That is the first suspect to look at and try turning off. Only the strongest 1.5ghz+ routers can handle a VPN, and even then at limited speeds...
Then it could be a botched wifi security setting, you should only be using WPA2 ccmp-128 AES.
Also what are you running in the Additional Dnsmasq Options under the services tab? Are you running any other scripts on the router?
All of these would be things to look over.
Cool, thanks. Questions:
VPN is running fine, satisfactory performance (20mb/s would be more than enough), for hours or sometimes 2 days - then poof. Would dd-wrt report low cpu/ram usage when that's not the case?
It's reporting less than 10% on both, even when the issue occurs and ping jumps to 900ms.
When it's not having the issue, ping is 1ms to router, 12ms to next internet hop. I've used bittorrent for hours without issue, then have it slow down later that night when there was no activity.
I want to reproduce once more before making changes, then will disable OpenVPN to see if any change.
I have 5ghz disabled. 2.4ghz security is WPA2-PSK CCMP-AES.
One more thing: When the issue occurs, it affects local traffic through the router as well (ping to router ~900ms, ping to subnet 1 ~900ms, ping to first internet hop[VPN] ~920ms).
Joined: 16 Mar 2019 Posts: 353 Location: Szczecin, Poland EU
Posted: Tue Jun 23, 2020 10:19 Post subject:
You can try to diagnose this problem. Check UPNP function is enabled, try to disable dnsmasq for tests, spi firewall, sfe. If it's only problem with connection (high ping or similar) check condition of lan cables. You can restart ethernet interface in computers and routers. If this steps can't solve problem you can permanently restore defaults on router and reconfigure it. Generally you can find problems step by step and test device.
Joined: 08 May 2018 Posts: 14125 Location: Texas, USA
Posted: Tue Jun 23, 2020 15:17 Post subject:
I guess I need to post a tcp tweaks how-to. There is also information in the router slowdown wiki, but most of those have been adjusted since that wiki was written. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
I guess I need to post a tcp tweaks how-to. There is also information in the router slowdown wiki, but most of those have been adjusted since that wiki was written.
Yes please
Thanks all - I am still waiting for it to repro. So far I just have some screenshots with it running under load and no load. One thing I did change (shouldn't have), just because I couldn't find any information regarding performance, was to disable the Shortcut Forwarding Engine - the description makes it sound pretty resource intensive..? So, if it doesn't happen again, possibly related?