Ansuel
May 18, 2019, 5:24pm
1616
think is ubuntu that changed something (as i used the same usb to load the live disto)
neheb
May 18, 2019, 5:45pm
1617
Try testing unbuffered reads.
Ansuel
May 18, 2019, 5:58pm
1618
tested again with the router and same result (different md5 )
root@No-More-Lag-Router:~# time md5sum /dev/sda
c9ac3cf180fff57ed95974734ac9d483 /dev/sda
real 8m 4.02s
user 4m 52.74s
sys 2m 7.07s
Since some people have experienced that the R7800 crashes after receiving oversized frames (or what it thinks are oversized frames) I would like to point out that running kernel 4.19 fixes this for me. I've been running 4.19 for a couple of days now with @chunkeey 's patch , and while I've had plenty of warnings in the logs about oversized frames there have been no crashes.
I wasn't able to compile an image with the latest kernel update , so the patch will need to be refreshed. This appears to be because of the following changes in 4.19.44 .
hnyman
May 21, 2019, 5:00pm
1621
The relevant file from which the logged error materialises:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c?h=linux-4.19.y
Two guesses about the fix in 4.19:
Neither of those commits has yet been backported to also 4.14
But sounds great if 4.19 would fix that error.
1 Like
I have an issue with cpu scaling. If I set performance scaling via ssh I get 900+ MB. However if I add it to etc/rc.local I only get around 500-550MB down even though ssh shows it's running in performance mode and cpu is max frequency. ondemand is also slower. What I added to etc/rc.local.
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
Screenshots so you can get an ideah of what I mean.
That did seem to help. Much easier than pushing ssh commands after every reboot or fiddling with the ondemand frequencies.
I seem to be unable to boot any firmware compiled after the kernel bump to 4.14.120 on my R7800.
I only get a blinking LAN1 led and orange power led with no network interfaces running.
https://github.com/openwrt/openwrt/commit/0f6b944c923537b9bc08da23f363b409d1e564b3 works fine.
Can anyone reproduce this?
I tested with both sysupgrade and tftp factory.
also, Iuci+uhttpd has been really unstable for me with it failing to handle maybe 50% of requests. Can never get a full system information page to load properly, and logging in takes 2 or 3 tries.
Update: It's the procd update commit, the latest one, https://github.com/openwrt/openwrt/commit/62940df3a9b6d5af2b33013efaf0bc72e5b23972
slh
May 30, 2019, 1:41am
1627
Kernel 4.14.120 (r10012-5c742c86ef) is running fine on my nbg6817.
I can confirm it is not booting for me either: r10086-62940df3a9 .
hnyman
May 30, 2019, 6:09am
1629
I noticed the non-boot with my ar71xx build yesterday evening but did not yet investigate. Seems like the procd change affects targets widely.
Bug had been reported as
opened 10:34PM - 29 May 19 UTC
closed 06:50AM - 30 May 19 UTC
flyspray
*mgondium:*
Current trunk (reboot-10086-g62940df3a9) bricks TPLINK 1043ND v1, t… wo devices.
<code>
U-Boot 1.1.4 (Sep 15 2009 - 09:41:38)
AP83 (ar9100) U-boot 0.0.11
DRAM:
sri
32 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Autobooting in 1 secondsar7100>
ar7100> boot
Unknown command 'boot' - try 'help'
ar7100>
U-Boot 1.1.4 (Sep 15 2009 - 09:41:38)
AP83 (ar9100) U-boot 0.0.11
DRAM:
sri
32 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Autobooting in 1 seconds## Booting image at bf020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Looking for OpenWrt image... found at 0xbf022000
Decompressing kernel... done!
Starting kernel at 80060000...
[ 0.000000] Linux version 4.14.121 (user@debian-c2q-x64) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10016-c4e3fde486)) #0 Wed May 29 15:57:35 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9132 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=TL-WR1043ND console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 26968K/32768K available (3624K kernel code, 183K rwdata, 780K rodata, 268K init, 204K bss, 5800K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007897] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.094149] pid_max: default: 32768 minimum: 301
[ 0.099047] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105646] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.115534] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.125398] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.132088] NET: Registered protocol family 16
[ 0.138233] MIPS: machine is TP-LINK TL-WR1043ND
[ 0.447883] clocksource: Switched to clocksource MIPS
[ 0.454205] NET: Registered protocol family 2
[ 0.459651] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.466626] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.473035] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.479586] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.485430] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.492032] NET: Registered protocol family 1
[ 0.501752] Crashlog allocated RAM at address 0x1f00000
[ 0.508521] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.521817] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.527635] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.547670] io scheduler noop registered
[ 0.551655] io scheduler deadline registered (default)
[ 0.557105] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.563951] console [ttyS0] disabled
[ 0.587552] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12500000) is a 16550A
[ 0.596253] console [ttyS0] enabled
[ 0.596253] console [ttyS0] enabled
[ 0.603273] bootconsole [early0] disabled
[ 0.603273] bootconsole [early0] disabled
[ 0.616004] m25p80 spi0.0: found m25p64, expected m25p80
[ 0.621446] m25p80 spi0.0: m25p64 (8192 Kbytes)
[ 0.626982] 5 tp-link partitions found on MTD device spi0.0
[ 0.632642] Creating 5 MTD partitions on "spi0.0":
[ 0.637470] 0x000000000000-0x000000020000 : "u-boot"
[ 0.644147] 0x000000020000-0x00000019cba0 : "kernel"
[ 0.651592] 0x00000019cba0-0x0000007f0000 : "rootfs"
[ 0.657577] mtd: device 2 (rootfs) set to be root filesystem
[ 0.663387] 1 squashfs-split partitions found on MTD device rootfs
[ 0.669632] 0x000000450000-0x0000007f0000 : "rootfs_data"
[ 0.677631] 0x0000007f0000-0x000000800000 : "art"
[ 0.684156] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.692270] Realtek RTL8366RB ethernet switch driver version 0.2.4
[ 0.817901] rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
[ 0.824646] rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
[ 1.064755] libphy: rtl8366rb: probed
[ 1.069321] libphy: Fixed MDIO Bus: probed
[ 1.409749] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 1.418208] NET: Registered protocol family 10
[ 1.427582] Segment Routing with IPv6
[ 1.431468] NET: Registered protocol family 17
[ 1.436643] 8021q: 802.1Q VLAN Support v1.8
[ 1.446734] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.455546] Freeing unused kernel memory: 268K
[ 1.460055] This architecture does not have kernel memory protection.
[ 2.557895] random: fast init done
awk: /proc/cpuinfo: No such file or directory
grep: /proc/net/dev: No such file or directory
grep: /proc/net/dev: No such file or directory
grep: /proc/cmdline: No such file or directory
grep: /proc/net/dev: No such file or directory
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
/etc/preinit: line 0: can't open '/dev/null': No such file or directory
[ 130.887960] random: crng init done
</code>
Edit
Possibly fixed with
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=6a92eb5b382860017fd00cd05350a648c4a4ac56
which changes procd with
https://git.openwrt.org/?p=project/procd.git;a=commitdiff;h=ade00ca585a49c8478bf60eb24ce385676be37a4
facboy
June 5, 2019, 9:12pm
1630
does anybody feel up to updating this for the current kernels?
slh
June 5, 2019, 10:05pm
1632
No, those changes hven't been merged.
Still running the dev git patch for MiB counters (i've turned them off with swconfig too)
Quite nice uptime and no load avg.
09:50:52 up 57 days, 13:37, load average: 0.00, 0.00, 0.00
Only thing I've seen in the logs so far is that the official firmware crashed maybe 5 times but it's nothing I really noticed.
Pedro
June 15, 2019, 12:12am
1634
is this still relevant on current trunk:
echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
both path don't exist on my device.
just upgraded my line to 200mbits and piece of cake cant keep up.
what is the most up to date script that tweaks performance for the R7800?
cwbsw
June 15, 2019, 2:47pm
1635
what's the meaning of it ?
Does it means layer 2 switching is processed by cpu ?
ls /sys/devices/system/cpu/cpufreq/
policy0 policy1
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
performance
is performance governor set instead of ondemand?
with 200mbit plan here i have to use simplest.tbf or cake cuts my speed ~half