What's new

CakeQOS CakeQoS-Merlin v2.0.0 alpha

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Status
Not open for further replies.
Right, but there is the process of verifying the version that might need to be checked by a 384.19 user. And Dave mentions 1.0.x, implying there might be something later than 1.0.8 either available or in the works.
I think your question has already been answered here:

 
v1.0.8 was released for 386.1 with updated binaries back in March.
v1.0.7 is the last release with the binaries needed for 384.19 or earlier.
 
Yes, that is correct. The install should have told you your firmware wasn’t supported but installed the 386 branch version 1.0.8. Check the SCRIPT_BRANCH variable in the cake-qos file to confirm it now shows 386 for you instead of master.
Thanks Dave.
Assuming the file I should be looking for is
cake-qos
Then assuming this is where the branch variable is, it says Master.
cat /jffs/addons/cake-qos/cake-qos
readonly SCRIPT_NAME="cake-qos"
readonly SCRIPT_NAME_FANCY="CakeQOS-Merlin"
readonly SCRIPT_BRANCH="master"
readonly SCRIPT_DIR="/jffs/addons/${SCRIPT_NAME}"
readonly SCRIPT_CFG="${SCRIPT_DIR}/${SCRIPT_NAME}.cfg"
readonly SCRIPT_REMOTEDIR="https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/${SCRIPT_BRANCH}"
And lastly a screen cap of where this is in the noted file. See attachment
 

Attachments

  • Cake-QoS_Ver.JPG
    Cake-QoS_Ver.JPG
    76.7 KB · Views: 110
Out of curiosity: based on which value do you calculate the percentage of drops? Maybe you can you could write up the formula. It would be nice to compare.
In the stats section, I was dividing the 'Drops' number by the 'Packets Sent' number and multiplying by 100 for a percentage.

FYI, dropping my bandwidth number from 80 (94%) to 77.5 (91%) improved the drop rate from 1.7% down to 0.5% so I feel like this might be a nice alternate to all the speed tests to tune cake.
 
  • Like
Reactions: MvW
v1.0.8 was released for 386.1 with updated binaries back in March.
v1.0.7 is the last release with the binaries needed for 384.19 or earlier.
I am running 1.0.8 with 384.19. Should I downgrade to 1.0.7? I seem to recall that when I updated to 1.0.8 that cake said the update was available, and I told it to do it. Even now, cake says I have the latest, presumably knowing I have 384.19.
 
Thanks Dave.
Assuming the file I should be looking for is
cake-qos
Then assuming this is where the branch variable is, it says Master.
cat /jffs/addons/cake-qos/cake-qos
readonly SCRIPT_NAME="cake-qos"
readonly SCRIPT_NAME_FANCY="CakeQOS-Merlin"
readonly SCRIPT_BRANCH="master"
readonly SCRIPT_DIR="/jffs/addons/${SCRIPT_NAME}"
readonly SCRIPT_CFG="${SCRIPT_DIR}/${SCRIPT_NAME}.cfg"
readonly SCRIPT_REMOTEDIR="https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/${SCRIPT_BRANCH}"
And lastly a screen cap of where this is in the noted file. See attachment
And this is after running the alpha install command?
Bash:
mkdir -p /jffs/addons/cake-qos && /usr/sbin/curl -s "https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/alpha/cake-qos.sh" -o "/jffs/addons/cake-qos/cake-qos" && chmod 755 /jffs/addons/cake-qos/cake-qos && sh /jffs/addons/cake-qos/cake-qos install
Try it again and capture the output. It should download the old version with the correct branch.
 
I am running 1.0.8 with 384.19. Should I downgrade to 1.0.7? I seem to recall that when I updated to 1.0.8 that cake said the update was available, and I told it to do it. Even now, cake says I have the latest, presumably knowing I have 384.19.
If you are running 384.19 you have to use 1.0.7
 
I would like to report that I sometimes (it doesn't happen everytime, but it does happen daily) have to refresh the page to be able to see the Cake Current Status table with the Cake Up- and Download status. It's not collapsed, there's just empty space below the buttons Apply and Refresh.

Furtermore, I was just wondering, it the Cake Download Statistics section it says 'Packets sent'. Shouldn't this read "Packets received"?

Screenshot_2021-04-14 ASUS Wireless Router RT-AC86U - CakeQOS-Merlin.png
 
I would like to report that I sometimes (it doesn't happen everytime, but it does happen daily) have to refresh the page to be able to see the Cake Current Status table with the Cake Up- and Download status. It's not collapsed, there's just empty space below the buttons Apply and Refresh.
Next time it happens, please check the browser console for errors and the contents of /www/ext/cake-qos/cake_status.js.
Furtermore, I was just wondering, it the Cake Download Statistics section it says 'Packets sent'. Shouldn't this read "Packets received"?
qdiscs are in the business of sending (releasing) packets outbound, so everything is being sent from their perspective (Sent toward the WAN, sent toward the LAN).

The same code generates both the download and upload tables, so I don’t think this is likely to be changed.
 
Next time it happens, please check the browser console for errors and the contents of /www/ext/cake-qos/cake_status.js.

Will do and post the results.

qdiscs are in the business of sending (releasing) packets outbound, so everything is being sent from their perspective (Sent toward the WAN, sent toward the LAN).

The same code generates both the download and upload tables, so I don’t think this is likely to be changed.

Ah, that makes sense. No reason to change it then.

Thanks for your prompt reply.

Best regards,
Marco
 
Well, that didn't take too long:


And the contents of cake_status.js

Code:
var cake_upload_stats={"kind":"pfifo_fast","handle":"0:","root":true,"refcnt":2,"options":{"bands":3,"priomap":[1,2,2,2,1,2,0,0,1,1,1,1,1,1,1,1],"multiqueue":false},"bytes":938291,"packets":909,"drops":0,"overlimits":0,"requeues":0,"backlog":0,"qlen":0};
var cake_download_stats={};
var cake_statstime=1618407013;
 
Well, that didn't take too long:


And the contents of cake_status.js

Code:
var cake_upload_stats={"kind":"pfifo_fast","handle":"0:","root":true,"refcnt":2,"options":{"bands":3,"priomap":[1,2,2,2,1,2,0,0,1,1,1,1,1,1,1,1],"multiqueue":false},"bytes":938291,"packets":909,"drops":0,"overlimits":0,"requeues":0,"backlog":0,"qlen":0};
var cake_download_stats={};
var cake_statstime=1618407013;
Cake isn’t active at all. Check the QoS page.
 
When switching back to the CakeQos-Merlin tab, my stats are back. If it is because spdMerlin is running, maybe you could build in a status message 'Speedtest in progress. Wait x minutes and refresh the page" or something alike? If I remember correctly there's a lockfile in place while spdMerlin is active. I assume it could be detected by CakeQoS-Merlin as well, or am I thinking too simple?
 
When switching back to the CakeQos-Merlin tab, my stats are back. If it is because spdMerlin is running, maybe you could build in a status message 'Speedtest in progress. Wait x minutes and refresh the page" or something alike? If I remember correctly there's a lockfile in place while spdMerlin is active. I assume it could be detected by CakeQoS-Merlin as well, or am I thinking too simple?
Can you post some syslog output showing what’s happening before and after the start cake-qosstatsupdate event? This would be around Wed Apr 14 2021 13:30:13 GMT+0000, per the cake timestamp.
 
Last edited:
Can you post some syslog output showing what’s happening before and after the start cake-qosstatsupdate event? This would be around Wed Apr 14 2021 13:30:13 GMT+0000, per the cake timestamp.

I'm using syslog-ng and have many different filters, so I'll just post three, if you need anything else, let me know:

From spdMerlin.log
Code:
Apr 14 13:10:01 RT-AC86U spdMerlin: Starting speedtest using using auto-selected server for WAN interface
Apr 14 13:10:31 RT-AC86U spdMerlin: Speedtest results - Download: 130.56 Mbps (data used: 138.9 MB) - Upload: 18.04 Mbps (data used: 21.3 MB)
Apr 14 13:10:31 RT-AC86U spdMerlin: Connection quality - Latency: 9.57 ms (1.95 ms jitter) - Packet Loss: 0.0%
Apr 14 13:10:31 RT-AC86U spdMerlin: Starting speedtest using using auto-selected server for VPNC1 interface
Apr 14 13:10:48 RT-AC86U spdMerlin: Speedtest results - Download: 113.58 Mbps (data used: 129.7 MB) - Upload: 16.95 Mbps (data used: 7.7 MB)
Apr 14 13:10:48 RT-AC86U spdMerlin: Connection quality - Latency: 9.79 ms (3.50 ms jitter) - Packet Loss: Not available.
Apr 14 13:10:53 RT-AC86U spdMerlin: Calculated Download speed (141527) Kbps does not exceed 5% threshold of existing value (143608 Kbps)
Apr 14 13:10:53 RT-AC86U spdMerlin: Calculated Upload speed (18643) Kbps does not exceed 5% threshold of existing value (19418 Kbps)
Apr 14 13:40:01 RT-AC86U spdMerlin: Starting speedtest using using auto-selected server for WAN interface
Apr 14 13:40:34 RT-AC86U spdMerlin: Speedtest results - Download: 131.83 Mbps (data used: 157.1 MB) - Upload: 17.92 Mbps (data used: 19.2 MB)
Apr 14 13:40:34 RT-AC86U spdMerlin: Connection quality - Latency: 9.34 ms (4.27 ms jitter) - Packet Loss: 0.0%
Apr 14 13:40:34 RT-AC86U spdMerlin: Starting speedtest using using auto-selected server for VPNC1 interface
Apr 14 13:40:51 RT-AC86U spdMerlin: Speedtest results - Download: 113.88 Mbps (data used: 107.8 MB) - Upload: 16.87 Mbps (data used: 7.6 MB)
Apr 14 13:40:51 RT-AC86U spdMerlin: Connection quality - Latency: 8.75 ms (1.79 ms jitter) - Packet Loss: 0.0%
Apr 14 13:40:56 RT-AC86U spdMerlin: Calculated Download speed (138962) Kbps does not exceed 5% threshold of existing value (143608 Kbps)
Apr 14 13:40:56 RT-AC86U spdMerlin: Setting QoS Upload Speed to 18106 Kbps (was 19418 Kbps)

From custom_script.log

Code:
Apr 14 12:40:58 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: restart qos)
Apr 14 12:41:01 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: restart qos)
Apr 14 12:41:01 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: restart firewall)
Apr 14 12:41:01 RT-AC86U custom_script: Running /jffs/scripts/nat-start
Apr 14 12:41:01 RT-AC86U custom_script: Running /jffs/scripts/firewall-start (args: eth0)
Apr 14 12:41:01 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: restart firewall)
Apr 14 13:40:56 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: restart qos)
Apr 14 13:40:59 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: restart qos)
Apr 14 13:40:59 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: restart firewall)
Apr 14 13:40:59 RT-AC86U custom_script: Running /jffs/scripts/nat-start
Apr 14 13:40:59 RT-AC86U custom_script: Running /jffs/scripts/firewall-start (args: eth0)


From cakeqos.log
Code:
Apr 14 12:09:33 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:09:33 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:09:33 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:10:52 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 12:10:55 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 12:12:12 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:12:12 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:12:12 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:12:18 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:12:18 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:12:18 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:12:30 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:12:30 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:12:30 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:12:39 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:12:39 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:12:39 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:12:47 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 12:12:49 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 12:13:06 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 12:13:06 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 12:13:06 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 12:40:58 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 12:41:01 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 13:40:56 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 13:40:59 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 14:40:56 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 14:40:59 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 15:11:05 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 15:11:08 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 15:21:52 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:21:52 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:21:52 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:27:49 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate

I haven't found any specific log entry at the exact time you mentioned.

My speedchecks are set to 10 and 40 minutes every hour.
 
Last edited by a moderator:
I took the time stamp, ran it through a converter, thinking the output was in CEST. It wasn't. So here we go again:

cakeqos.log
Code:
Apr 14 12:40:58 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 12:41:01 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 13:40:56 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 13:40:59 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 14:40:56 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 14:40:59 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 15:11:05 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 15:11:08 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 15:21:52 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:21:52 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:21:52 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:27:49 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:27:49 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:27:49 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:29:43 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:29:43 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:29:43 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:30:11 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:30:11 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:30:11 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:30:13 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:30:13 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:30:13 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:38:54 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 15:38:54 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 15:38:55 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 15:39:11 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 15:39:14 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 15:41:02 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 15:41:05 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 16:11:06 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 16:11:08 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 17:13:17 RT-AC86U rc_service: httpds 1426:notify_rc start_cake-qosstatsupdate
Apr 14 17:13:17 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 17:13:17 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 19:51:02 RT-AC86U rc_service: httpds 1535:notify_rc start_cake-qosstatsupdate
Apr 14 19:51:02 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 19:51:02 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 20:03:06 RT-AC86U rc_service: httpds 1535:notify_rc start_cake-qosstatsupdate
Apr 14 20:03:06 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 20:03:06 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
Apr 14 20:03:11 RT-AC86U CakeQOS-Merlin: Configuring Cake options...
Apr 14 20:03:14 RT-AC86U custom_config: Appending content of /jffs/configs/cake-qos.conf.add.
Apr 14 20:03:29 RT-AC86U rc_service: httpds 1535:notify_rc start_cake-qosstatsupdate
Apr 14 20:03:29 RT-AC86U custom_script: Running /jffs/scripts/service-event (args: start cake-qosstatsupdate)
Apr 14 20:03:29 RT-AC86U custom_script: Running /jffs/scripts/service-event-end (args: start cake-qosstatsupdate)
 
Status
Not open for further replies.

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top