pings very slow on rt2800usb

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=6154

lqbweb

10-05-2011 19:46:33

Hi,

Now that ive fixed my previous problem, im facing against another. Pings to the device are very slow within the same network

64 bytes from 192.168.10.4 icmp_req=1 ttl=64 time=267 ms
64 bytes from 192.168.10.4 icmp_req=2 ttl=64 time=188 ms
64 bytes from 192.168.10.4 icmp_req=3 ttl=64 time=109 ms
64 bytes from 192.168.10.4 icmp_req=4 ttl=64 time=30.2 ms
64 bytes from 192.168.10.4 icmp_req=5 ttl=64 time=154 ms
64 bytes from 192.168.10.4 icmp_req=6 ttl=64 time=75.4 ms
64 bytes from 192.168.10.4 icmp_req=7 ttl=64 time=97.8 ms
64 bytes from 192.168.10.4 icmp_req=8 ttl=64 time=19.0 ms
64 bytes from 192.168.10.4 icmp_req=9 ttl=64 time=145 ms
64 bytes from 192.168.10.4 icmp_req=10 ttl=64 time=168 ms
64 bytes from 192.168.10.4 icmp_req=11 ttl=64 time=89.2 ms
64 bytes from 192.168.10.4 icmp_req=12 ttl=64 time=214 ms


I've tried on two equal devices, and it's the same. Im sure the chip is completely cooler and if I try with the ralink driver then I get 2-3ms.....


also the data transfer is between 150-200 kb/s

is this driver really so young? should I use the ralink one?

IvD

10-05-2011 20:58:08

You should apply this patch
http//git.kernel.org/?p=linux/kernel/g ... a965296420

This hasn't appeared in latest wireless-testing yet, but hopefully it will be in there in a few days.

lqbweb

11-05-2011 18:38:35

i've download directly the latest version from the repository and i've pasted the full rt2x00 folder into the last version of compat.....

The problem still. However, if I turn off the power management, then it works fine...

The data transfer is about 1.00-1.1MB/s

lqbweb

11-05-2011 19:40:52

i've been testing it, and ive got a crash on the driver i think, the wifi is not working anymore on this boot... this is the dmesg


[ 1653.013636] BUG unable to handle kernel NULL pointer dereference at 00000094
[ 1653.014019] IP [<cf4837e3>] rt2x00usb_kick_tx_entry+0x3e/0xad [rt2x00usb]
[ 1653.014019] *pde = 00000000
[ 1653.014019] Oops 0000 [#1] PREEMPT
[ 1653.014019] last sysfs file /sys/class/i2c-adapter/i2c-1/1-004c/temp1_input
[ 1653.014019] Modules linked in lxv4l2 lm90 scx200_acb rt2800usb rt2800lib rt2x00usb rt2x00lib compat_firmware_class mac80211 cfg80211 rfkill_backport compat cimarron i2c_serial configfs
[ 1653.014019]
[ 1653.014019] Pid 4429, comm dropbear Tainted G W (2.6.29.6-rt24-aldebaran-rt #1) AMD "CM-iGLX" Geode LX/CS5536
[ 1653.014019] EIP 0060[<cf4837e3>] EFLAGS 00010246 CPU 0
[ 1653.014019] EIP is at rt2x00usb_kick_tx_entry+0x3e/0xad [rt2x00usb]
[ 1653.014019] EAX 00000f14 EBX cda9ecc8 ECX ce47d030 EDX 00000000
[ 1653.014019] ESI ce7d9040 EDI cda9eecc EBP cda1685c ESP ce6b5af8
[ 1653.014019] DS 007b ES 007b FS 0000 GS 0033 SS 0068 preempt00000001
[ 1653.014019] Process dropbear (pid 4429, ti=ce6b4000 task=ce47d030 task.ti=ce6b4000)
[ 1653.014019] Stack
[ 1653.014019] cda8e400 cda16800 cde7e914 00000033 000004c8 00000034 cf473108 cda9ecc8
[ 1653.014019] cde7e914 ce600888 ce7d9040 cf4839dc 00000000 cf4837a5 cf4739c0 00000000
[ 1653.014019] 0007083c 00002088 001a0056 07000007 00000006 00000000 00000002 00000002
[ 1653.014019] Call Trace
[ 1653.014019] [<cf473108>] ? rt2x00queue_for_each_entry+0x76/0xc9 [rt2x00lib]
[ 1653.014019] [<cf4839dc>] ? rt2x00usb_kick_queue+0x29/0x4b [rt2x00usb]
[ 1653.014019] [<cf4837a5>] ? rt2x00usb_kick_tx_entry+0x0/0xad [rt2x00usb]
[ 1653.014019] [<cf4739c0>] ? rt2x00queue_write_tx_frame+0x1fa/0x238 [rt2x00lib]
[ 1653.014019] [<cf4727af>] ? rt2x00mac_tx+0x1c6/0x20b [rt2x00lib]
[ 1653.014019] [<d054f9e2>] ? __ieee80211_tx+0x148/0x18e [mac80211]
[ 1653.014019] [<d054faa0>] ? ieee80211_tx+0x78/0x90 [mac80211]
[ 1653.014019] [<d054fc2a>] ? ieee80211_xmit+0x172/0x17e [mac80211]
[ 1653.014019] [<d0550c0f>] ? ieee80211_subif_start_xmit+0x789/0x79e [mac80211]
[ 1653.014019] [<c02a42c4>] ? packet_rcv_spkt+0x92/0x99
[ 1653.014019] [<c0268247>] ? dev_hard_start_xmit+0x19b/0x1f0
[ 1653.014019] [<c0272990>] ? __qdisc_run+0xb6/0x19e
[ 1653.014019] [<c0268644>] ? dev_queue_xmit+0x2c8/0x3bd
[ 1653.014019] [<c027de65>] ? ip_finish_output+0x22e/0x266
[ 1653.014019] [<c027bd67>] ? ip_local_out+0x51/0x54
[ 1653.014019] [<c027d894>] ? ip_queue_xmit+0x29a/0x2f8
[ 1653.014019] [<c012c923>] ? hrtimer_forward+0x10f/0x123
[ 1653.014019] [<c028ec08>] ? tcp_v4_send_check+0x77/0xaa
[ 1653.014019] [<c028ec08>] ? tcp_v4_send_check+0x77/0xaa
[ 1653.014019] [<c028baf0>] ? tcp_transmit_skb+0x54c/0x581
[ 1653.014019] [<c028bc9c>] ? tcp_send_ack+0xdd/0xe1
[ 1653.014019] [<c0283190>] ? tcp_recvmsg+0x5e1/0x6b9
[ 1653.014019] [<c025ef27>] ? sock_common_recvmsg+0x2f/0x41
[ 1653.014019] [<c025cfb7>] ? sock_aio_read+0xec/0xf6
[ 1653.014019] [<c015b1e9>] ? do_sync_read+0xbd/0xf5
[ 1653.014019] [<c0106379>] ? pit_next_event+0x3a/0x3e
[ 1653.014019] [<c012a5de>] ? autoremove_wake_function+0x0/0x29
[ 1653.014019] [<c012fd01>] ? ktime_get_ts+0xbf/0xc7
[ 1653.014019] [<c016594f>] ? poll_select_copy_remaining+0xba/0xd6
[ 1653.014019] [<c015ba69>] ? vfs_read+0x95/0xf7
[ 1653.014019] [<c015bb61>] ? sys_read+0x3c/0x63
[ 1653.014019] [<c0102791>] ? syscall_call+0x7/0xb
[ 1653.014019] Code 8b 7b 14 0f ba 33 02 19 c0 85 c0 0f 84 80 00 00 00 f6 03 10 75 7b 8d 45 a4 89 44 24 04 8b 46 04 8b 50 2c 89 d8 ff 52 78 8b 53 0c <8b> 92 94 00 00 00 89 14 24 8b 55 a4 8b 6b 08 0f b7 6d 58 c1 e5
[ 1653.014019] EIP [<cf4837e3>] rt2x00usb_kick_tx_entry+0x3e/0xad [rt2x00usb] SSESP 0068ce6b5af8
[ 1653.014019] CR2 0000000000000094
[ 1654.015707] ---[ end trace dc418dee96b38f17 ]---