Help with optimizing my setup for best possible performance in gaming and decrease latency

Ok Kool does it matter where I paste it ?

tthis is cool?

No, the first line should be the one called:
config queue 'eth1' and all the other ones should be indented, so please move the top 5 lines to the bottom, and indent theoption linklayer_advanced '1'`
like the others.

These changes should put the linklayer and per-packet-overhead adjustment on solid footing.

That's hardcore doing it on a mobile.

Move to the top and hit ctrl-K five times, that will remove 5 lines and store them. Then move to the bottom and hit ctrl-U to paste the lines back.

When done hit ctrl-X, verify you want to save with 'y', verify file name by hitting return, and nano will save the file and close out.

3 Likes

Ok boys I think I did it should I reset the router? I'm guessing yeah?

And @moeller0 as for this R7800 SQM settings keep causing bufferbloat 2 u sent me how do I implement those? Do I need too? I'm not sure what u wanted me to do here

I copy and paste the 2 echo hynman provide and hit enter that was it?

You should read the relevant posts in this thread, as I said, I do not have access to an r7800 so will not be able to give detailed instructions.

I did everything that was given to me my performance got worst than before except my upload my upload is the one thing that's consistent everything else is just bad any alternatives or fix?

Well, this is a process and we are not close to finishing it yet.
Could you please post again the output from your current configuration:

  1. cat /etc/config/sqm
  2. tc -s qdisc
  3. the result of a dslreports Speedtest

The goal here is to make your observation that things got worse easier to analyse.

1 Like

Ohhhhhhh lol got you I will post tomorrow morning. Omg thanks for the amount of help

Uhm... Looking at your results in the first post you're within a reasonable difference 15-27 vs 14-30ms which are good results in general. I doubt you're going to see much of difference but we'll see...

Edit: Ahh, i missed that the images you've posted can also be opened as links not just as images.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.4, r7808-ef686b7292
 -----------------------------------------------------
root@OpenWrt:~# cat /etc/config/sqm

config queue 'eth1'
        option qdisc_advanced '0'
        option enabled '1'
        option interface 'eth0.2'
        option upload '29750'
        option debug_logging '0'
        option verbosity '5'
        option qdisc 'cake'
        option linklayer 'ethernet'
        option overhead '22'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option linklayer_adaptation_mechanism 'default'
        option download '0'
        option script 'piece_of_cake.qos'

root@OpenWrt:~# tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root
 Sent 1576510361 bytes 2892541 pkt (dropped 0, overlimit
s 0 requeues 61905)
 backlog 0b 0p requeues 61905
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 
1024 quantum 1514 target 5.0ms interval 100.0ms memory_l
imit 4Mb ecn
 Sent 1576510361 bytes 2892541 pkt (dropped 0, overlimit
s 0 requeues 61905)
 backlog 0b 0p requeues 61905
  maxpacket 1448 drop_overlimit 0 new_flow_count 48104 e
cn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc mq 0: dev eth1 root
 Sent 11247100168 bytes 8474515 pkt (dropped 1, overlimi
ts 0 requeues 282650)
 backlog 0b 0p requeues 282650
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 
1024 quantum 1514 target 5.0ms interval 100.0ms memory_l
imit 4Mb ecn
 Sent 11247100168 bytes 8474515 pkt (dropped 1, overlimi
ts 0 requeues 282650)
 backlog 0b 0p requeues 282650
  maxpacket 1514 drop_overlimit 0 new_flow_count 348246 
ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
qdisc noqueue 0: dev eth1.1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
qdisc cake 801e: dev eth0.2 root refcnt 2 bandwidth 2975
0Kbit besteffort triple-isolate nonat nowash no-ack-filt
er split-gso rtt 100.0ms noatm overhead 22 mpu 64
 Sent 499468205 bytes 830851 pkt (dropped 38617, overlim
its 460419 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 689344b of 4Mb
 capacity estimate: 29750Kbit
 min/max network layer size:           28 /    1500
 min/max overhead-adjusted size:       64 /    1522
 average network hdr offset:           14

                  Tin 0
  thresh      29750Kbit
  target          5.0ms
  interval      100.0ms
  pk_delay         18us
  av_delay         10us
  sp_delay          7us
  backlog            0b
  pkts           869468
  bytes       555377926
  way_inds         5621
  way_miss         4906
  way_cols            0
  drops           38617
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            1
  un_flows            0
  max_len         15140
  quantum           907

qdisc noqueue 0: dev wlan1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
root@OpenWrt:~#

1st dsl test:

2nd:

3rd:

4th

So the upload seems reasonably well controlled, albeit a bit low:
(22.53+21.63+22.76+21.82)/4 = 22.185 Mbps
out of
29.750 * ((1500-20-20)/(1522)) = 28.538 Mbps
theoretically possible, could be an interaction with the docsis request/grant cycle, but bufferbloat seems well controlled. You could try to set the upload limit a bit higher, judging from the NoSQM test in the first post where you saw 34.9 Mbps (with still not terrible but spiky bufferbloat) I would thing that you might be able to go as high as 35000 for the upload shaper rate, but please test this :wink:

Without a download cake instance download rates seem better, if variable:
(197.7+211.3+210.5+209.5)/4 = 207.25 Mbps
The bufferbloat however especially the spikiness seems less than ideal for gaming.
I believe the next step (after trying to increase the upload/egress shaper) should be to optimize the r7800 specific issues, but for that I can not really help you much, so you would need to follow the advice and instructions in the r7800 threads. After that is improved we can go back and try to see whether we can improve the download bufferbloat without having to trade in half of your bandwidth to do so.
Good luck.

I really do need help with the download... Like severely idk how to fix this.... Idk who I could ask or what type of post I need to put can u help me with that please

When I tried to set a limit on download my speed test just crashes

Interesting, what limit did you set and what was the result of the speedtest, any specific error message?

Wait, back up. Your ping in both cases is between 15-30ms -- that's ideal for gaming. Your other stats (bandwidth) in both cases again are way overkill for gaming. I game at 20-30ms ping, and my maximum up and down speeds are 5.6 megs and 600k on my end-of-the-line country DSL connection. Now uploading to YouTube and downloading patches is painful, but that's a different story.

Now, if your games feature streaming video that's essential for mission success, then that's a different story - even then you have a more than adequate connection.

So either I'm missing something in your original post, or you're having trouble in a specific game or something which you forgot to mention. shrug

Well, that is the unloded "ping" with an idle network, if you clock on the images you get to the dslreports detailed results page with more in-depth bufferbloat plots (click on the labels/links "Idle", "Downloading" and "Uploading" for the results from all probes, especially look at up- and downloading, the results are a far cry away from 15-30ms).

2 Likes
root@OpenWrt:~# cat /etc/config/sqm

config queue 'eth1'
        option qdisc_advanced '0'
        option enabled '1'
        option debug_logging '0'
        option verbosity '5'
        option linklayer 'ethernet'
        option overhead '22'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option linklayer_adaptation_mechanism 'default'
        option upload '35000'
        option interface 'eth0.2'
        option download '0'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'

root@OpenWrt:~# tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root
 Sent 493864319 bytes 1025491 pkt (dropped 0, overlimits
 0 requeues 30131)
 backlog 0b 0p requeues 30131
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 
1024 quantum 1514 target 5.0ms interval 100.0ms memory_l
imit 4Mb ecn
 Sent 493864319 bytes 1025491 pkt (dropped 0, overlimits
 0 requeues 30131)
 backlog 0b 0p requeues 30131
  maxpacket 1448 drop_overlimit 0 new_flow_count 21552 e
cn_mark 0
  new_flows_len 0 old_flows_len 0                       
qdisc mq 0: dev eth1 root
 Sent 4256237307 bytes 3039473 pkt (dropped 2, overlimit
s 0 requeues 85306)
 backlog 0b 0p requeues 85306
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 
1024 quantum 1514 target 5.0ms interval 100.0ms memory_l
imit 4Mb ecn
 Sent 4256237307 bytes 3039473 pkt (dropped 2, overlimit
s 0 requeues 85306)
 backlog 0b 0p requeues 85306
  maxpacket 1514 drop_overlimit 0 new_flow_count 96041 e
cn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0                               
qdisc noqueue 0: dev eth1.1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0
qdisc cake 800a: dev eth0.2 root refcnt 2 bandwidth 35Mb
it besteffort triple-isolate nonat nowash no-ack-filter 
split-gso rtt 100.0ms noatm overhead 22 mpu 64
 Sent 2448272 bytes 37543 pkt (dropped 0, overlimits 13 
requeues 0)
 backlog 0b 0p requeues 0
 memory used: 2432b of 4Mb
 capacity estimate: 35Mbit
 min/max network layer size:           28 /    1500
 min/max overhead-adjusted size:       64 /    1522
 average network hdr offset:           14

                  Tin 0
  thresh         35Mbit
  target          5.0ms
  interval      100.0ms
  pk_delay          7us
  av_delay          5us
  sp_delay          5us
  backlog            0b
  pkts            37543
  bytes         2448272
  way_inds            1
  way_miss           99
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows           17
  bk_flows            1
  un_flows            0
  max_len          1514
  quantum          1068

qdisc noqueue 0: dev wlan1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 backlog 0b 0p requeues 0

Dslreport for download seat to 0 are