Hi ACwifidude,
Your 2102 NSS build very very good for R7800, I got Lan internet speed ~930M near my ISP speed, thanks.

But when I try on EA8500, not work correct at initial stage.

Fast catchup here, the governor changes does not apply to NSS, maybe potentially on the firewall side... BUT i'm fairly certain firewall is also handled by the NSS drivers.. So that would mean that performance scaling only applies to running applications directly towards to cpu such as luci/etc.

Little side note: Warning would be useful regarding software flow offloading. Software flow offloading completely bypasses the NSS drivers making you use your main CPU rather than using your NSS cores.
So i highly suggest anyone to keep software flow offload disabled and do not touch it at all.

1 Like

Another great note: I suggest replacing htop with something else called: Netdata.
It is a bit heavier on the disk but it comes with great detail and accuracy reading across the entire system.
Plus you can customize it to monitor anything you want basically including setting up alarms for long term monitoring..

Link: https://openwrt.org/packages/pkgdata/netdata

Thanks again for the explantation and help on that. I've made some test and right now I'm reaching about 700mbps on my Internet connection.
The latency and bufferbloat is another story for me - is it possible to change those startup setting for cake to get less bufferbloat and less latency while gaming? I was testing it yesterday on Warzone online game and find out that I have packet drops... is it possible to turn on SQM for QoS while gaming?
I can see that in your first post you typed " Luci SQM and normal SQM config doesn’t work. Have to use custom config." - is it still relevant? How then I can change SQM config for gaming and get less latency/bufferbloat? I found also this topic, is it accurate in my case? - Ultimate SQM settings: Layer_cake + DSCP marks (New Script!) - #283 by segal_72

Thanks in advance for your reply.

You will lose the NSS offloading if you use cake.

The way you are doing it right now means that it will use raw CPU power to process ingress/egress (download/upload) rather than using the NSS cores. This is because NSS cores don't understand the current configurations within SQM. The only way to solve this is by creating a config within SQM that NSS can understand.

Thanks for this info. Are you able to help me with that? This should be changed within the startup config, which I pasted before or it should be totally different configuration file/script? I was thinking about make # on the specific lines to turn them off and turn on while gaming etc.

What you could do is add this to the location where all the configs are located ( for testing ):

2 Likes

So in this scenario it will be - /etc/config/system ?
Should I somehow start this script from startup config or it will automatically run after router reboot ?

You have to import that with SQM, you have to find out where the files for SQM are located, place it in there, then make SQM find that config. Then select that config within SQM(luci) and then set the correct information in the other page aka ingress/egress.

With SQM files i mean specifically QoS files such as layer_cake/simple/simplest.qos/etc.

I sit here with a question though..
@quarky gave some information regarding NSS qdiscs:

nssbf
nssbfifo
nssblackhole
nsscodel
nsshtb
nsspfifo
nssprio
nssred
nsstbl (tbf?)
nsswfq
nsswrr
nsswed

Now where can i obtain information regarding all these qdiscs?
For example:
nssblackhole seems interesting.
nssred seems interesting.
nsswfq seems very interesting.

Thanks @JayJax . I will dig into and learn more about that and make some tests :slight_smile:
Will keep this updated or ask more if I will struggle some bumps on my road :wink:

Sure thing!
I have not tested this.. But...
Go to SSH then do: cd /usr/lib/sqm
Then do: wget https://raw.githubusercontent.com/BlackBookOfficial/SQM/main/nss.qos

From there you have to figure it out yourself haha

--EDIT:
I just did it myself and seems to show up, but i'm not quite sure if it will exactly work.
The way you can possibly test this is by setting ingress/egress super low lets say 10Mbit aka 10240kbit. Then update to higher values to see if updating works properly too.

1 Like

Perfect! Many thanks. You think I should disable NSS script from my startup config, so it won't mess around? Or it stops working once I will turn on SQM on QoS feature from gui ? As I understood it is cake, not fs_codel, so the proper one should be selected in SQM ?

I made first test and it seems to be much worse :wink:

I highly suggest you to remove the lines in startup script yes. Then restart your router then enable the SQM script.

Just a reminder that CPU policy tweaks should not work at all when you want to work with NSS, i tried many tweaks so far that is known around the boards and nothing seems to do anything at all.
Maybe there are some ways to maybe tweak NSS??? Which remains unknown to me for the moment.

The NSS cores are locked at the max frequency (ex: 800mhz for ipq8065).

For NSS builds the more aggressive CPU settings help slightly with things run by the main CPUs (wifi / similar)

So I played a little with the settings. I've deleted NSS config from startup which I had before and change to Governor Tweaks as @ACwifidude mentioned.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

# Ondemand Governor Tweaks
echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 800000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 20 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 60 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 1000000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

# Performance Governor
#echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
#echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor

exit 0

Then I turned on SQM for Qos with setting like below:
obraz

I did it all the time for my WAN interface, it is correct?

After that I made a test and it seems it worked only for Upload (but worked :slight_smile: )

Yeah i still remember a post with @quarky about the speed of it and some issue with frequencies hence it is locked 800mhz. But i have another question.
Now i'm doing a bit of work with the SQM package trying to add in the requirements for NSSFQ_Codel, but i now getting errors which show signs of IPT issue. Now i found out that kmod-sched is missing....
Now the problem: kmod-sched is available in the list but can't be installed because of kernel difference.
Oh oh??