Modify

Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#6842 closed defect (worksforme)

Compcache broke ath9k wireless on TL-WR1043ND

Reported by: ylxu72@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

Basic info:

  • KAMIKAZE (bleeding edge, r19951)
  • Linux version 2.6.32.9 (ylxu@…) (gcc version 4.3.3 (GCC))
  • TP-Link TL-WR1043ND
  • kmod-compcache - 2.6.32.9-ar71xx-1+0.5.4-1 - Driver for compressed ram swap device

Step to re-produce:

  1. opkg install kmod-compcache
  2. /etc/init.d/compcache restart
  3. mount a usb driver to WR1043ND with a big enough file (> 100 MBytes)
  4. try to download the big file through wifi to client pc
  5. wifi connection stopped after 1-2 minutes, and cannot reconnect to WR1043ND again
  6. ssh remotely to WR1043ND is ok, and nothing special in dmesg
  7. in ssh shell, running "wifi down; wifi up", after it wifi client can reconnect to WR1043ND again

If you turn off compcache, issue in step 5 don't recur again.

Attachments (0)

Change History (8)

comment:1 Changed 8 years ago by thepeople

Please try again on the latest version, we also need more info on how your wireless is setup.

comment:2 Changed 8 years ago by ylxu72@…

I'm now re-compiling the newest version, and will report back the result later. Wireless configuration (/etc/config/wirelss) is beneath:

config wifi-device  radio0
	option type     mac80211
	option channel  1
	option macaddr	94:0c:ed:xx:xx:xx
	option hwmode	11ng
	option htmode	HT40
	list ht_capab	SHORT-GI-40
	list ht_capab	DSSS_CCK-40
	# REMOVE THIS LINE TO ENABLE WIFI:
	option disabled 0

config wifi-iface
	option device   radio0
	option network  lan
	option mode     ap
	option ssid     OpenWrt
	option key	xxxxxxxxxx
	option encryption psk2

comment:3 follow-up: Changed 8 years ago by ylxu72@…

Upgrade to r20156, the issue is still here. By ssh remote accessing to the router, I find out the hostapd process was disappeared, so the issue should be read as: when compcache started, it will kill running process.

comment:4 in reply to: ↑ 3 Changed 8 years ago by drent

Replying to ylxu72@…:

Upgrade to r20156, the issue is still here.

You should try

logread

and

cat /proc/ramzswap0

/etc/config/compcache

for stats when this happend. And please post your in:

/etc/config/compcache

comment:5 Changed 8 years ago by ylxu72@…

I cannot reproduce the same issue after copy 5GiB from router to client pc, but ssh connections were disconnected for several times, and dropbear daemon process was killed later and I cannot ssh to router any more.

So my conclusion is compcache make the system unstable and kill active processe randomly, it don't broke wireless but kill hostapd sometimes.

/proc/ramzswap:

root@OpenWrt:/etc/init.d# cat /proc/ramzswap
DiskSize:	    3072 kB
NumReads:	     470
NumWrites:	     506
FailedReads:	       0
FailedWrites:	       0
InvalidIO:	       0
NotifyFree:	       0
ZeroPages:	      39
GoodCompress:	      74 %
AvCompression:	      41 %
NoCompress:	      11 %
PagesStored:	     464
PagesUsed:	     146
OrigDataSize:	    1856 kB
ComprDataSize:	     579 kB
MemUsedTotal:	     584 kB
}}}[[BR]]

/etc/config/compcache:[[BR]]
{{{
config compcache
	option 'enabled'	'1'
	option 'size_kbytes'	'3072'
	option 'backup_dev'	''
}}}[[BR]]




}}}

comment:6 Changed 8 years ago by ylxu72@…

The issue recurred after upload 100MB from client pc to router mounted usb-disk (ext4 filesystem). By remotely ssh access to the router, I find out hostapd was killed.

root@OpenWrt:/proc# cat ramzswap
DiskSize:	    3072 kB
NumReads:	     267
NumWrites:	     314
FailedReads:	       0
FailedWrites:	       0
InvalidIO:	       0
NotifyFree:	       0
ZeroPages:	      16
GoodCompress:	      74 %
AvCompression:	      39 %
NoCompress:	       7 %
PagesStored:	     298
PagesUsed:	      90
OrigDataSize:	    1192 kB
ComprDataSize:	     354 kB
MemUsedTotal:	     360 kB

root@OpenWrt:/proc# ps -ef            
  PID USER       VSZ STAT COMMAND
    1 root      1324 S    init       
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   41 root         0 SW   [sync_supers]
   43 root         0 SW   [bdi-default]
   45 root         0 SW   [kblockd/0]
   70 root         0 SW   [kswapd0]
   71 root         0 SW   [aio/0]
   72 root         0 SW   [crypto/0]
   84 root         0 SW   [mtdblockd]
   90 root         0 SW   [ar71xx-spi]
  224 root         0 SW   [ipolldevd]
  278 root         0 SWN  [jffs2_gcd_mtd3]
  292 root      1316 S    /bin/sh /etc/init.d/rcS S boot 
  293 root      1324 S    init       
  296 root      1316 S    logger -s -p 6 -t sysinit 
  314 root      1312 S    klogd 
  327 root       692 S    /sbin/hotplug2 --override --persistent --set-worker /
  495 root         0 SW   [cfg80211]
  508 root      1544 S    /usr/sbin/pppd plugin rp-pppoe.so mtu 1492 mru 1492 n
  534 root         0 SW   [khubd]
  615 root         0 SW   [phy0]
  791 root         0 SW   [scsi_eh_0]
  792 root         0 SW   [usb-storage]
 1166 root      1064 S    /usr/sbin/dropbear -p 1022 -P /var/run/dropbear.1.pid
 1352 root       968 S    vsftpd 
 1354 nobody     796 S    /usr/bin/tinydns 
 1366 nobody    1992 S    /usr/bin/dnscache 
 1391 root         0 SW   [jbd2/sda1-8]
 1392 root         0 SW   [ext4-dio-unwrit]
 1464 root      2556 S N  smbd -D 
 1468 root      1320 S    /usr/sbin/udhcpd /etc/udhcpd.conf 
 1493 root      2260 S    lua -lluci.lucid -e luci.lucid.start() 
 1499 root      3392 S    /usr/sbin/collectd -f 
 1507 root      3456 S    /usr/sbin/openvpn --syslog openvpn(custom_config) --w
 1512 root      1320 S    watchdog -t 5 /dev/watchdog 
 1515 root      3392 S    /usr/sbin/collectd -f 
 1516 root      3392 S    /usr/sbin/collectd -f 
 1517 root      3392 S    /usr/sbin/collectd -f 
 1518 root      3392 S    /usr/sbin/collectd -f 
 1710 root       748 S    /usr/sbin/ntpclient -i 600 -s -l -D -p 123 -h 0.openw
 2628 root      1124 S    /usr/sbin/dropbear -p 1022 -P /var/run/dropbear.1.pid
 2629 root      1328 S    -ash 
 2663 root      1124 S    /usr/sbin/dropbear -p 1022 -P /var/run/dropbear.1.pid
 2664 root      1328 S    -ash 
 2678 root      1316 R    ps -ef 

root@OpenWrt:/proc# free
              total         used         free       shared      buffers
  Mem:        29348        28004         1344            0         1620
 Swap:         3064          784         2280
Total:        32412        28788         3624

root@OpenWrt:/proc# cat /proc/meminfo
MemTotal:          29348 kB
MemFree:            1344 kB
Buffers:            1620 kB
Cached:             5168 kB
SwapCached:          456 kB
Active:             4836 kB
Inactive:           5912 kB
Active(anon):       1744 kB
Inactive(anon):     2600 kB
Active(file):       3092 kB
Inactive(file):     3312 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:          3064 kB
SwapFree:           2280 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          3624 kB
Mapped:             1360 kB
Shmem:               384 kB
Slab:                  0 kB
SReclaimable:          0 kB
SUnreclaim:            0 kB
KernelStack:         392 kB
PageTables:          300 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       17736 kB
Committed_AS:       7192 kB
VmallocTotal:    1048372 kB
VmallocUsed:         664 kB
VmallocChunk:    1022096 kB

root@OpenWrt:/proc# logread | tail
Mar 20 11:06:11 OpenWrt daemon.info hostapd: wlan0: STA 00:14:78:xx:xx:xx IEEE 802.11: authenticated
Mar 20 11:06:11 OpenWrt daemon.info hostapd: wlan0: STA 00:14:78:xx:xx:xx IEEE 802.11: associated (aid 1)
Mar 20 11:06:11 OpenWrt daemon.info hostapd: wlan0: STA 00:14:78:xx:xx:xx WPA: pairwise key handshake completed (RSN)
Mar 20 11:11:20 OpenWrt daemon.info hostapd: wlan0: STA 00:14:78:xx:xx:xx IEEE 802.11: deauthenticated due to local deauth request
Mar 20 11:26:04 OpenWrt daemon.info hostapd: wlan0: STA 00:21:5c:xx:xx:xx IEEE 802.11: authenticated
Mar 20 11:26:04 OpenWrt daemon.info hostapd: wlan0: STA 00:21:5c:xx:xx:xx IEEE 802.11: associated (aid 1)
Mar 20 11:26:04 OpenWrt daemon.info hostapd: wlan0: STA 00:21:5c:xx:xx:xx WPA: pairwise key handshake completed (RSN)
Mar 20 11:27:08 OpenWrt authpriv.info dropbear[2628]: Child connection from 192.168.100.183:59635
Mar 20 11:27:09 OpenWrt authpriv.notice dropbear[2628]: pubkey auth succeeded for 'root' with key md5 xx:xx:xx:...:xx from 192.168.100.183:59635
Mar 20 11:31:16 OpenWrt daemon.info hostapd: wlan0: STA 00:21:5c:xx:xx:xx WPA: group key handshake completed (RSN)

root@OpenWrt:/proc# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=14676k)
tmpfs on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock3 on /jffs type jffs2 (rw,relatime)
mini_fo:/jffs on / type mini_fo (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /mnt/sda1 type ext4 (rw,sync,relatime,barrier=1,data=ordered)

comment:7 Changed 7 years ago by acoul

  • Resolution set to worksforme
  • Status changed from new to closed

I am closing this ticket since there is no follow-up for a long time. If problem exist in current trunk feel free to reopen.

comment:8 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.