Many connections, any performance tips and/or help
Hi there, I run a BitTorrent tracker, and we are tracking an average of 350,000 peers, so there are many connections flying around. Most is TCP but we also have a small percentage of UDP connections too.
But recently I have noticed a few timeouts to and from the server, for both the tracker and the http page.
The Server.
I run on a Dedicated server, at the moment its on a 10Mbit line, but will soon move to a 100Mbit line with 4TB/month allowance.
Its a 'Intel(R) Pentium(R) 4 CPU 2.80GHz' with 1GB of RAM. I am currently running Fedora Core 3.
The first thing I did, was change the kernel from the SMP to '2.6.12-1.1376_FC3' because I only have 1 CPU. Is this a good idea? HT doesn't work like multi processors so i changed it.
I have many questions for you guys, so I will just write them all here and hope someone can help get the best performance from my server.
The tracker has no public face, and is a 100% anonymous (no logging what so ever) and you don't need to upload the .torrent for it to be tracked, it will track any info_hash /announce'd to the tracker.
So far I have edited the following file settings in '/proc/sys/net/ipv4/'
For ICMP related things I have set the following;
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts - Set to 0
/proc/sys/net/ipv4/icmp_echo_ignore_all - Set to 0
/proc/sys/net/ipv4/conf/all/accept_redirects - Set to 0
/proc/sys/net/ipv4/icmp_ignore_bogus_error_responses - Set to 1
For connections etc;
/proc/sys/net/ipv4/ip_conntrack_max - is set to 411111 (is there a max? someone said 65k was the max you can set this value too!)
/proc/sys/net/ipv4/tcp_syncookies - Is set to 1
/proc/sys/net/ipv4/tcp_max_syn_backlog - is set to 10000
Other setting;
/proc/sys/net/ipv4/ip_forward - Is set to 0
/proc/sys/net/ipv4/conf/all/accept_source_route - Is set to 0
Are these setting ok? Do you guys, the experts recommend anything else? some tips or tricks you have picked up along the way.
Thanks in advance.
English_Man
|