Make Your Cs 1.6 Server Lag Free, Hlds Lag Free Servar
Optimise your PCThis information will apply to both serious professional server operators and small server operators who want to run a professional quality server on their home broadband connection. Home broadband connections will never be as good as a dedicated T1+ line for running a server, but it is possible to run a very smooth running, fun server off your home broadband connection.
Computer Stats:
Server Size: 8
CPU: 800 Ghz
RAM: 256MB
Server Size: 16
CPU: 1200 Ghz
RAM: 384MB
Server Size: 24
CPU: 1600 Ghz
RAM: 512MB
Server Size: 32
CPU: 2200 Ghz
RAM: 768MB
Specs- I recommend at least a 1.5ghz processor or faster. I also recommend 512 MB of RAM or more. A Pentium 4 isn't much faster than a Celeron, but a Celeron is fine as long as you aren't expecting to run a 20 player server with no lag. If you are short on memory such as 256MB of RAM, it will run, but it may lag when more and more people start joining. I recommend Windows XP Pro. I know all of you are thinking, why not use a Server Edition or 2000? I like Windows XP Pro because once its tweaked, it can run very fast. In addition to that, it is very user-friendly unlike Linux or Server Edition for the n00bs out there. Here are the specs of my server:
2.66 Ghz Core 2 Quad
2 GB RAM
Windows XP Pro
It runs around 9 players without any noticable lag. The next thing that you want to count into detail is the FSB (Front Side Bus). You want a high FSB. Front-side bus is the speed at which the CPU communicates with RAM memory and the motherboard chipset. My server has a very slow FSB, at 400mhz. Most new Penitum 4 computers have a 800mhz FSB. The more you have, the better. I would say you want a minimum of 400mhz FSB. The new 64 bit AMD processors have the FSB built into the chip, so any 64 bit AMD processor has plenty of FSB. If you can afford a 64 bit processor, get it. Many servers run RAID. RAID is when you have 2 hard drives, and you put them togethor for a performance increase. This may not be a great performance increase on SRCDS though, you will not notice much of a difference.
Running a Lag Free Half Life 2 Server:
Internet- In addition to having a somewhat fast computer, you also need a fast Internet connection. I only recommend cable/anything faster (I recommend DSL if it has a high upload rate- see chart below for more info). Don't use wireless due to the slower speeds and sudden disconnection if there is an interference anywhere in the house. Since you will be on a network, (unless you are using the server on the same machine as you play games - I don't recommend!) try to keep as many people off the Internet as possible. If less people are on the network then more bandwidth will be available. DSL can be faster in some ways than cable, but, from experience, I do not recommend it.
Upload Download Speed
Cable
200 kbps-30 mbps
128 kbps-3 mbps
DSL
144 kbps-8 mbps
128 kbps-8 mbps
As you can see, cable has a far faster download rate. The advantage to DSL is that it has a high upload rate. When running a server, you want a high upload rate. Compare your cable/dsl companies upload rate. The more the better. DSL can be better than Cable in many ways.
sv_maxrate
sv_minrate
sv_maxupdaterate
You will find these in your server.cfg file. If they aren't there, you will have to add them.
sv_minrate should always be set at 0. This will allow your dial up clients to set their rate as low as they need to so that they can play with as little lag as possible.
Generally the most bandwidth you will ever need to allow your clients to use is 6144. Anything above this is gravy. It is also entirely possible to run a server with a maxrate of 3072.
sv_maxrate 6144
bandwidth in Kbps / 48 = recommended number of slots
sv_maxrate 3072
bandwidth in Kbps / 24 = recommended number of slots
Running backwards you can calculate your sv_maxrate this way.
sv_maxrate = bandwidth X 128 / server size
So if you want to run a 24 person server, and you have 1400 Kbps in bandwidth available, 1400 X 128 / 24 gives you an sv_maxrate of 7466.
The last thing to calculate is sv_maxupdaterate. This is, perhaps, the single most important server side setting in running a lag free server. And this setting should be much lower than you might imagine, if you want to run a lag free, smoothly operating server.
The calculation that I recommend for sv_maxupdaterate is as follows:
sv_maxupdaterate = sv_maxrate / 512
So for the above sv_maxrate of 7466 you would divide that by 512 to get an sv_maxupdaterate of 14. This may seem extremely low, but I guarantee you it will give you a low ping, smooth running, lag free server.
Tweaks- Its time to tweak Windows XP! The following tweaks will improve your Windows performance. Before you edit the Registry, please backup it up by opening "regedit" from the run menu. Then select "File" and then "Export". Make sure you choose the "all" button for the export range.
A) This tweak lets you utilize the total amount of bandwidth offered from your Internet connection: (XP Pro Only)
1) Click Start, Select "Run"
2) Type "Gpedit.msc"
3) Expand the "Local Computer Policy" branch
4) Expand the "Administrative Templates" branch
5) Expand the "Network" Branch
6) Highlight the "QoS Packet Scheduler" in the left window
7) In the right window, double click the "limit reservable bandwidth" setting
8) On the settings tab, check the "enabled" item
9) Where it says "Bandwidth limit %" change it to read 0
10) Click Apply and then OKRunning a Lag Free Half Life 2 Server:
B) Turning off Nonessential Windows Services can greatly improve performance.
1) Go to the "Control Panel", then select "Administrative Tools"
2) Select the "Services" icon
3) To disable a service: right click it, and select "Stop"
4) Here is a list of nonessential services:
Application Management
Clipbook
Error Reporting
Distributed Link Tracking Client
Help and Support
Indexing
IPSEC
Messenger
Remote Registry Service
Telnet
Windows Time
WMI Performance Adapter
C) Defragmenting your hard drive puts files into order; which makes the hard drive faster. Make sure to do this weekly.
1) Go to "My Computer"
2) Right click on the hard drive that your game server is installed on
3) Go to "Tools"
4) Click "Defragment Now..."
5) Click "Defragment"
D) Setting the CPU priority for a game server makes the server #1 on its list of things to do. (It makes it faster)
1) Press "Ctrl-Alt-Dlt"
2) Select the "Processes" Tab
3) Find your server name. For a Counter-Strike: Source server, the Service is called "Srcds.exe"
4) Right click on the server name
5) Click "Set priority", then select "AboveNormal" (note: you must do this every time)
E) This tweak will disable even more Windows visual enhancements that cause a slow interface.
1) Go to the "Control Panel", select "System"
2) Navigate to the "Advanced" tab and Select "Settings" underneath "Performance"
3) Select the "Adjust for best performance" bullet
4) Click Apply and OKRunning a Lag Free Half Life 2 Server:
F) Set the heapsize- This tweak allows the srcds.exe to use a exact amount of memory. (great performance boost)
1) Click right on the icon that you use to start your dedicated server
2) Find the target box
3) Go to the end of the line, and add -heapsize
4) After -heapsize add the following numbers for the amount of RAM you have:
128MB of RAM- 16384
256MB of RAM- 65536
512MB of RAM- 262144
1GB of RAM- 524288
2GB of RAM- 1048576
So if you had 1GB of ram, it would look like: -heapsize 524288
G) Improve NTFS Performance- Speed up your hard drive.
1) Click start, run, and type in regedit in the box
2) From the drop down menus, navigate to HKEY_LOCAL_MACHINE
3) Navigate to SYSTEM
4) Navigate to CurrentControlSet
5) Navigate to Control
6) Naviagte to Filesystem
7) Click right inside the white box and select New-> DWORD Value
8) Type NtfsDisableLastAccessUpdate in the box
9) Click right on the new DWORD IRQ8Priority
10) Click Modify
11) Type 1 into the Value data blank
12) Click OK and close out of the registry editor
H) Always minimize the server screen because it uses less RAM when minimized.
to way
E) Running Clean Disk gets rid of files such as temporary Internet files that can slow down the computer.
1) Go to "Start", "Program Files", and then "Accessories"
2) Select "System Tools", then Select "Disk Cleanup"
3) Click "OK"
Cvars:
Having said all that, and once your hardware is in place, the most important lag free tips are your cvars.
You will find the following cvars in your server.cfg file. If they aren't there, you will want to add them.
sv_minrate should be set to 5000 (setting it to 5000 will make dialup users not be able to play)
Set minrate to 0 if you want dial-up users to be able to play on your server
sv_maxrate should be set to 9999
sv_minupdaterate should be set to 13
sv_maxupdaterate should be set to 30
If you have alot of bandwidth, set sv_maxrate to 0. When it is set to 0, it allows unlimited bandwidth.
According to the Valve support page, the maxplayers should be set around the following:
128K uplink = 2 players
256k uplink = 4 players
320k uplink = 6 players
512k uplink = 9 players
768k uplink = 14 players
1024k uplink = 19 players
1140k uplink = 21 players
1708k uplink = 32 players
In order to find out your upload, click here and run the test.
www.speedtest.net
Thanks to Watch ..
Any Problem Comment Me
No comments:
Post a Comment