Re: [OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-06-26 Thread Gabriel Tolón

Hi,

Just in case someone is interested, I share some results.

Finally, we tested these WDR3500 routers connecting two PCs to different 
ethernet ports, each one transferring up to 100 Mbps with iperf. That 
way we received:


* 190 Mbps using only 5GHz band, in HT40, using MCS15, with the 
processor 0% idle in the transferring router


* 104.6 Mbps, 5GHz band, HT20, MCS15, 36% idle


* 175 Mbps, 2.4 GHz band, HT40, MCS15, 7% idle.

* 102 Mbps, 2.4 GHz band, HT20, MCS15, 36$ idle


Then, we tested transferring from one router to other 2, using 2.4 GHz 
and 5 GHz with each one, at the same time.


* 95 Mbps and 93.7 Mbps in each band, HT20, MCS15 on both, with 0% idle

For this last scenario, in HT40 we couldn't get more than in HT20, I 
guess due to ethernet and processor limits.


By the way, in all cases iptables and other modules were unloaded.


Regards

Gabriel


El 29/05/13 15:28, Gabriel Tolón escribió:

El 29/05/13 12:49, Felix Fietkau escribió:

On 2013-05-29 5:26 PM, Gabriel Tolón wrote:

Hi Felix,

I know it's better to test from ethernet, but the problem is that
WDR3500 routers are 100 Mbps ethernet, and these routers should be
capable of transmitting much more than that, that's why I want to test
another possibilities.

Have you considered bridging the two wireless interfaces and passing
traffic from one client on one interface to another on the other
interface?

I've thought something like that, but at the moment I don't have any
clients which could transmit high throughputs, 300 Mbps USB adapters
would be a good choice I think.

By the way, I hope you don't expect to actually get 600 Mbit/s of
combined throughput - that's just the marketing number which has little
to do with reality.

Yes, it seemed too much to me, but I'd expect that both radios could
really transmit at the same time using MCS15, right?

Regards

Gabriel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-05-29 Thread Gabriel Tolón

Jo-Philipp and Bastian,

I used the approach of commenting the iptables modules in 
/etc/modules.d, and I could send up to 85 Mbps (UDP) from iperf inside 
the router for each band, compared with 50 Mbps before commenting the 
modules, much better. Now I'll try find a way to test both bands 
together. Thanks!


Gabriel

El 28/05/13 08:04, Jo-Philipp Wich escribió:

here the full/updated snippet:
http://intercity-vpn.de/files/openwrt/init_kmodules_loader_without_iptables.sh.txt

Or, you know, simply comment the relevant modules out in /etc/modules.d/ ...

~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-05-29 Thread Gabriel Tolón

Hi Antonio,

I'm already using batman-adv, so this bandwidth meter sounds great, I'll 
try it. If I have some trouble installing batman-adv-devel (I've never 
used it) or something I ask you or in the batman-adv list. Thanks!


Gabriel

El 28/05/13 04:00, Antonio Quartulli escribió:

On Mon, May 27, 2013 at 05:54:01PM -0300, Gabriel Tolón wrote:

Hi,

I want to test TP-Link WDR3500 performance using iperf. According to
TP-Link specifications, they could reach up to 600 Mbps using both 2.4
and 5 GHz bands. The problem is that as they are 100Mbps Ethernet, if I
run iperf from a PC connected to the Ethernet port, I'll be limited to
100Mbps. On the other hand, when running iperf from inside the routers,
they don't transmit more than 50 Mbps, limited by the processor.

I've read that removing some kernel modules like iptables it would be
possible to increase throughput when running iperf in routers, so I've
been trying with rmmod, but I couldn't remove iptables modules, I get
for example:

root@OpenWrt:/# rmmod ip_tables
rmmod: can't unload 'ip_tables': Resource temporarily unavailable

I guess that's because some dependencies, so I tried removing other
modules first, without success. Also I searched for a modprobe package
in opkg, but I couldn't find it.

I'd appreciate some ideas on how to achieve these measurements. Thanks!

Hello Gabriel,

I'd like to suggest you another way.

In batman-adv[0] we are currently developing an in-kernel bandwidth meter[1][2].
It is entirely implemented inside the batman-adv module and therefore it
completely runs in kernel-space.

This means that you do not have any context-switch or slow memory operations
which hurt a lot the performance on our weak routers.

It is in a beta stage, meaning that it has been tested on VMs and real nodes,
but only by the devs. It would be nice if you would like to give it a try :)

IPtables is not a problem in this case because the inner batman-adv traffic is
not inspected.

To use it you need to install the batman-adv-devel package because the Bandwidth
Meter is not part of any stable release yet. You can read how to install the
proper feed and the package here[3].

The commit ID you should configure in order to use the BW meter are:
batman-adv: 38a1b72b6
batctl: eebba0bfb

On [1] and [2] you will find the instructions on how to run the tool. Since it
is a testing phase, any feedback would be really appreciated!!

If you are totally new to batman-adv and mesh networking in general I'd
recommend you to read [0] and some more doc first... :-)

Cheers,

[0] http://www.open-mesh.org/projects/batman-adv/wiki/Wiki
[1] http://www.open-mesh.org/projects/batman-adv/wiki/Bandwidth_meter
[2] http://www.open-mesh.org/projects/batman-adv/wiki/Bandwidth_meter_debug
[3] http://www.open-mesh.org/projects/batman-adv/wiki/Building-with-openwrt


Gabriel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-05-29 Thread Gabriel Tolón

Hi Felix,

I know it's better to test from ethernet, but the problem is that 
WDR3500 routers are 100 Mbps ethernet, and these routers should be 
capable of transmitting much more than that, that's why I want to test 
another possibilities.


Gabriel

El 29/05/13 11:28, Felix Fietkau escribió:

On 2013-05-29 4:16 PM, Gabriel Tolón wrote:

Jo-Philipp and Bastian,

I used the approach of commenting the iptables modules in
/etc/modules.d, and I could send up to 85 Mbps (UDP) from iperf inside
the router for each band, compared with 50 Mbps before commenting the
modules, much better. Now I'll try find a way to test both bands
together. Thanks!

Don't test with iperf on the router, it will always be significantly
slower than bridging from Ethernet to Wireless. When using bridging, you
also avoid the runtime overhead of netfilter, even if the modules are
loaded.

- Felix




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-05-29 Thread Gabriel Tolón

El 29/05/13 12:49, Felix Fietkau escribió:

On 2013-05-29 5:26 PM, Gabriel Tolón wrote:

Hi Felix,

I know it's better to test from ethernet, but the problem is that
WDR3500 routers are 100 Mbps ethernet, and these routers should be
capable of transmitting much more than that, that's why I want to test
another possibilities.

Have you considered bridging the two wireless interfaces and passing
traffic from one client on one interface to another on the other interface?
I've thought something like that, but at the moment I don't have any 
clients which could transmit high throughputs, 300 Mbps USB adapters 
would be a good choice I think.

By the way, I hope you don't expect to actually get 600 Mbit/s of
combined throughput - that's just the marketing number which has little
to do with reality.
Yes, it seemed too much to me, but I'd expect that both radios could 
really transmit at the same time using MCS15, right?


Regards

Gabriel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] WDR3500, unload kernel modules to improve iperf throughput?

2013-05-27 Thread Gabriel Tolón

Hi,

I want to test TP-Link WDR3500 performance using iperf. According to 
TP-Link specifications, they could reach up to 600 Mbps using both 2.4 
and 5 GHz bands. The problem is that as they are 100Mbps Ethernet, if I 
run iperf from a PC connected to the Ethernet port, I'll be limited to 
100Mbps. On the other hand, when running iperf from inside the routers, 
they don't transmit more than 50 Mbps, limited by the processor.


I've read that removing some kernel modules like iptables it would be 
possible to increase throughput when running iperf in routers, so I've 
been trying with rmmod, but I couldn't remove iptables modules, I get 
for example:


root@OpenWrt:/# rmmod ip_tables
rmmod: can't unload 'ip_tables': Resource temporarily unavailable

I guess that's because some dependencies, so I tried removing other 
modules first, without success. Also I searched for a modprobe package 
in opkg, but I couldn't find it.


I'd appreciate some ideas on how to achieve these measurements. Thanks!

Gabriel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel