LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2005, 10:10 AM   #1
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2000 MySQL connections, still "too many connections" newlinuxnewbie Linux - General 0 11-07-2005 01:03 PM
Tips lukepiewalker Linux - Newbie 4 08-03-2005 06:18 AM
Any tips? little_ball Linux - Networking 3 01-05-2004 11:42 AM
KDE Performance Tips h1tman Linux - Software 0 08-03-2003 12:03 AM
Tips Mia Linux - Newbie 0 12-07-2001 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration