Build for Netgear R7800

output:

ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory
ash: write error: No such file or directory

To resolve:

for FILE in /sys/class/net/*; do [ -f "$FILE/queues/rx-0/rps_cpus" ] && echo 3 > $FILE"/queues/rx-0/rps_cpus"; [ -f "$FILE/queues/tx-0/xps_cpus" ] && echo 3 > $FILE"/queues/tx-0/xps_cpus"; done

@locojohn @perceival @RainGater

Can you guys please confirm that in order to get that performance improvement for 4.14 you put this in the local startup:
for FILE in /sys/class/net/*; do echo 3 > $FILE"/queues/rx-0/rps_cpus"; echo 3 > $FILE"/queues/tx-0/xps_cpus"; done

for 4.19 this:
for FILE in /sys/class/net/*; do [ -f "$FILE/queues/rx-0/rps_cpus" ] && echo 3 > $FILE"/queues/rx-0/rps_cpus"; [ -f "$FILE/queues/tx-0/xps_cpus" ] && echo 3 > $FILE"/queues/tx-0/xps_cpus"; done

thank you

Please take the generic R7800 tweaking discussion to the "R7800 exploration" thread, as those tweaks do not have anything specific to do with my build here.

3 Likes

I've checked with build based on latest hnyman's one and indeed there is not a problem with disk swap however no disks are properly mounted at all. /mnt/sdb1 points to some different device and is not listed with mount command:

/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup on /sys/fs/cgroup type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)

Also trying to mount from the command line provides following result:

NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

File system is ext4. Forcing file system is also not working.
Will try to test with pure hnyman's build as well.
4.19 test build is automounting USB drives without problems.

make sure it is before this commit: https://github.com/openwrt/openwrt/commit/4ebc9dc9c4faf8d9abc4197a74b892a66d9c1bcb

it has not been fixed yet as far as i can tell, but the commit breaks the block binary by having it linked to 2 libblkid at once, breaking detection of drives and mounting
edit: fixed with 5f4244150f99d7bf72a96ec4d9c1055386e66b53 so just don't use a build between these 2 commits

and y'all talking about the tx/rx cpus, this is probably shorter and saner...

for FILE in /sys/class/net/*/queues/[rt]x-0/[rx]ps_cpus; do
    [ -w "$FILE" ] && echo 3 > "$FILE" 2>/dev/null
done

it will check if the file is writable before trying to write to it, and suppress invalid arg error messages

2 Likes

That should be fixed with

2 Likes

I've tried to compile with samba4 and without libatomic, libnettle, libgmp and libtasn1 libraries but without those compilation is not successful.

My build has no samba4.

Sure, if you include the large samba4 and dependent packages combo, the size of the image grows quite much. You might try the smaller cifsd that tries to replace most of samba functionality with smaller packages.

But all of that is outside my R7800 build, so you better look into threads about samba and cifsd for more discussion on those packages.

Hnyman, I'm trying to run your latest build, fresh install via tftp, I change the WAN to Pppoe, add my details and save and apply.... However I cannot get any devices to get a IPV4 DHCP lease, static or dynamic.... What am I missing?

Running : OpenWrt 19.07-SNAPSHOT r10784-e33a123140 / LuCI openwrt-19.07 branch git-19.344.41526-af5d665

I am wrong - but it seems that wifi thinks i am in the US.
It is set to DK in LUCI.
I am having trouble using channel 100, and I run this "iw reg get".
Is this a bug?

 iw reg get
global
country DK: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5350 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A), NO-OUTDOOR

phy#1
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)


Don't know how this works but the global settings are set to DK.
I get the same result as you with master and kernel 4.19, but mine is set to SE.

Unfortunately I just had a random reboot with r11734-b085e0586f-20191220. I was hoping that kernel 4.19 would put these behind us :frowning:

Too bad, nothing captured in the logs? Try to get more info and ask in the exploration thread instead.

Yes,

But to it seems that the phy's is using US settings?

I'm currently using the following build:
OpenWrt 19.07-SNAPSHOT r10784-e33a123140

I'm running into a strange problem with my router, for some reason this only happens when I'm accessing xfinity website after logging in to view the bandwidth counter.

root@OpenWrt:~# logread -f
Fri Dec 27 18:40:25 2019 kern.err kernel: [  193.555580] ipq806x-gmac-dwmac 37400000.ethernet eth1: len 1706 larger than size (1536)
Fri Dec 27 18:40:26 2019 kern.err kernel: [  193.795624] ipq806x-gmac-dwmac 37400000.ethernet eth1: len 1706 larger than size (1536)
Fri Dec 27 18:40:26 2019 kern.err kernel: [  194.095959] ipq806x-gmac-dwmac 37400000.ethernet eth1: len 1706 larger than size (1536)
Fri Dec 27 18:40:27 2019 kern.err kernel: [  194.696021] ipq806x-gmac-dwmac 37400000.ethernet eth1: len 1706 larger than size (1536)
Fri Dec 27 18:40:38 2019 kern.alert kernel: [  205.816274] Unable to handle kernel paging request at virtual address adceaffc
Fri Dec 27 18:40:38 2019 kern.alert kernel: [  205.816363] pgd = c0204000
Fri Dec 27 18:40:38 2019 kern.alert kernel: [  205.822435] [adceaffc] *pgd=00000000
Fri Dec 27 18:40:38 2019 kern.emerg kernel: [  205.825132] Internal error: Oops: 5 [#1] SMP ARM

I assume this is probably because I have Jumbo Packet enabled on my computer that I'm accessing it from, but I haven't seen this behavior from any other website or program, so it's a little strange to me.

Anyone have any tips? Should I update to latest and try again?

Just installed the latest kernel 4.19 build and have to say it seems pretty solid. I am currently running my r7800 strictly as an AP. Are there any configuration/services that I would want to leverage since I don't need all the router related services/functionality? (e.g. should I be disabling things like the firewall etc since I'm handling that upstream in my network?)

And if there is a better forum for finding this information - feel free to point me to it!

thanks,

For Jumbo frames to be truly efficient you need to enable it on every device you're using, otherwise you might just aswell turn it off.

1 Like

Good discussion in the r7800 exploration and r7800 performance threads about optimizing performance. Hnyman already has a clean limited number of programs. My two r7800 APs running hnyman 4.19 have all the services in the service drop down turned off and ipv4 DHCP turned off (hardwired to the router via cat 6A cable). Turning off unused low resource programs (firewall) is going to have negligible effect on performance.
See here for CPU tweaks: Netgear R7800 exploration (IPQ8065, QCA9984) - #1929 by ACwifidude

master-r11827-f8424b1b26-20191228-ct

The recent ubus version upgrade two days ago caused a bug for system log, which bug has now been fixed. However, the change also caused some services not to start, e.g. collectd (= LuCI statistics) and nlbwmon. ldir figured out that those fail where the procd init file has a "nice" parameter definition:

I have implemented that workaround in my own build.
Hopefully the underlying bug (in ubus or procd) gets fixed, but until then the workaround is to have the nice definition before the command definition in the procd init file of a service.

EDIT:
seems to be fixed in master. (it was a libubox blobmsg handling error)
master-r11829-e3e939d8e6-20191228-ct

2 Likes

Jumbo frames is enabled because I have a switch between my computer and my homelab, but I don't really need it anywhere else.

This isn't really a problem of efficiency... it's actually crashing the router, so I'm wondering if this is expected to happen or if it's a bug.

Edit: If I understand correctly, it should retry until the frames fit within the 1536, but in this scenario it somehow pushes 1.7KB