The Linux kernel and the distributions that package it typically provide very conservative defaults to certain network settings that affect networking parameters.
These settings can be tuned via the /proc filesystem or using the sysctl program. The latter is often better, as it reads the contents of /etc/sysctl.conf, which allows you to keep settings across reboots.
The following is a snippet from /etc/sysctl.conf that may improve network performance:
[code]net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_syncookies = 1
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216[/code]
The above isn't to replace what may already exist in /etc/sysctl.conf, but rather to supplement it. The first command enables TCP window scaling, which allows clients to download data at a higher rate by enabling extra bits in TCP packets that are used to increase the window size.
The second command enables TCP SYN cookies, which is often enabled by default and is extremely effective in preventing conditions such as SYN floods that can drain the server of resources used to process incoming connections.
The last four options increase the TCP send and receive buffers, which allow an application to move its data out faster so as to serve other requests. This also improves the client's ability to send data to the server when it gets busy.
By adding these commands to the /etc/sysctl.conf file, you ensure they take effect on every reboot. To enable them immediately without a reboot, use:
[code]$sysctl -p /etc/sysctl.conf[/code]
To see all of the currently configured sysctl options, use:
[code]$sysctl -a[/code]
This will list all of the configuration keys and their current values. The sysctl.conf file allows you to configure and save new defaults; what you see from this output are the defaults defined in the kernel that are currently effective. To see the value of one particular item, use:
[code]$sysctl -q net.ipv4.tcp_window_scaling[/code]
Likewise, to set the value of one item without configuring it in sysctl.conf -- and understanding that it won't be retained across reboots, use:
[code]$sysctl -w net.ipv4.tcp_window_scaling=1[/code]
This can be useful for testing the effectiveness of certain settings without committing them to being defaults.
Tuning Linux kernel for more aggressive network throughput
Windows and linux information and one stop centre for myself. Having difficulties to remember all things at once. This blog will remain be my references on the internet. Other people can take benefit from it. Thank you for visiting
Tuesday, August 25, 2009
Tuesday, August 4, 2009
Google Apps - a note for customer
Customer complaint cannot access to google apps by using their domain like http://mail.pmbk.gov.my
this problem should be from dns settings
double check the dns entry..
1) mail.pmbk.gov.my should have CNAME records to ghs.google.com
2) The MX records for that domain should go like this :-
pmbk.gov.my. IN MX 1 ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 10 ASPMX2.GOOGLEMAIL.COM.
pmbk.gov.my. IN MX 10 ASPMX3.GOOGLEMAIL.COM.
reload bind and you're done
this problem should be from dns settings
double check the dns entry..
1) mail.pmbk.gov.my should have CNAME records to ghs.google.com
2) The MX records for that domain should go like this :-
pmbk.gov.my. IN MX 1 ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
pmbk.gov.my. IN MX 10 ASPMX2.GOOGLEMAIL.COM.
pmbk.gov.my. IN MX 10 ASPMX3.GOOGLEMAIL.COM.
reload bind and you're done
Subscribe to:
Comments (Atom)
Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...
-
when trying to apt-get update i got this error message :- W: There is no public key available for the following key IDs xxxxxxxxxxxx t...
-
Skrip ini aku guna kat server aku.. backup mysql setiap hari. Hanya perlu ubah pada bahagian setting sahaja. chmod dan set cron untuk daily ...
-
This tutorial will help you get AWStats and Lighttpd working together. AWStats is an excellent log analyzer, and works well with Lighttpd. T...