List Info

Thread: Re: Tuning: 100mbit faster, gbit slower.




Re: Tuning: 100mbit faster, gbit slower.
country flaguser name
United States
2008-03-24 03:26:56
On Sunday 23 March 2008 05:21:48 pm Daniel Andersson wrote:
> Hey!
>
> I was trying to milk the most out of my 100/100. What
I
> ended up with was something, to me, quite odd. When I
> hadn't done anything I could ftp things from my server
> box at 50mb/s and run rtorrent at about 9-10 mb/s at
most.
> After my "tuning" I can only ftp at a very
"choppy"
> 30-40mb/s, but rtorrent runs at about 11mb/s.
> This is what I did:
>
> kern.ipc.maxsockbuf=16777216
> net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.recvbuf_max=16777216
>
> according to
> http://dsd
.lbl.gov/TCP-tuning/FreeBSD.html
> every other setting there was default
> I believe.
>
> I also set these:
>
> net.inet.tcp.recvspace: 262144
> net.inet.tcp.sendspace: 262144
>
> dmesg:
> http://pastebin.org/24780
>
> Am I just imagining that rtorrent runs faster?
> Can't ftp handle high buffers or did I mess
> something up? Is there something else I
> could do to make it faster? Setting up
> polling perhaps?
>
> Cheers,
> Daniel Andersson

The stock settings are more than enough to saturate 100TX
with even relatively 
ancient hardware.  And by ancient I mean Pentium 2 class
machines.

The biggest tuning you can do is use intel (fxp) or 3com
(xl) NICS and a 
halfway decent switch.

If your server box can't saturate 100TX ethernet with the
defaults then 
something is amiss.  Perhaps provide a dmesg from the server
and a client and 
a tcpdump from an FTP session between them?

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB
Re: Tuning: 100mbit faster, gbit slower.
user name
2008-03-24 06:22:12
Thanks for the reply! Maybe I should have been more clear.
My setup looks like this:
internet - em1(server box) em0 - windoze desktop.

The internet(em1) 100mbit seems to do fine, even better
than
before, I get about 11mb/s with rtorrent(uploading). It's
the
internal gbit connection that's weird with ftp. It not as
fast nor
as smooth as it was before I did the "tuning". I
doesn't have
any trouble running ftping at 30mb/s after the tuning so it
is
definately capabel of delivering 100mbit?

$ifconfig -a
em0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
metric 0 mtu 1500
       
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWC
SUM>
        ether 00:1b:21:0a:1d:87
        inet 192.168.0.10 netmask 0xffffff00 broadcast
192.168.0.255
        media: Ethernet autoselect (1000baseTX
<full-duplex>)
        status: active
em1:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
metric 0 mtu 1500
       
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWC
SUM>
        ether 00:1b:21:0c:d1:b3
        inet external.ip.goes.here netmask 0xfffffc00
broadcast
xx.xxx.147.255
        media: Ethernet autoselect (100baseTX
<full-duplex>)
        status: active
plip0:
flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT>
metric 0 mtu
1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric
0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu
33204

tcpdump as requested:
engy# tcpdump -vv -i em0 portrange 40000-42000 or portrange
20-21 |
cat > /usr/home/engy/tcpdump

http://pastebin.org/25081

If you had something else in mind, let me know. When I
transferred large
files I sometimes got about 600 packages dropped by kernel.
That
can't be good. Also it seemed that I got a lot of ack
packages, don't
know if that's normal.

Cheers,
Daniel


>The stock settings are more than enough to saturate
100TX with even
> relatively
> >ancient hardware.  And by ancient I mean Pentium 2
class machines.
> >
> >The biggest tuning you can do is use intel (fxp) or
3com (xl) NICS and a
> >halfway decent switch.
> >
> >If your server box can't saturate 100TX ethernet
with the defaults then
> >something is amiss.  Perhaps provide a dmesg from
the server and a client
> and
> >a tcpdump from an FTP session between them?
> >
> >--
> >Thanks,
> >
> >Josh Paetzel
>
> >PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF
AECB
>
>
_______________________________________________
freebsd-performancefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
To unsubscribe, send any mail to
"freebsd-performance-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )