What's new

AutoBW: Automatically set QoS bandwidth using spdMerlin

  • 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!

Same here. It appears that AutoBW doesn't recognize the new location of spdMerlin stats. Simply move the config and stats back to jffs until it is resolved.
I'm getting the error below due to recent update, what's the quick work around to fix this...where is the new location ?

Code:
ERROR: spdMerlin stats not found.
      Try again in a minute or two.
      If it still fails try running 'spdmerlin' first
 
@Jack Yaz if squidbilly doesn't come back would you ever think of doing your fork of it as a proper release?

Thanks
 
Thank you!!

Quick feedback:

In "real" mode the limits were set as follows:
Download limit was set at 100 Mbps, although it should have been 153.6. I remember this being an issue before with AutoBW.
Upload limit was set at 3.9267578125, but the output of AutoBW was 4.0212. A minor difference that I report just in case it matters.

Cheers!
 
Last edited:
@squidbilly welcome back!!! Hope all is well with you. A few changes were made to the spdMerlin script which wld need update to AutoBW script. @Jack Yaz made a quick fix update to the AutoBW script to temporarily work with the new changes. Maybe you can implement the changes to the beta script you were working on.

Again...welcome back!
 
I am back ... what did I miss? :)
Been a crazy few weeks (even for 2020); you wouldn't believe me if I were to tell you.
Welcome back! Was worried you disappeared. With how 2020 has gone so far, I'm even scared to ask. :eek:
 
Thanks gentlemen. I just had/still got a lot going on personally and professionally (some good and some bad) ... just being pulled in a lot of different directions so I had to cut a few things loose, like my help with AutoBW, at least for now. Thanks to those who picked up the slack. This COVID-19 has been a gamechanger on many fronts.
 
for this to work, autoBW needs speed numbers that bypass qos current limits, no?.
can spdmerlin results do such a thing?
i though that if qos is enabled, the speeds found by spdmerlin would reflect qos effect?
 
for this to work, autoBW needs speed numbers that bypass qos current limits, no?.
can spdmerlin results do such a thing?
i though that if qos is enabled, the speeds found by spdmerlin would reflect qos effect?

when I was using FreshJR Adaptive QOS, spdMerlin saw line speed and so autoBW set the expected speeds. I'm using CakeQOS now and spdMerlin sees the reduced speeds as set by CakeQOS

I switched to CakeQOS on Jun 22 and tried a few different settings till Jul 3
upload_2020-7-8_10-28-26.png
 
Last edited:
This worked for me (08.07.2020):
*Please pre-install spdmerlin via amtm and let it run for 1 Time before following the installation of AutoBW

Install Script with this command ->
Code:
curl "https://raw.githubusercontent.com/jackyaz/AutoBW/master/AutoBW" -o /jffs/scripts/AutoBW && chmod 755 /jffs/scripts/AutoBW

Install "bc" via Entware ->
Code:
opkg install bc

Install "nano" via Entware ->
Code:
opkg install nano

Start Script one time with
Code:
/jffs/scripts/AutoBW

Edit AutoBW for your needs and remove Test Mode
Code:
nano /jffs/scripts/AutoBW

Nano into services-start and add a Cron to let AutoBW adjust QOS speed for example every 10 Hours.
Code:
nano /jffs/scripts/services-start
and add this ->
Code:
cru a AutoBW "0 */10 * * * /jffs/scripts/AutoBW"

Enjoy.

--------EDIT-------

Still getting some Syntax errors with latest stable Merlin release 384.18 and spdmerlin 3.6.1
@Jack Yaz

Code:
TEST MODE: No changes will be made.

              ---------------- SPDMERLIN -------------

                Download (Kbps)       Upload (Kbps)

              -------------------  -------------------

Test  1 of  2       75786.2              35502.1

Test  2 of  2       78551.0              35502.1

Average             77168.6              35502.1

Scale Factors          0.85                 0.85

Scaled Speeds       65593.3              30176.8


              ----------------- QOS ----------------

                Download (Kbps)      Upload (Kbps)

              -------------------  -----------------

Previous              63962.0             25867.0

New (from above)      65593.3             30176.8

[: 25866.9999104: bad number

[: 63961.9999744: bad number

Scaling by              1.026               1.167


              ====================================== DOWNLOAD ======================================

              ----------------- RATE -----------------    ----------------- CEIL -----------------

Class            Previous (Kbps)        New (Kbps)           Previous (Kbps)         New (Kbps)

-----          -------------------  -------------------    -------------------  -------------------

11                     9594.0             9838.7                   63962.0            65593.3

10                     3198.0             3279.6                   63962.0            65593.3

13                    12792.0            13118.3                   63962.0            65593.3

12                    19188.0            19677.4                   63962.0            65593.3

15                     3198.0             3279.6                   63962.0            65593.3

14                     6396.0             6559.1                   63962.0            65593.3

17                     3198.0             3279.6                   63962.0            65593.3

16                     6396.0             6559.1                   63962.0            65593.3


              ======================================= UPLOAD =======================================

              ----------------- RATE -----------------    ----------------- CEIL -----------------

Class            Previous (Kbps)        New (Kbps)           Previous (Kbps)         New (Kbps)

-----          -------------------  -------------------    -------------------  -------------------

(standard_in) 1: syntax error

(standard_in) 1: syntax error

 0                        0.0                0.0                       0.0                0.0

also getting this error without Testmode

Code:
 ---------------- SPDMERLIN -------------

                Download (Kbps)       Upload (Kbps)

              -------------------  -------------------

Test  1 of  4       77312.0              35522.6

Test  2 of  4       78663.7              35512.3

Test  3 of  4       78725.1              35409.9

Test  4 of  4       78776.3              35502.1

Average             78369.3              35486.7

Scale Factors          0.85                 0.85

Scaled Speeds       66613.9              30163.7


              ----------------- QOS ----------------

                Download (Kbps)      Upload (Kbps)

              -------------------  -----------------

Previous              63962.0             25867.0

New (from above)      66613.9             30163.7

[: 25866.9999104: bad number

[: 63961.9999744: bad number

Scaling by              1.041               1.166


              ====================================== DOWNLOAD ======================================

              ----------------- RATE -----------------    ----------------- CEIL -----------------

Class            Previous (Kbps)        New (Kbps)           Previous (Kbps)         New (Kbps) 

-----          -------------------  -------------------    -------------------  -------------------

11                     9594.0             9991.8                   63962.0            66613.9

10                     3198.0             3330.6                   63962.0            66613.9

13                    12792.0            13322.4                   63962.0            66613.9

12                    19188.0            19983.5                   63962.0            66613.9

15                     3198.0             3330.6                   63962.0            66613.9

14                     6396.0             6661.2                   63962.0            66613.9

17                     3198.0             3330.6                   63962.0            66613.9

16                     6396.0             6661.2                   63962.0            66613.9


              ======================================= UPLOAD =======================================

              ----------------- RATE -----------------    ----------------- CEIL -----------------

Class            Previous (Kbps)        New (Kbps)           Previous (Kbps)         New (Kbps) 

-----          -------------------  -------------------    -------------------  -------------------

(standard_in) 1: syntax error

(standard_in) 1: syntax error

 0                        0.0                0.0                       0.0                0.0

Illegal "prio"

Usage: ... qdisc add ... htb [default N] [r2q N]

                      [direct_qlen P]

 default  minor id of class to which unclassified packets are sent {0}

 r2q      DRR quantums are computed as rate in Bps/r2q {10}

 debug    string of 16 numbers each 0-3 {0}


 direct_qlen  Limit of the direct queue {in packets}

... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]

                      [prio P] [slot S] [pslot PS]

                      [ceil R2] [cburst B2] [mtu MTU] [quantum Q]

 rate     rate allocated to this class (class can still borrow)

 burst    max bytes burst which can be accumulated during idle period {computed}

 mpu      minimum packet size used in rate computations

 overhead per-packet size overhead used in rate computations

 linklay  adapting to a linklayer e.g. atm

 ceil     definite upper class rate (no borrows) {rate}

 cburst   burst but for ceil {computed}

 mtu      max packet size we create rate map for {1600}

 prio     priority of leaf; lower are served first {0}

 quantum  how much bytes to serve from leaf at once {use r2q}


TC HTB version 3.3
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

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