Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Report for cake-autorate 3.0.0 on Archer C7 #228

Open
richb-hanover opened this issue Jul 8, 2023 · 8 comments
Open

Field Report for cake-autorate 3.0.0 on Archer C7 #228

richb-hanover opened this issue Jul 8, 2023 · 8 comments

Comments

@richb-hanover
Copy link
Contributor

richb-hanover commented Jul 8, 2023

Using cake-autorate 3.0.0 on Archer C7 running OpenWrt 22.03.5.

  • I had an earlier version running, so I manually uninstalled with rm -rf /root/cake-autorate, then service cake-autorate stop and service cake-autorate disable
  • I went to the v3.0 branch in the Github repo
  • I used the instructions in INSTALLATION.md to retrieve cake-autorate_setup.sh from the Github repo.
  • I ran the installer as instructed, and noticed that it had installed 3.1.0-PRERELEASE
  • I re-downloaded the installation script, substituting v3.0 for master in the URL
  • I ran the installer, and was rewarded with a confirmation of 3.0.0

I then edited config.primary.sh to set the interface names and speeds (ifb4eth0.2 and eth0.2 for DL and UL on Archer C7) Results:

a) I ran the script manually (./cake-autorate.sh) and saw it used 100% of the CPU according to htop running in a separate window with an idle link.

b) I turned off logging (output_processing_stats, output_load_stats, output_reflector_stats, debug set to zero; output_cake_changes set to 1) and still saw 100% CPU use with an idle link

c) I dropped reflector_ping_interval_s to 1.0, and the CPU utilization sat around 30-40% with an idle link. When I ran a speed test (speedtest.net over my 75/75 mbps fiber uplink), CPU jumped to 100%. The test results showed most of expected speed.

d) I stopped cake-autorate. CPU dropped to 5-8%. I re-ran the speedtest, and with SQM/cake enabled, CPU jumped to 100%

e) I turned off SQM on the interface and re-ran the speedtest. CPU still jumped to 100%, however I think the speedtest showed slightly higher speeds.

f) I did not attempt to fine-tune any latency measurements - I don't think the Archer C7 is suitable for cake-autorate.

TL;DR:

  1. An Archer C7 is just a wimpy router by today's standards.
  2. I think I may have measured wrong in my report of a couple months ago. The default settings of cake-autorate seem to use 100% of the CPU on the Archer C7. Even after turning off most logging output, it presents a heavy CPU load.
  3. Dropping the cake-autorate ping_interval helps with base CPU usage when not transferring data
  4. Sending/receiving data at 75mbps seems to use 100% of the CPU, even with cake-autorate and SQM turned off.
  5. To do: The v3.0 branch instructions should point to its own branch, not "master"

Thanks, and congratulations!

@bairhys
Copy link

bairhys commented Jul 9, 2023

I have an Archer C7 and only use it as an access point to increase coverage due to weak cpu. For my wan, I use a Belkin RT3200/Linksys E8450 with cake-autorate. My cake-autorate settings are standard except for using tsping. On a 80Mbps dl, cpu is between 50-75%. Idles at about 25%. I haven't compared routers lately but I think a Belkin RT3200/Linksys E8450 would work great on your 75/75 mbps connection. Wifi performance is great too.

@bairhys
Copy link

bairhys commented Jul 9, 2023

Here's my Belkin RT3200 load stats over a few days. At the end, can see where cake-autorate wasn't running due to a config error.

image

@lynxthecat
Copy link
Owner

lynxthecat commented Jul 9, 2023

@richb-hanover thanks a lot for your detailed and helpful report. It seems that cake-autorate can be made to run on an Archer C7, but since even cake on its own saturates the CPU at sub-100Mbits/s, anyone in this position may want to upgrade to a newer router like the RT3200.

And @bairhys whilst the CPU use is appreciable, what's encouraging about your helpful load graph is that it's always comfortably below 2.0 using the two-core RT3200.

@rany2 the link in the installation instructions for installing v3.0.0 is still master:

https://github.com/lynxthecat/cake-autorate/blob/v3.0/INSTALLATION.md

Best way to fix this?

@richb-hanover
Copy link
Contributor Author

@lynxthecat @bairhys Thanks for the comments. I only posted the Archer C7 results because I mentioned its (poor) performance with earlier versions of cake-autorate. I believe that cake-autorate is now optimized as much as makes sense.

I currently use a D-Link DIR-878 (for my WAN). I guess I'll have to install cake-autorate on it and create another field report. And then I should install the Belkin RT3200 that I have waiting in the wings.

Thanks.

@rany2
Copy link
Collaborator

rany2 commented Jul 9, 2023

@richb-hanover thanks a lot for your detailed and helpful report. It seems that cake-autorate can be made to run on an Archer C7, but since even cake on its own saturates the CPU at sub-100Mbits/s, anyone in this position may want to upgrade to a newer router like the RT3200.

And @bairhys whilst the CPU use is appreciable, what's encouraging about your helpful load graph is that it's always comfortably below 2.0 using the two-core RT3200.

@rany2 the link in the installation instructions for installing v3.0.0 is still master:

https://github.com/lynxthecat/cake-autorate/blob/v3.0/INSTALLATION.md

Best way to fix this?

I've released 3.0.1 to address this.

@rany2
Copy link
Collaborator

rany2 commented Jul 9, 2023

I'll make a script to automate this task. The current way of making releases is too error-prone.

@lynxthecat
Copy link
Owner

Thanks @rany2. By the way what would you recommend as the best way to install v3.0.1? I need to provide installation instructions to give to @richb-hanover for the forum.

@rany2
Copy link
Collaborator

rany2 commented Jul 9, 2023

@lynxthecat

wget -O /tmp/cake-autorate_setup.sh https://raw.githubusercontent.com/lynxthecat/cake-autorate/v3.0/setup.sh
sh /tmp/cake-autorate_setup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants