# R7800 performance

**URL:** <https://forum.openwrt.org/t/r7800-performance/15780>\
**Category:** Hardware Questions and Recommendations\
**Created:** [June 18, 2018, 3:45pm UTC](https://forum.openwrt.org/t/r7800-performance/15780 "2018-06-18T15:45:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlfinjc](https://forum.openwrt.org/letter_avatar/mlfinjc/32/5_5575768a8748004e209b776fc1b2916d.png) [@mlfinjc](https://forum.openwrt.org/u/mlfinjc)\
**Post date:** [June 18, 2018, 3:45pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/1 "2018-06-18T15:45:57Z")

</div>

With latest snapshot or even latest release, wifi tops out at ~300 mbps as does wired from lan-\>wan. I ran top and CPU is not even close to being maxed out when I do a speedtest, so doesn't seem like a lack of hardware forwarding as the issue if I analyzed correctly. Where is the bottle neck here?

I put the stock firmware back on and then I see 620mbps wifi, and 920mbps wired. (1 gbps cable modem)

Could there be any mis-configuration on my part? Please help I want openwrt firmware back.

---

<div class="post-metadata">

**Author:** ![phinn](https://forum.openwrt.org/user_avatar/forum.openwrt.org/phinn/32/4034_2.png) [@phinn](https://forum.openwrt.org/u/phinn)\
**Post date:** [June 18, 2018, 4:49pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/2 "2018-06-18T16:49:03Z")

</div>

My understanding is with OpenWrt 18.06 or Master builds, kernel 4.14 has flow offloading enabled and you should have no problem reaching 900Mbits. It won't be quite as fast as OEM firmware because of proprietary hardware NAT but it should be close.

Did you try hnyman's latest build: [Build for Netgear R7800](https://forum.openwrt.org/t/build-for-netgear-r7800/316)

---

<div class="post-metadata">

**Author:** ![hnyman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/hnyman/32/19_2.png) [@hnyman](https://forum.openwrt.org/u/hnyman)\
**Post date:** [June 18, 2018, 4:50pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/3 "2018-06-18T16:50:16Z")

</div>

> [@phinn](#):
>
> has flow offloading enabled

Needs to be toggled on in firewall config.

---

<div class="post-metadata">

**Author:** ![phinn](https://forum.openwrt.org/user_avatar/forum.openwrt.org/phinn/32/4034_2.png) [@phinn](https://forum.openwrt.org/u/phinn)\
**Post date:** [June 18, 2018, 4:51pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/4 "2018-06-18T16:51:52Z")

</div>

Thanks. Try that, enable it, and report back on your speed, curious how it does 🙂 My cable is "only" 500Mbits.

---

<div class="post-metadata">

**Author:** ![ddwrt\_refugee](https://forum.openwrt.org/letter_avatar/ddwrt_refugee/32/5_5575768a8748004e209b776fc1b2916d.png) [@ddwrt\_refugee](https://forum.openwrt.org/u/ddwrt_refugee)\
**Post date:** [June 21, 2018, 1:01am UTC](https://forum.openwrt.org/t/r7800-performance/15780/5 "2018-06-21T01:01:50Z")

</div>

I'm running a vanilla master build with software flow offloading, and I noticed that the CPU wasn't running at its fastest frequency while benchmarking WAN\<-\>LAN. Speeds consistently topped out at 600Mbps on a gigabit link.

| Governor | Consistent Speed | Power Consumption while idle |
| --- | --- | --- |
| ondemand (default) | ~600 Mbps | \<= 6.9W |
| ondemand (tweaked) | ~850Mbps | \<= 6.9W |
| performance | ~850Mbps | \>= 6.9W |

Tweaked settings for ondemand scheduler:  
echo 35 \> /sys/devices/system/cpu/cpufreq/ondemand/up\_threshold  
echo 10 \> /sys/devices/system/cpu/cpufreq/ondemand/sampling\_down\_factor

Hope this helps.

---

<div class="post-metadata">

**Author:** ![atownlede](https://forum.openwrt.org/letter_avatar/atownlede/32/5_5575768a8748004e209b776fc1b2916d.png) [@atownlede](https://forum.openwrt.org/u/atownlede)\
**Post date:** [August 11, 2018, 1:45am UTC](https://forum.openwrt.org/t/r7800-performance/15780/6 "2018-08-11T01:45:45Z")

</div>

Enabling software flow offloading in firewall config: helped with fq\_codel/simple, but not with cake/piece\_of\_cake

Tweaking ondemand governor settings as suggested by @ddwrt_refugee helped with both cake/piece\_of\_cake and fq\_codel/simple, with or without flow offloading. With both governor tweaks and SW flow offloading, I got line speeds with fq\_codel/simple.

Hardware+software flow offloading made no difference vs. software-only. Can't tell if R7800 hardware is supported?

---

<div class="post-metadata">

**Author:** ![hnyman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/hnyman/32/19_2.png) [@hnyman](https://forum.openwrt.org/u/hnyman)\
**Post date:** [August 11, 2018, 3:05am UTC](https://forum.openwrt.org/t/r7800-performance/15780/7 "2018-08-11T03:05:31Z")

</div>

Hardware offloading is not supported. It only works for just a few targets. MT762x or so.

---

<div class="post-metadata">

**Author:** ![hnyman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/hnyman/32/19_2.png) [@hnyman](https://forum.openwrt.org/u/hnyman)\
**Post date:** [August 11, 2018, 5:13am UTC](https://forum.openwrt.org/t/r7800-performance/15780/8 "2018-08-11T05:13:38Z")

</div>

> [@ddwrt\_refugee](#):
>
> up\_threshold

Has anybody tracked down, where the original values come from ? It is likely in Linux kernel, but have the values been tweaked for specific processors? Or just for a generic architecture family?

If the original values have been drafted for basic calculation tasks, it might well be that sporadic irq driven network traffic needs different values like discussed above.

EDIT:  
Based on a brief look at the kernel docs, it might be that the default 95% originates from the Linux kernel itself and no CPU-family specific tailoring has been made.

[https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt](https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt)

> - up\_threshold:

Might quite well be that the default for Openwrt should be changed, as the IRQ driven load by network traffic may not generate constant 95% load.

35% sounds maybe a bit low, though.

EDIT2:  
Looks like the default values are hard-coded to Linux. no config options:

This line [https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/cpufreq/cpufreq\_ondemand.c?h=linux-4.14.y#n372](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/cpufreq/cpufreq_ondemand.c?h=linux-4.14.y#n372)

```plaintext
dbs_data->up_threshold = MICRO_FREQUENCY_UP_THRESHOLD;

```

simply sets the value set in [https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/cpufreq/cpufreq\_ondemand.c?h=linux-4.14.y#n27](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/cpufreq/cpufreq_ondemand.c?h=linux-4.14.y#n27)

```plaintext
#define MICRO_FREQUENCY_UP_THRESHOLD (95)

```

Same for sampling\_down\_factor.

---

<div class="post-metadata">

**Author:** ![hnyman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/hnyman/32/19_2.png) [@hnyman](https://forum.openwrt.org/u/hnyman)\
**Post date:** [August 11, 2018, 6:30am UTC](https://forum.openwrt.org/t/r7800-performance/15780/9 "2018-08-11T06:30:32Z")

</div>

> [@atownlede](#):
>
> Enabling software flow offloading in firewall config: helped with fq\_codel/simple, but not with cake/piece\_of\_cake

One other thing is the division of IRQs on CPU cores. By default all IRQs get assigned to core0, so the load is not split evenly. You might look into R7800 IRQ discussion in R7800 exploration thread, and e.g. to irqbalance

(also manually doing IRQ splitting to cores is possible.)

---

<div class="post-metadata">

**Author:** ![tolga9009](https://forum.openwrt.org/user_avatar/forum.openwrt.org/tolga9009/32/2029_2.png) [@tolga9009](https://forum.openwrt.org/u/tolga9009)\
**Post date:** [October 13, 2018, 6:30am UTC](https://forum.openwrt.org/t/r7800-performance/15780/10 "2018-10-13T06:30:52Z")

</div>

> (also manually doing IRQ splitting to cores is possible.)

I found pinning eth0 / eth1 on their respective CPUs to be a crucial step. It gave me better performance in bufferbloat tests, opposed to running irqbalance without any configuration.

I've used this doc as a guideline: [https://digitalpubliclibraryofamerica.atlassian.net/wiki/spaces/TECH/pages/24510493/Using+irqbalance+and+SMP+IRQ+affinity](https://digitalpubliclibraryofamerica.atlassian.net/wiki/spaces/TECH/pages/24510493/Using+irqbalance+and+SMP+IRQ+affinity)

However, I had issues with irqbalance in the past (like 8 - 10 months ago), leading to spontaneous device reboots. Was running it on my NBG6817 though, not on my R7800. Did anyone else run into it here?

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 4, 2018, 12:46pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/11 "2018-11-04T12:46:54Z")

</div>

This setting does not help with my WAN - LAN speeds. I'm only getting 300mbps maximum with the latest version of hymnan. Any other solution? ☹ Thanks

Furthermore in earlier versions of hymnan the setting Tweaked settings for ondemand scheduler worked but after a while the device freezed and rebooted:  
echo 35 \> /sys/devices/system/cpu/cpufreq/ondemand/up\_threshold  
echo 10 \> /sys/devices/system/cpu/cpufreq/ondemand/sampling\_down\_factor

---

<div class="post-metadata">

**Author:** ![enri](https://forum.openwrt.org/letter_avatar/enri/32/5_5575768a8748004e209b776fc1b2916d.png) [@enri](https://forum.openwrt.org/u/enri)\
**Post date:** [November 8, 2018, 1:23am UTC](https://forum.openwrt.org/t/r7800-performance/15780/12 "2018-11-08T01:23:19Z")

</div>

Have you turn on Flow Offloading in Firewall page? I recently set up my R7800 by resetting all the settings, change only the Flow Offloading and the 2 line u mentioned.

with no SQM  
My own Lan test peak at 700Mbps at dslreports  
Comcast's XMT device Lan test reach 960Mbps

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 8, 2018, 3:26pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/13 "2018-11-08T15:26:58Z")

</div>

Thanks for the hint.

1. The following are the standard settings:  
 ![](https://i.imgur.com/ohvo15Z.png)

With this settings i am only getting 250-300mbps:  
 ![](https://i.imgur.com/witvTpk.png)

1. As soon as i activate software and / or hardware flow offloading the speed is much better (maximum @430mbps)  
 ![](https://i.imgur.com/uShbQG6.png)  
Speed:  
 ![](https://i.imgur.com/0bQTLxq.png)  
Which one is the best setting? I suppose hardware offloading, or? Thanks a lot for your hint!

I also tried other speed tests and direct downloads, the result is the same as seen in the speed test above (measuring network speed)

//Edit:

hnyman just said that only software flow offloading is available for the r7800

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 11, 2018, 10:51am UTC](https://forum.openwrt.org/t/r7800-performance/15780/14 "2018-11-11T10:51:20Z")

</div>

Thanks again for your hint but somehow after a lot of traffic load (Steam Downloads) and a lot of connections the R7800 crashed and restarted twice. I had the same issue after altering the up\_trhreshold and sampling\_down\_factor after a while (2-3 days). Without altering this settings i never had the issue ☹ I will try to reproduce the issue and gather some logs.

Anyone else with an idea how to fix this?

---

<div class="post-metadata">

**Author:** ![enri](https://forum.openwrt.org/letter_avatar/enri/32/5_5575768a8748004e209b776fc1b2916d.png) [@enri](https://forum.openwrt.org/u/enri)\
**Post date:** [November 11, 2018, 10:57am UTC](https://forum.openwrt.org/t/r7800-performance/15780/15 "2018-11-11T10:57:57Z")

</div>

single stream is always around 400-450 for me  
using dslreport speed test can reach more than 700 at least

i also got crash, i just updated his latest no ct ver of firmware, i think using the old non ct should be the fix for crashing (i am not entirely sure but seems yes)

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 11, 2018, 6:20pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/16 "2018-11-11T18:20:03Z")

</div>

The version master-r8447-1b4b942bce-20181110-ath10k crashed again today... ☹ i will try now master-r8410-900005ee75-20181104-c

What about the master version? does it use ct or ath10k?

---

<div class="post-metadata">

**Author:** ![locojohn](https://forum.openwrt.org/user_avatar/forum.openwrt.org/locojohn/32/7142_2.png) [@locojohn](https://forum.openwrt.org/u/locojohn)\
**Post date:** [November 11, 2018, 9:28pm UTC](https://forum.openwrt.org/t/r7800-performance/15780/17 "2018-11-11T21:28:51Z")

</div>

It uses ct by default, but it's really easy to switch with 'make menuconfig'. I wonder why is it being an issue for you? I use yesterday's master with ath10k firmware driver and everything is rock solid and the speeds on 802.11ac are 850 mbit/s on average.

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 12, 2018, 8:46am UTC](https://forum.openwrt.org/t/r7800-performance/15780/18 "2018-11-12T08:46:23Z")

</div>

not sure but it seems like enri experienced the same issue. What is your line speed? Maybe this is related to a higher bandwidth / more traffic on WAN?

Do you know how i can trace some log files when the error occurs?

---

<div class="post-metadata">

**Author:** ![hnyman](https://forum.openwrt.org/user_avatar/forum.openwrt.org/hnyman/32/19_2.png) [@hnyman](https://forum.openwrt.org/u/hnyman)\
**Post date:** [November 12, 2018, 9:02am UTC](https://forum.openwrt.org/t/r7800-performance/15780/19 "2018-11-12T09:02:22Z")

</div>

With gigabit speeds, you should likely forget about CPU frequency scaling "ondemand", and simply set the "performance" scaling governor.

Your crashes may be due to something going wrong with the scaling.

In general, there not been reports of R7800 crashing, so your case(s) seem rather unique, so far.

And you should try to separate the wifi part vs. generic router fixed line part. ath10k-ct or old ath10k have impact just on wifi. The interesting part si, if the crashes are due to the base system or the wifi firmware/driver.

---

<div class="post-metadata">

**Author:** ![treefiddy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/treefiddy/32/22227_2.png) [@treefiddy](https://forum.openwrt.org/u/treefiddy)\
**Post date:** [November 12, 2018, 10:35am UTC](https://forum.openwrt.org/t/r7800-performance/15780/20 "2018-11-12T10:35:08Z")

</div>

Thanks for your attention. But as a beginner i don't know how to troubleshoot this / gather logs. After the device crashes i have to turn it off and after the next start the systemlogs are gone... How do you do it to save logs?

Furthermore i did a complete factory reset and installed master-r8410-900005ee75-20181104-c. I'm using Adblock, DDNS, Dual Stack (ipv4 and ipv6) with software flow offloading enabled but **without** changing the ondemand scheduler. I will try to reproduce the crash today.

[Next page](https://forum.openwrt.org/t/r7800-performance/15780.md?page=2)
