What's new

FlexQoS FlexQoS 1.2.4 - Flexible QoS Enhancement Script for Adaptive QoS

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

I'm pushing an update to develop branch to try to figure out what's wrong in this scenario. It reduces the wait from 5 to 3 minutes and will force a qos restart if 3 minutes are reached. It also logs extra info to the syslog while it's waiting. Would be interested in what appears in the log when this timeout is reached.

I just rebooted by AC86U and cannot reproduce this problem.
Should I set me syslog to debug or which one to help you with my events?
 
Should I set me syslog to debug or which one to help you with my events?
No, just normal logging level. You'll see extra messages like this:
Code:
QoS state: Classes=8 | Filters=55 | HTB root qdiscs=2
Except I expect them to be 0, 0, 0 when you're waiting.
 
Adaptive QoS isn't initializing properly it seems. There's a known issue posted in the 386.1 thread post #2, but it isn't clear how widespread the problem is. I could add a qos restart after the 5 minute delay if it would help. Next time it gets into one of these waiting states, login via ssh and run tc qdisc ls and then service restart_qos. If FlexQoS finishes normally within a minute, that will be a positive result. I haven't seen this behavior yet myself, so I'm not sure what it looks like, so post the output of the tc command to confirm my suspicions.
Dave, that did the trick, started almost immediately.

Just one more thing I have noted. It is not just the script is not running, the charts on the Classification tab are also missing, although the connections are being classified.
 
Dave, that did the trick, started almost immediately.

Just one more thing I have noted. It is not just the script is not running, the charts on the Classification tab are also missing, although the connections are being classified.
If the htb qdiscs and classes aren’t being created, there will be no data for the charts to pull from. So it’s expected behavior if adaptive QoS isn’t starting correctly.
 
I've viewed pages 10-19 in this thread and haven't seen this issue brought up and don't know who to blame :p @dave14305 or @Jack Yaz

I have FlexQoS and YazFi installed.

When I click on [Adaptive QoS] > [FlexQos] it immediately goes to [Guest Network] > [YazFi] but only shows the FlexQos GUI. Same thing if I click on [Guest Network] > [YazFi] only shows the FlexQos GUI.

The YazFi GUI is gone! I am able to SSH/start the YazFi script at the command line and can see that it works, just no GUI.

@Jack Yaz gotta wonder if @dave14305 trying to take over?

Additional note: I never see any graphical output/results. Doesn't look like FlexQos is recording any results.
 

Attachments

  • Web capture_6-2-2021_12529_192.168.44.1.jpeg
    Web capture_6-2-2021_12529_192.168.44.1.jpeg
    79.1 KB · Views: 103
Last edited:
You know what to search for then!
 
I've viewed pages 10-19 in this thread and haven't seen this issue brought up and don't know who to blame :p @dave14305 or @Jack Yaz

I have FlexQoS and YazFi installed.

When I click on [Adaptive QoS] > [FlexQos] it immediately goes to [Guest Network] > [YazFi] but only shows the FlexQos GUI. Same thing if I click on [Guest Network] > [YazFi] only shows the FlexQos GUI.

The YazFi GUI is gone! I am able to SSH/start the YazFi script at the command line and can see that it works, just no GUI.

@Jack Yaz gotta wonder if @dave14305 trying to take over?

Additional note: I never see any graphical output/results. Doesn't look like FlexQos is recording any results.
sounds like /tmp/menuTree.js has got messed up. You could try manually editing it to correct the entries for the relevant userX.asp from /www/user
 
sounds like /tmp/menuTree.js has got messed up. You could try manually editing it to correct the entries for the relevant userX.asp from /www/user
Yikes! o_O Sounds a bit difficult without some specific guidance.

If I were to uninstall BOTH scripts is there a preferred order of reinstallation that might avoid the incorrect entries?

Edit: I nano'ed into /tmp/menuTree.js. Interesting scrolling through the lines of code, but don't have a clue what to do. Could you copy/paste an example of the relevant/good lines of code. (I'm willing to learn to troubleshoot this)
 
Last edited:
Yikes! o_O Sounds a bit difficult without some specific guidance.

If I were to uninstall BOTH scripts is there a preferred order of reinstallation that might avoid the incorrect entries?

Edit: I nano'ed into /tmp/menuTree.js. Interesting scrolling through the lines of code, but don't have a clue what to do. Could you copy/paste an example of the relevant/good lines of code. (I'm willing to learn to troubleshoot this)
Code:
grep -E user[0-9]+ /tmp/menuTree.js
All your tab are belong to us.
 
Code:
grep -E user[0-9]+ /tmp/menuTree.js
All your tab are belong to us.
I uninstalled both scripts, FlexQoS and YazFi. Rebooted then installed YazFi first, rebooted, waited several hours then installed FlexQoS -- rebooted. (Typically I was installing FlexQoS first since it came first in the ordering with amtm). Seems to be working, will let then settle down and see how they behave in a few hours.

I will try the code if they seem to be misbehaving again. Thanx!
 
Last edited:
I am using Flexqos latest version on firmware 386, it works well but in the traffic graphs it gives me the upload data traffic and that's it. It's normal?
 
Hey @dave14305 - been having no issues since that one occasion (which I believe was simply qos not running when it should have been which appears to be an issue with 386.1).

Quick question:

When I switch between stable and develop I noticed there is a change in the minimums for both download and upload for lots of groups.

Maximums are all 100%, only minimums have changed.

I am assuming this is intentional?

STABLEvsDEVELOP.png
 
Hey @dave14305 - been having no issues since that one occasion (which I believe was simply qos not running when it should have been which appears to be an issue with 386.1).

Quick question:

When I switch between stable and develop I noticed there is a change in the minimums for both download and upload for lots of groups.

Maximums are all 100%, only minimums have changed.

I am assuming this is intentional?

View attachment 30451
Look up
 
I am using Flexqos latest version on firmware 386, it works well but in the traffic graphs it gives me the upload data traffic and that's it. It's normal?
No. Post the results of running flexqos debug over ssh.
 
Hey @dave14305 - been having no issues since that one occasion (which I believe was simply qos not running when it should have been which appears to be an issue with 386.1).

Quick question:

When I switch between stable and develop I noticed there is a change in the minimums for both download and upload for lots of groups.

Maximums are all 100%, only minimums have changed.

I am assuming this is intentional?

View attachment 30451
If you switch from develop to stable, the rates reset to defaults because the setting name is different and the name used in develop doesn’t exist in the stable code, and part of the conversion from stable to develop is to delete the old setting to conserve space in the settings file.

If you’re switching from stable to develop after February 4, this scrambling should not be happening.

EDIT: scrambling would happen since you may still have a bad flexqos_bwrates setting in custom_settings.txt from before the Feb 4 fix. So yes, set them properly again on develop and Apply, and it should be OK from now on.
 
FlexQoS v1.1.0 released 2020-12-13

Debug date : 2021-02-07 13:43:08+0100
Router Model : DSL-AC68U
Firmware Ver : 386.01_0-gnuton0_beta1
DPI/Sig Ver : 2.0.1 / 2.216
WAN iface : ppp0
tc WAN iface : eth0
IPv6 : disabled
Undf Prio : -1
Down Band : 0
Up Band : 0
***********
Net Control : 1:10
Work-From-Home: 1:14
Gaming : 1:16
Others : 1:17
Web Surfing : 1:15
Streaming : 1:11
File Downloads: 1:13
Game Downloads: 1:12
***********
Custom rates disabled with Automatic Bandwidth mode!
***********
iptables settings: <192.168.1.3/4>>both>>>040050>2
-o br0 -d 192.168.1.3/4 -m mark --mark 0x80040050/0xc03fffff -j MARK --set-mark 0x8004ffff/0x3fffff
-o ppp0 -s 192.168.1.3/4 -m mark --mark 0x40040050/0xc03fffff -j MARK --set-mark 0x4004ffff/0x3fffff
***********
appdb rules: <000000>6<00006B>6<0D0007>5<0D0086>5<0D00A0>5<12003F>4<040050>2<13****>4<14****>4<1A****>5
filter add dev br0 protocol all prio -1 u32 match mark 0x80000000 0xc000ffff flowid 1:17
filter add dev eth0 protocol all prio -1 u32 match mark 0x40000000 0xc000ffff flowid 1:17
filter add dev br0 protocol all prio -1 u32 match mark 0x8000006B 0xc03fffff flowid 1:17
filter add dev eth0 protocol all prio -1 u32 match mark 0x4000006B 0xc03fffff flowid 1:17
filter add dev br0 protocol all prio -1 u32 match mark 0x800D0007 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio -1 u32 match mark 0x400D0007 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio -1 u32 match mark 0x800D0086 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio -1 u32 match mark 0x400D0086 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio -1 u32 match mark 0x800D00A0 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio -1 u32 match mark 0x400D00A0 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio -1 u32 match mark 0x8012003F 0xc03fffff flowid 1:15
filter add dev eth0 protocol all prio -1 u32 match mark 0x4012003F 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio -1 u32 match mark 0x80040050 0xc03fffff flowid 1:11
filter add dev eth0 protocol all prio -1 u32 match mark 0x40040050 0xc03fffff flowid 1:11
filter add dev br0 protocol all prio -1 u32 match mark 0x80130000 0xc03f0000 flowid 1:15
filter add dev eth0 protocol all prio -1 u32 match mark 0x40130000 0xc03f0000 flowid 1:15
filter add dev br0 protocol all prio -1 u32 match mark 0x80140000 0xc03f0000 flowid 1:15
filter add dev eth0 protocol all prio -1 u32 match mark 0x40140000 0xc03f0000 flowid 1:15
filter add dev br0 protocol all prio -1 u32 match mark 0x801A0000 0xc03f0000 flowid 1:13
filter add dev eth0 protocol all prio -1 u32 match mark 0x401A0000 0xc03f0000 flowid 1:13
 
Undf Prio : -1
Please post the output of
Code:
tc filter show dev br0

Also your iptables rule is not good. 192.168.1.3/4 is probably not what you intended (192.0.0.0 to 207.255.255.255). And you’re also taking Web Streaming which is already in Streaming, and reassigning it to Streaming. Not productive.

Using Automatic Bandwidth mode is not usually a good idea either. You have better control by setting the bandwidth manually on the QoS page.
 
I have two linux boxes that often work in streaming. I created a rule for both IP addresses are 192.168.1.3 and 192.168.1.4 ......

Now I have changed configuration by creating two prepared rules, one for each linux box. The bandwidth if I put it in manual, then the system slows down; in automatic instead it's fine. Despite this, I only ever have the green upload line in the charts.

I put the new debug below


FlexQoS v1.1.0 released 2020-12-13

Debug date : 2021-02-07 16:04:22+0100
Router Model : DSL-AC68U
Firmware Ver : 386.01_0-gnuton0_beta1
DPI/Sig Ver : 2.0.1 / 2.216
WAN iface : ppp0
tc WAN iface : eth0
IPv6 : disabled
Undf Prio : 2
Down Band : 0
Up Band : 0
***********
Net Control : 1:10
Work-From-Home: 1:14
Gaming : 1:16
Others : 1:17
Web Surfing : 1:15
Streaming : 1:11
File Downloads: 1:13
Game Downloads: 1:12
***********
Custom rates disabled with Automatic Bandwidth mode!
***********
iptables settings: <192.168.1.3>>both>>>040050>2<192.168.1.4>>both>>>040050>2
-o br0 -d 192.168.1.3 -m mark --mark 0x80040050/0xc03fffff -j MARK --set-mark 0x8004ffff/0x3fffff
-o ppp0 -s 192.168.1.3 -m mark --mark 0x40040050/0xc03fffff -j MARK --set-mark 0x4004ffff/0x3fffff
-o br0 -d 192.168.1.4 -m mark --mark 0x80040050/0xc03fffff -j MARK --set-mark 0x8004ffff/0x3fffff
-o ppp0 -s 192.168.1.4 -m mark --mark 0x40040050/0xc03fffff -j MARK --set-mark 0x4004ffff/0x3fffff
***********
appdb rules: <000000>6<00006B>6<0D0007>5<0D0086>5<0D00A0>5<12003F>4<13****>4<14****>4<1A****>5
filter change dev br0 prio 2 protocol all handle 828::800 u32 flowid 1:17
filter change dev eth0 prio 2 protocol all handle 828::800 u32 flowid 1:17
filter add dev br0 protocol all prio 2 u32 match mark 0x8000006B 0xc03fffff flowid 1:17
filter add dev eth0 protocol all prio 2 u32 match mark 0x4000006B 0xc03fffff flowid 1:17
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0007 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio 15 u32 match mark 0x400D0007 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0086 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio 15 u32 match mark 0x400D0086 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio 15 u32 match mark 0x800D00A0 0xc03fffff flowid 1:13
filter add dev eth0 protocol all prio 15 u32 match mark 0x400D00A0 0xc03fffff flowid 1:13
filter add dev br0 protocol all prio 20 u32 match mark 0x8012003F 0xc03fffff flowid 1:15
filter add dev eth0 protocol all prio 20 u32 match mark 0x4012003F 0xc03fffff flowid 1:15
filter change dev br0 prio 22 protocol all handle 802::800 u32 flowid 1:15
filter change dev eth0 prio 22 protocol all handle 802::800 u32 flowid 1:15
filter change dev br0 prio 23 protocol all handle 804::800 u32 flowid 1:15
filter change dev eth0 prio 23 protocol all handle 804::800 u32 flowid 1:15
filter change dev br0 prio 2 protocol all handle 828::802 u32 flowid 1:13
filter change dev eth0 prio 2 protocol all handle 828::802 u32 flowid 1:13
 

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