DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-04-29 09:17:56

timezlicer
Member
Registered: 2008-09-02
Posts: 51
Website

network optimization

feedback + comments welcome

after some experiments i found the following settings helpful to increase (internet) throughput
you must set both on your router and dns-343

Jumbo Frames OFF (with jumbo frames, fragmentation happens and it kills throughput since the CPU is not fast enough to compensate)

echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes

Offline

 

#2 2010-05-01 01:12:13

robinson
Member
Registered: 2009-06-20
Posts: 19

Re: network optimization

Good job on this.

could you explain why the TCP settings need changing, and your metric(s) for testing?

Offline

 

#3 2010-05-03 19:01:50

bkamen
Member
From: Central East Illinois, USA
Registered: 2007-07-16
Posts: 80
Website

Re: network optimization

Remember that if your upstream provider doesn't support jumbo, then it's worthless.

I don't think comcast here supports jumbo frames.
Neither does my firewall (it max's out at 1500bytes/frame being only 100base-T)

jumbo frames are great, but you typically only have control over your local network.

last, I'm not sure 100base-t supports jumbo frames (although there might be some that might)

-Ben


--
Ben - Don't Ask me how I fixed it - I have no idea what I'm doing!
============================================
http://www.benjammin.net/

Offline

 

#4 2010-05-05 22:41:57

caust1c
Member
Registered: 2010-01-03
Posts: 35

Re: network optimization

Just an anecdotal observation, I haven't tried these optimizations, but it seems that the 343 is pretty speedy on it's own.  I stream much data over NFS but with just simple observations with Win7 to DNS-343 using samba over gigabit LAN.  My DNS-343 is running RAID-5 with 4x2tb 7200rpm drives:

With no other network or device concurrent usage:
I have seen a sustained max of 78mbps (9.5MB/sec) writing on a 6gb file.
Reading off DNS-343 for that same file, sustained max of 204mbps (25.5MB/sec) on that same 6gb file.

Without being able to test right now, I'd expect NFS would be slightly faster.  Unfortunately, I cannot for the life of me get NFS working with Win7 Ultimate.  Anytime I mount my NFS shares, off of a DNS-323 or DNS-343, the command shell locks up.

This seems like about the best I should realistically expect.  Not sure what these optimizations could do to improve settings... My router and switch do not support jumbo frames though.

Offline

 

#5 2010-05-08 23:03:24

bkamen
Member
From: Central East Illinois, USA
Registered: 2007-07-16
Posts: 80
Website

Re: network optimization

I have jumbo frames turned on with my local hosts also set and there's a big difference with the NIC as to what speed can be attained.

Oddly enough I have 2 Dell GX270's with Intel 1000 Pro/MT NIC's that read at about 320Mb/s (that's little b peoples) with P4-HT 3.2GHz CPU's where my quad AMD (Asus MB with Realtek NIC) maxes out at about 100Mb/s.

Weird but true.

Linux kicks butt.

-Ben


--
Ben - Don't Ask me how I fixed it - I have no idea what I'm doing!
============================================
http://www.benjammin.net/

Offline

 

#6 2010-05-20 12:27:03

timezlicer
Member
Registered: 2008-09-02
Posts: 51
Website

Re: network optimization

this will shorten the headers and also use less CPU
it's a 1% improvement with tcp_timestamps off,
i am able to max out my subscribed speed, else i hover at about 98-99%
echo 0 > /proc/sys/net/ipv4/tcp_timestamps

these will lower the number of opened connections (if you have lots of connection hits)
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes

robinson wrote:

Good job on this.

could you explain why the TCP settings need changing, and your metric(s) for testing?

Offline

 

#7 2010-05-20 12:28:04

timezlicer
Member
Registered: 2008-09-02
Posts: 51
Website

Re: network optimization

yes... my operator do NOT support jumbo frames,
hence if i turn it on, there will be lot of fragmentation, the CPU is just not fast enough to compensate this extra load...

bkamen wrote:

Remember that if your upstream provider doesn't support jumbo, then it's worthless.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB