cake-autorate
cake-autorate copied to clipboard
Field Report for cake-autorate 3.0.0 on Archer C7
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
, thenservice cake-autorate stop
andservice 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:
- An Archer C7 is just a wimpy router by today's standards.
- 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.
- Dropping the cake-autorate ping_interval helps with base CPU usage when not transferring data
- Sending/receiving data at 75mbps seems to use 100% of the CPU, even with cake-autorate and SQM turned off.
- To do: The v3.0 branch instructions should point to its own branch, not "master"
Thanks, and congratulations!