Skip to contentSkip to conversation

I/O descriptor ring size bottleneck?

DISCUSSION Diwaker Gupta 2 participants 2 messages Mar 20, 2005 – Mar 21, 2005

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I'm doing some networking experiments over high BDP topologies. Right now the configuration is quite simple -- two Xen boxes connected via a dummynet router. The dummynet router is set to limit bandwidth to 500Mbps and simulate an RTT of 80ms.

I'm using the following sysctl values:

net.ipv4.tcp_rmem = 4096        87380   4194304
net.ipv4.tcp_wmem = 4096        65536   4194304

net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
net.ipv4.tcp_bic = 0

(tcp westwood and vegas are also turned off for now)

Now if I run 50 netperf flows lasting 80 seconds (1000RTTs) from inside a VM on one box talking to the netserver on the VM on the other box, I get a per flow throughput of around ~2.5Mbps (which sucks, but lets ignore the absolute value for the moment).

If I run the same test, but this time from inside dom0, I get a per flow throughput of around 6Mbps.

I'm trying to understand the difference in performance. It seems to me that the I/O descriptor ring sizes are hard coded to 256 -- could that be a bottleneck here? If not, have people experience similar problems?

TIA

Signature · 9 lines
Diwaker Gupta
http://resolute.ucsd.edu/diwaker


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#1 lore raw
Quoted 10 lines · Diwaker Gupta

Hi everyone,

I'm doing some networking experiments over high BDP topologies. Right now the configuration is quite simple -- two Xen boxes connected via a dummynet router. The dummynet router is set to limit bandwidth to 500Mbps and simulate an RTT of 80ms.

I'm using the following sysctl values:

net.ipv4.tcp_rmem = 4096        87380   4194304
net.ipv4.tcp_wmem = 4096        65536   4194304

If you're trying to tune TCP traffic, then you might want to increase the default TCP socket size (87380) above as well, as simply increasing the core size won't help there.

Quoted 7 lines

Now if I run 50 netperf flows lasting 80 seconds (1000RTTs) from inside a VM on one box talking to the netserver on the VM on the other box, I get a per flow throughput of around ~2.5Mbps (which sucks, but lets ignore the absolute value for the moment).

If I run the same test, but this time from inside dom0, I get a per flow throughput of around 6Mbps.

Could you get any further information on your test/data? Which netperf test were you running, btw?

Quoted 3 lines

I'm trying to understand the difference in performance. It seems to me that the I/O descriptor ring sizes are hard coded to 256 -- could that be a bottleneck here? If not, have people experience similar problems?

Someone on this list had posted that they would be getting oprofile working soon - you might want to retry your testing with that patch.

thanks,
Nivedita

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click