With a r7800 the best settings for the balance of throughput and latency on (speed test using master 4.19 ~2 months ago) the following:
fq_codel + simplest.qos + software offloading enabled + more aggressive CPU settings:
fq_codel + simplest_tbf.qos + software offloading enabled + more aggressive CPU settings:
root@OpenWrt:~# echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
root@OpenWrt:~# cat /etc/config/sqm
config queue 'eth0'
option interface 'eth0.2'
option qdisc 'fq_codel'
option qdisc_advanced '0'
option enabled '1'
option download '540000'
option debug_logging '0'
option verbosity '5'
option script 'simplest_tbf.qos'
option linklayer 'none'
option upload '34000'
I usually run with SQM only on the upload side (Same settings as above - just zero for download):