receive hangs; was TCP send() performance and eventual hangs
Re: receive hangs; was TCP send() performance and eventual hangs
maximal speed that i can get with dswifi is about 40kbyte/s. packet size is 1420 bytes, vblank happens 30 times per second. 1420*30=42600=41.6kbyte. is it coincidence?
-
- Developer
- Posts: 10
- Joined: Fri Aug 12, 2005 5:13 am
- Location: Camping on an Oxygen atom
- Contact:
Re: receive hangs; was TCP send() performance and eventual hangs
Yes, it is coincidence. Nothing in dswifi is synchronized to vblank. (with the exception of a failsafe in arm7, that checks for packets and fixes the wifi interrupt if it broke)
DSWifi notifies the arm9 via an interrupt (through fifo code) every time a packet comes in, so it's not even limited to the timer interrupt rate. (which is 50Hz, I think)
Most likely your latency + some inefficiency just mean transfers occur every 30ms or so, which isn't unreasonable.
I have seen speeds of 120kbyte/s in both directions on my local network. (note that this is about 1.1-1.2 mbit, including packet overhead), so it is capable of more under good conditions.
-Stephen
DSWifi notifies the arm9 via an interrupt (through fifo code) every time a packet comes in, so it's not even limited to the timer interrupt rate. (which is 50Hz, I think)
Most likely your latency + some inefficiency just mean transfers occur every 30ms or so, which isn't unreasonable.
I have seen speeds of 120kbyte/s in both directions on my local network. (note that this is about 1.1-1.2 mbit, including packet overhead), so it is capable of more under good conditions.
-Stephen
http://blog.akkit.org/ - http://wiki.akkit.org/ - Creator of DSWifi library - Authority on ARM ASM - Memorizer of DS Hardware Information
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest