Xiaomi WiFi Router 3G

i found the error. offloading and wireguard dont work. I disabled offloading in the firewall settings now wireguard is working.

1 Like

Have you opened a bug report regarding this issue on the Flyspray tracker? Because then @nbd might be able to have a look and hopefully fix the issue :slight_smile:

Hi guys.
I installed LEDE on sunday, but my router has only 10% available RAM most of the time.

I looked the processes and there is nothing that shows the high consumption.

What will be the problem?
I have installed Transmission, Network Shares, SQM, HDD Idle, uHTTPd, Dynamic DNS and Adblock.

Thanks for the help and sorry for my english.

Do you really mean available and not free?
Kernel buffers read and write if you access storage device.
Whats your value for buffer?

1 Like

I used this opkgscriptsh plugin, but after the upgrade, this folder /usr/lib/OpenWrtScripts has been deleted.
Whats wrong?

It is completly normal when much read/write occurs than linux uses most of the ram as diskcache and flushes only if other programs will need the memory. Check the cached memory amount with "top" in a ssh session
There is nothing to worry about.

Wifi 2.4 Ghz is now running pretty well with the latest commit.

Thank you nbd and updatete for your efforts.

Only problem left is one of my two usb disk not getting recognized.

xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.

1 Like

Thats my output of free, but i do not use a storage device other than the integrated nand.
I only use sqm, openvpn and luci.

root@OpenWrt_MiR3G:~# free
             total       used       free     shared    buffers     cached
Mem:        253652      79432     174220       1092       5796      20444
-/+ buffers/cache:      53192     200460

Luci is only consistent with buffer and free on my device...

What are your values after restart?

You could try to flush caches with following commands:
ssh -> router:

  • sync (write cached data to disk)
  • echo 3 > /proc/sys/vm/drop_caches
1 Like

Apparently has 175MB in cache:

Mem: 226132K used, 27300K free, 2508K shrd, 1656K buff, 175144K cached
CPU:   0% usr   0% sys   0% nic  98% idle   0% io   0% irq   0% sirq
Load average: 0.17 0.28 0.31 3/81 24641
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
23717  3668 nobody   S     2892   1%   0% /usr/sbin/smbd -F
  136     2 root     IW       0   0%   0% [kworker/1:1]
24641 24633 root     R     1220   0%   0% top
24632  1383 root     S     1136   0%   0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 4401     1 transmis SN    4892   2%   0% transmission-daemon -g /home/transmission -f
 1252     1 root     S     1728   1%   0% /sbin/netifd
 2637     1 root     S     1712   1%   0% /usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
    7     2 root     SW       0   0%   0% [ksoftirqd/0]
  195     2 root     SW       0   0%   0% [kswapd0]
 7826     1 dnsmasq  S     7936   3%   0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
 3437     1 root     S     2620   1%   0% /usr/sbin/uhttpd -f -h /www -r Skyrim -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -C /etc/ssl/mycert.crt -K /etc/ss
 3669     1 root     S     2468   1%   0% /usr/sbin/nmbd -F
 3668     1 root     S     2460   1%   0% /usr/sbin/smbd -F
 1177     1 root     S     2200   1%   0% /sbin/rpcd
 2462     1 root     S     1712   1%   0% /usr/sbin/hostapd -s -P /var/run/wifi-phy1.pid -B /var/run/hostapd-phy1.conf
    1     0 root     S     1556   1%   0% /sbin/procd
 1324     1 root     S     1428   1%   0% /usr/sbin/odhcpd
 3816     1 root     S     1408   1%   0% /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S duckdns -- start
 1160     1 root     S     1276   1%   0% /sbin/logd -S 64
 1356     1 root     S     1208   0%   0% /usr/sbin/crond -f -c /etc/crontabs -l 8
 3966     1 root     S<    1208   0%   0% /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
24614  3816 root     S     1208   0%   0% sleep 600
  657     1 root     S     1204   0%   0% /sbin/ubusd
24633 24632 root     S     1204   0%   0% -ash
 1541  1252 root     S     1204   0%   0% udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -x hostname:Skyrim -C -O 121
 1383     1 root     S     1068   0%   0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 1526  1252 root     S     1032   0%   0% odhcp6c -s /lib/netifd/dhcpv6.script -Ntry -P0 -t120 eth0.2
 3468     1 root     S      972   0%   0% /usr/sbin/vsftpd
 1410     1 root     S      908   0%   0% /usr/bin/hd-idle -d -i 0 -a sda -i 600
  658     1 root     S      904   0%   0% /sbin/askfirst /usr/libexec/login.sh
    8     2 root     IW       0   0%   0% [rcu_sched]
   66     2 root     IW       0   0%   0% [kworker/3:1]
    3     2 root     IW       0   0%   0% [kworker/0:0]
  510     2 root     SW       0   0%   0% [usb-storage]
  196     2 root     IW       0   0%   0% [kworker/2:1]
   14     2 root     SW       0   0%   0% [ksoftirqd/1]
   24     2 root     SW       0   0%   0% [ksoftirqd/3]
   19     2 root     SW       0   0%   0% [ksoftirqd/2]
24512     2 root     IW       0   0%   0% [kworker/u8:2]
24564     2 root     IW       0   0%   0% [kworker/u8:0]
   13     2 root     SW       0   0%   0% [migration/1]
   23     2 root     SW       0   0%   0% [migration/3]
   18     2 root     SW       0   0%   0% [migration/2]
   10     2 root     SW       0   0%   0% [migration/0]
24615     2 root     IW       0   0%   0% [kworker/u8:1]
  386     2 root     SW       0   0%   0% [ubi_bgt0d]
    2     0 root     SW       0   0%   0% [kthreadd]
  484     2 root     SW       0   0%   0% [ubifs_bgt0_1]
   11     2 root     SW       0   0%   0% [cpuhp/0]
  678     2 root     SW       0   0%   0% [jbd2/sda1-8]
  393     2 root     IW<      0   0%   0% [kworker/3:1H]
  391     2 root     IW<      0   0%   0% [kworker/0:1H]
  392     2 root     IW<      0   0%   0% [kworker/1:1H]
  394     2 root     IW<      0   0%   0% [kworker/2:1H]
  255     2 root     IW<      0   0%   0% [pencrypt]
  257     2 root     IW<      0   0%   0% [pdecrypt]
  171     2 root     IW<      0   0%   0% [watchdogd]
  140     2 root     IW<      0   0%   0% [crypto]
  138     2 root     IW<      0   0%   0% [writeback]
  142     2 root     IW<      0   0%   0% [kblockd]
  679     2 root     IW<      0   0%   0% [ext4-rsv-conver]
  508     2 root     SW       0   0%   0% [scsi_eh_0]
  509     2 root     IW<      0   0%   0% [scsi_tmf_0]
 2089     2 root     IW       0   0%   0% [kworker/2:2]

After the flush command:

Mem: 56692K used, 196740K free, 2508K shrd, 816K buff, 8088K cached

Thanks again! :slight_smile:

1 Like

But you shouldn't flush the caches because with the cache you use the unused mem.
So this commands are only for testing!

1 Like

The Hdd data coruption issue may finally have been resolved so there is no need to stay on 4.4 kernel anymore. Can anyone confirm this?
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/generic/pending-4.14/103-MIPS-c-r4k-fix-data-corruption-related-to-cache-coherence.patch;h=3cfbd2ce9169e8eff7a891438753ba8201cf5294;hb=79126770868995faa8656f6687a88d385802e34b

Sometimes my 2.4 network gets an exclamation and no internet signal. What will it be?

Are you using the latest snapshot?

I use this:

OpenWrt SNAPSHOT r6744-751746c / LuCI Master (git-18.111.46781-6280487)

is there any way to configure ports of this route in jumboframe, mtu 9000?

thanks!

After update, i'm trying to install samba, but returned this error:

Installing luci-app-samba (git-18.116.27617-aa6c971-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/luci-app-samba_git-18.116.27617-aa6c971-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-samba:
 * 	samba36-server * 
 * opkg_install_cmd: Cannot install package luci-app-samba.

Package samba36-server don't instaled in my router, and not found in this link: http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/

My version is: OpenWrt SNAPSHOT r6764-d168c2c

http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/samba36-server_3.6.25-10_mipsel_24kc.ipk

What about this one?

Recently there was a kernel bump to 4.14.36, you have to update with the last snapshot or use the --force-depends option.

Fix of hdd corruption works for me! I tried copy 12GB file and download 2 other files on usb disk simultaneously and there was no error after files verification.

2 Likes

USB not work for me.
My hdd case is usb3 + uasp support.

[   13.774387] scsi host0: uas
[   13.778056] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[   13.786491] xhci-mtk 1e1c0000.xhci: @000000000f49b170 0f16c000 00000000 05000000 01078001
[   13.794651] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 2
[   13.803068] xhci-mtk 1e1c0000.xhci: @000000000f49b180 0f16c100 00000000 05000000 01038001
[   35.132932] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[   35.140493] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[   35.146743] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[   35.156529] xhci-mtk 1e1c0000.xhci: ep deq seg = 8f155b80, deq ptr = af152010
[   36.242905] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[   36.250105] scsi 0:0:0:0: Device offlined - not ready after error recovery
[   36.257397] usbcore: registered new interface driver uas

@LesGaR Do you see device? Try to turn hdd power off and on. I had sometimes problems after flashing firmware but don't remember exact log entries.