low through-put on bge cards OBSD 4.0 3.9

2006-10-30 Thread Dag Richards
I have a pair of Sunfire x2100's I am trying to configure as vpn 
routers to bridge between two Data Centres.


isakmpd - easy working
bridging - also easy

bridging over ipsec tunnel - surprisingly easy as well

The problem I am having is the one part that I
_assumed_ would be the easiest.

I can not seem to get more that ~43 megabytes per second through
the bge cards on these boxes.  This is the unencrypted speed
with the cards attached by x-over cable or on a 2950 switch with only
these two boxes attached.

I am running 4.0 using the 386 mp kernel compiled for IOAPIC.

I had essentially the same results w/ 3.9.

I tried installing  Suse 10.0 just to see what kind of throughput I got 
there, and was getting ~80 megabytes per second. This told me that the 
HW was at least capable of getting the throughput I expected. Of course 
the bloody linux  dist is useless for these types of applications.




low through-put on bge cards OBSD 4.0 3.9

2006-10-30 Thread Dag Richards
I have a pair of Sunfire x2100's I am trying to configure as vpn 
routers to bridge between two Data Centres.


isakmpd - easy working
bridging - also easy

bridging over ipsec tunnel - surprisingly easy as well

The problem I am having is the one part that I
_assumed_ would be the easiest.

I can not seem to get more that ~43 megabytes per second through
the bge cards on these boxes.  This is the unencrypted speed
with the cards attached by x-over cable or on a 2950 switch with only
these two boxes attached.

I am running 4.0 using the 386 mp kernel compiled for IOAPIC.

I had essentially the same results w/ 3.9.

I tried installing  Suse 10.0 just to see what kind of throughput I got 
there, and was getting ~80 megabytes per second. This told me that the 
HW was at least capable of getting the throughput I expected. Of course 
the bloody linux  dist is useless for these types of applications.


Any suggestions?



Re: low through-put on bge cards OBSD 4.0 3.9

2006-10-30 Thread Kyle George

On Mon, 30 Oct 2006, Dag Richards wrote:


I can not seem to get more that ~43 megabytes per second through
the bge cards on these boxes.  This is the unencrypted speed
with the cards attached by x-over cable or on a 2950 switch with only
these two boxes attached.

[snip]

Any suggestions?


Try bumping net.inet.tcp.recvspace and net.inet.tcp.sendspace.

http://www.openbsd.org/faq/faq6.html#Tuning

--
Kyle George
[EMAIL PROTECTED]



Re: low through-put on bge cards OBSD 4.0 3.9

2006-10-30 Thread Dag Richards

Kyle George wrote:

On Mon, 30 Oct 2006, Dag Richards wrote:


I can not seem to get more that ~43 megabytes per second through
the bge cards on these boxes.  This is the unencrypted speed
with the cards attached by x-over cable or on a 2950 switch with only
these two boxes attached.

[snip]

Any suggestions?


Try bumping net.inet.tcp.recvspace and net.inet.tcp.sendspace.

http://www.openbsd.org/faq/faq6.html#Tuning


Yes I had tried setting the send and receive buffers to 65536
om 3.9 it helped but not much as I recall.  I just tried setting the 
buffers on 4.0 and got ~57 MBps throughput, so thanks thats it better.


 I am using the oh so precise and accurate ftp as a means of measuring 
throughput.


I know it is at best an imprecise method, but I was so far off my 
expectation I did not see the point in being more rigorous.



I just download the iperf package, I will see if I can get some more 
precise numbers.