2005 Running a Lag Free HL2 Server. All rights reserved.
G) 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"
Running a Lag Free Half Life 2 Server:


Next Page (page 4)

H) 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)
Previous Page (page 2)

J) This tweak lets you overall boost your performance. (Tweaking the Swap File) You need 256MB of RAM or more to do this.
1) Select "Run", then "Start", and then type in "msconfig.exe"
2) Select the "SYSTEM.INI" tab
3) Add "ConservativeSwapFileUsage=1" under the "386enh" section
4) Click "OK" and reboot windows for the changes to take effect

K) This tweak will decrease boot time and make XP A LOT faster.
1) Go to "Start", then "Run", and then type in "Regedit"
2) Locate the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
3) Double Click "EnablePrefetcher", set it to "Decimal" and put a 3 in the box
4) Click "OK" and reboot windows for the changes to take effect

You may also want to do an error-check every once and a while also.
If you do not want to do this everytime, you can get a batch file that automatically sets it to run at AboveNormal. You can download a copy of a batch file here. Note- you have to edit the batch file to where you server is located, maxplayers, etc.... You can edit it by right clicking on the file and clicking edit. Once edited, you can run this batch file from anywhere on your computer, it does not need to be in the dedicated server folder. The batch file will automatically start the dedicated server.
I) This tweak lets you fine tune your memory for better performance. You need at least 256MB of RAM to do this.
1) Go to "Start", then "Run", and then type in "Regedit"
2) Locate the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
3) Double Click "DisablePagingExecutive", select "Decimal" and put a 1 in the blank. This allows windows to keep data in memory instead of paging sections of RAM to the hard drive, Click OK
4) Double Click "LargeSystemCache", select "Decimal", and put a 1 in the blank. This allows XP kernal to run memory (improves system performance a lot). Click OK
5) Create a New "Dword" by right clicking in the "Memory Management" Folder. Once the "Dword" is created, name it "IOPageLockLimit". Double click it and select "Hexadecimal", put a 4000 in the blank if you have 128MB of RAM, set it to 10000 if you have 256MB of RAM, or set it 40000 if you have 512MB of RAM or more. This tweak will speed up your diskcache. Click OK
6) Reboot for changes to take effect

L) I recommend updating to Service Pack 2 because it disables some services that aren't required. You can get Service Pack 2 by doing an update. Since Service Pack 2 has a firewall, you need to set your server.exe file to be a firewall exception.
1) Go to the "Control Panel"
2) Select the "Windows Firewall" icon
3) Select the "Exceptions" tab
4) Click the "Add Program" button
5) Select "Browse" and navigate to your server.exe