Jump to content

Server Tweak


CA3LE

Recommended Posts

I have made a pretty huge change to the server, I tweaked all the TCP settings on the server and am getting much better performance.  It's 7 am and I have yet to fall asleep.. but I think I FINALLY got it tuned well.  On my personal test (which were already running good) I am now seeing no little pauses in the progress bar and am getting a much more consistant score varied by very little from test to test.

I hope this will resolve the speed degradation during peak hours.  Please post in this thread to inform me if you see an increase in accuracy and reliability.

Link to comment
Share on other sites

test scores are even consistant from 3MB, 6MB and 12MB tests -- very little difference

:::.. Download Stats ..:::

Connection is:: 5372 Kbps about 5.4 Mbps (tested with 2992 KB)

Download Speed is:: 656 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 96 times faster than 56K you can download 1MB in 1.56 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=EKBAQR8DW

:::.. Download Stats ..:::

Connection is:: 5475 Kbps about 5.5 Mbps (tested with 5983 KB)

Download Speed is:: 668 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 98 times faster than 56K you can download 1MB in 1.53 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=5ENPW9HOY

:::.. Download Stats ..:::

Connection is:: 5299 Kbps about 5.3 Mbps (tested with 12160 KB)

Download Speed is:: 647 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 95 times faster than 56K you can download 1MB in 1.58 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=MNHZI4WTF

Link to comment
Share on other sites

Nice :)

Maybe thats why my test scores have been the way they have been!!

:::.. Download Stats ..:::

Connection is:: 3697 Kbps about 3.7 Mbps (tested with 2992 KB)

Download Speed is:: 451 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 66 times faster than 56K you can download 1MB in 2.27 second(s)

I didnt get my upgrade yet either :)

Link to comment
Share on other sites

5 more reboots and I think I have the server set to where she is comfy

Linux RedHat Enterprise 3

added to /etc/rc.local

ifconfig eth0 mtu 1500

echo 256960 >> /proc/sys/net/core/wmem_default

echo 256960 >> /proc/sys/net/core/wmem_max

echo 256960 >> /proc/sys/net/core/rmem_default

echo 256960 >> /proc/sys/net/core/rmem_max

echo 1 >> /proc/sys/net/ipv4/tcp_sack

echo 0 >> /proc/sys/net/ipv4/tcp_timestamps

echo 1 >> /proc/sys/net/ipv4/tcp_window_scaling

then reboot and running smooth...

Link to comment
Share on other sites

:roll: CA3LE,

I dont mean to be picky, but I checked your work and you have a small problem that you might want to address. Now dont take this the wrong way its only constructive criticism........jk  :ha ha:

8) Microwave

lol, yea that was when I was erbuilding apache this morn... lol, OOPS!

Link to comment
Share on other sites

i been having great speed for a few days but today im back to around 3- 3,5 Mbps

i dont think its the server, its probl same issue as before

but you could try these values too CA3LE

echo 8388608 > /proc/sys/net/core/wmem_max

      echo 8388608 > /proc/sys/net/core/rmem_max

      echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem

      echo "4096 65536 4194304" > /proc/sys/net/ipv4/tcp_wmem

i found em at  http://www.psc.edu/networking/projects/tcptune/#Linux

VanBuren :)

Link to comment
Share on other sites

here is also some settings i found at Speedguide forum

http://forums.speedguide.net/showthread.php?s=&threadid=91751

quote "Okay, here's what's wrong. The SpeedGuide FAQ that covers tweaking Linux is absolutely correct--for kernel 2.2.x. However, It's incomplete for kernel 2.4.x. There are some additional things that need to be added to /etc/sysctl.conf to get it to work properly--this is do to the fact that 2.4.x uses auto-tuning.

You have your original (I'm showing my config, and I use a 512 Kb RWIN for both the default and the max--it'll scale down to the min if need be, so, default = max will do no harm and besides it's less math to do!):

net.core.rmem_default = 524288

net.core.rmem_max = 524288

net.core.wmem_default = 524288

net.core.wmem_max = 524288

net.ipv4.tcp_window_scaling = 1

You also need to enable sack (I enable fack too).

net.ipv4.tcp_sack = 1

net.ipv4.tcp_fack = 1

You need to set the send and receive vectors. The last number in the tuple is the one you are interested in, it should be one half the value of its corresponding net.core.Xmem_max value.

net.ipv4.tcp_wmem = 4096 87380 262144

net.ipv4.tcp_rmem = 4096 87380 262144

Finally you need to enable flushing, otherwise any changes you make take ten minutes after you restart your network card to take effect.

net.ipv4.route.flush = 1

Once that's entered into your /etc/sysctl.conf, run:

sysctl -p

/etc/init.d/network restart

Now the settings are in effect.

Here's the kicker... Your RWIN size is still going to show up in the SG TCP/IP Analyser as 5840. This is because of the auto-tuning, it sends packets of size 5840 to a new destination until the destination replies with a packet that exceeds 5840, at that point it increases the packet size--in effect growing to the receiver's window size. But, by the time that happens the analyser has completed its evaluation."

VanBuren :)

Link to comment
Share on other sites

same ole, same ole' here :s

:::.. Download Stats ..:::

Connection is:: 5920 Kbps about 5.9 Mbps (tested with 2992 KB)

Download Speed is:: 723 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 106 times faster than 56K you can download 1MB in 1.42 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=TDL0K39WQ

Link to comment
Share on other sites

same ole, same ole' here :s

:::.. Download Stats ..:::

Connection is:: 5920 Kbps about 5.9 Mbps (tested with 2992 KB)

Download Speed is:: 723 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 106 times faster than 56K you can download 1MB in 1.42 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=TDL0K39WQ

that's awesome... what are you talking about.

Link to comment
Share on other sites

i been having great speed for a few days but today im back to around 3- 3,5 Mbps

i dont think its the server, its probl same issue as before

but you could try these values too CA3LE

echo 8388608 > /proc/sys/net/core/wmem_max

      echo 8388608 > /proc/sys/net/core/rmem_max

      echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem

      echo "4096 65536 4194304" > /proc/sys/net/ipv4/tcp_wmem

i found em at  http://www.psc.edu/networking/projects/tcptune/#Linux

VanBuren :)

^^ I tried those already, I will look into the others.

Link to comment
Share on other sites

good job CA3LE !

:::.. Download Stats ..:::

Connection is:: 5645 Kbps about 5.6 Mbps (tested with 12160 KB)

Download Speed is:: 689 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 101 times faster than 56K you can download 1MB in 1.49 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=G125NE0VO

VanBuren  :D

Link to comment
Share on other sites

:::.. Download Stats ..:::

Connection is:: 8598 Kbps about 8.6 Mbps (tested with 12160 KB)

Download Speed is:: 1050 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 154 times faster than 56K you can download 1MB in 0.98 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=4WQAG9E1D

yeah  :lol: :lol: :lol: :lol:

VanBuren :)

Link to comment
Share on other sites

Van... this is what i just did

Okay, this is much better for linux 2.4.XX

# increase Linux TCP buffer limits

net.core.rmem_max = 8388608

net.core.wmem_max = 8388608

net.core.rmem_default = 65536

net.core.wmem_default = 65536

# increase Linux autotuning TCP buffer limits

net.ipv4.tcp_rmem = 4096 87380 8388608

net.ipv4.tcp_wmem = 4096 65536 8388608

net.ipv4.tcp_mem = 8388608 8388608 8388608

Added to /etc/sysctl.conf

ifconfig eth0 txqueuelen 1000

Added also will increase TCP throughput by increaseing the size of the interface queue.  I guess it's not a good idea unless your on a Gigabit Ethernet connection (my server does have a Gigabit ethernet adapter) but I guess I will have to try this setting out to see how it runs.

Let me know if your speeds report better from now on.. even durring peak.

Link to comment
Share on other sites

yea i will, dern its running great

:::.. Download Stats ..:::

Connection is:: 7819 Kbps about 7.8 Mbps (tested with 5983 KB)

Download Speed is:: 954 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 140 times faster than 56K you can download 1MB in 1.07 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=O9IAP2GYT

i even score above 6 Mbps on 2992 KB test  :D

VanBuren :)

Link to comment
Share on other sites

by the way.. just doing

          echo 8388608 > /proc/sys/net/core/wmem_max

          echo 8388608 > /proc/sys/net/core/rmem_max

          echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem

          echo "4096 65536 4194304" > /proc/sys/net/ipv4/tcp_wmem

in /etc/rc.local is good for Linux 2.2.xx but is not as good for 2.4.xx because 2.4.xx has an auto tune feature that resizes the RWIN for each stream depending upon curtain factors..

Link to comment
Share on other sites

yea i will, dern its running great

:::.. Download Stats ..:::

Connection is:: 7819 Kbps about 7.8 Mbps (tested with 5983 KB)

Download Speed is:: 954 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 140 times faster than 56K you can download 1MB in 1.07 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=O9IAP2GYT

i even score above 6 Mbps on 2992 KB test  :D

VanBuren :)

very cool... anyone else?

Link to comment
Share on other sites

very cool... anyone else?

It was making a difference for me... my d/loads went from about 9.6 Mbps to about 12.7 Mbps... but then they went back down. Don't know if that corresponds with any of the tweaks you've been making...

*****EDIT: Never mind the above comment... the scores are much better now... I tweaked again with some of VanBuren's settings today too, but whatever you did to the server is kicking arse... :D Here's 10 almost consecutive runs...

:::.. Download Stats ..:::

Connection is:: 13122 Kbps about 13.1 Mbps (tested with 12160 KB)

Download Speed is:: 1602 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 234 times faster than 56K you can download 1MB in 0.64 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=ITY6NDCQZ

:::.. Download Stats ..:::

Connection is:: 13280 Kbps about 13.3 Mbps (tested with 12160 KB)

Download Speed is:: 1621 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 237 times faster than 56K you can download 1MB in 0.63 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=QGA7NHUTY

:::.. Download Stats ..:::

Connection is:: 12606 Kbps about 12.6 Mbps (tested with 12160 KB)

Download Speed is:: 1539 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 225 times faster than 56K you can download 1MB in 0.67 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=6TAKP32GL

:::.. Download Stats ..:::

Connection is:: 14028 Kbps about 14 Mbps (tested with 12160 KB)

Download Speed is:: 1712 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 250 times faster than 56K you can download 1MB in 0.6 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=48PUY7KL2

:::.. Download Stats ..:::

Connection is:: 13262 Kbps about 13.3 Mbps (tested with 12160 KB)

Download Speed is:: 1619 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 237 times faster than 56K you can download 1MB in 0.63 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=QIRWYBO2N

:::.. Download Stats ..:::

Connection is:: 13951 Kbps about 14 Mbps (tested with 12160 KB)

Download Speed is:: 1703 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 249 times faster than 56K you can download 1MB in 0.6 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=OTBAW4VI5

:::.. Download Stats ..:::

Connection is:: 12952 Kbps about 13 Mbps (tested with 12160 KB)

Download Speed is:: 1581 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 231 times faster than 56K you can download 1MB in 0.65 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=JFLGK72OU

:::.. Download Stats ..:::

Connection is:: 12818 Kbps about 12.8 Mbps (tested with 12160 KB)

Download Speed is:: 1565 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 229 times faster than 56K you can download 1MB in 0.65 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=5DHTCW0J9

:::.. Download Stats ..:::

Connection is:: 14010 Kbps about 14 Mbps (tested with 12160 KB)

Download Speed is:: 1710 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 250 times faster than 56K you can download 1MB in 0.6 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=IMA85U4KZ

:::.. Download Stats ..:::

Connection is:: 14210 Kbps about 14.2 Mbps (tested with 12160 KB)

Download Speed is:: 1735 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 254 times faster than 56K you can download 1MB in 0.59 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=KL7G9CRVS

Thanks Cable and Van... keep up the good work!

Link to comment
Share on other sites

:::.. Download Stats ..:::

Connection is:: 5809 Kbps about 5.8 Mbps (tested with 5983 KB)

Download Speed is:: 709 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 104 times faster than 56K you can download 1MB in 1.44 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=3FJLWGBI7

Awsome, Nice. Keep it up CA3LE. :evil6:

Link to comment
Share on other sites

Well here are my results, altho that lil progress bar was so choppy i was getting sea sick :lol:

( mabey its my settings.. but meh i dont care anymore :P )

:::.. Download Stats ..:::

Connection is:: 5436 Kbps about 5.4 Mbps (tested with 5983 KB)

Download Speed is:: 664 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 97 times faster than 56K you can download 1MB in 1.54 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=JBFI7A6QD

Link to comment
Share on other sites

:::.. Download Stats ..:::

Connection is:: 654 Kbps about 0.7 Mbps (tested with 1496 KB)

Download Speed is:: 80 KB/s

Tested From:: http://www.testmy.net/

Bottom Line:: 12 times faster than 56K you can download 1MB in 12.8 second(s)

Validation Link:: https://testmy.net/cgi-bin/get.cgi?Test_ID=0VS9WDOP2

Advertised 750kb/s so not bad

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...