SRCDS isn’t multi-threaded which means that the server will only utilize two threads, one for networking and one for the server and its physics, so it doesn’t matter if your server has a hex-core processor with low clockrate. A dual-core with higher clock-rate would benefit the server alot more.
You can check if the server is using 100% of a thread at that point if you install the htop linux package:
apt-get install htop
-- Or this one, depending on what distro of linux you use.
yum install htop
Now run the newly installed package by issuing a command: htop
You will see a few bars looking like this, depending on how many cores/threads you have and if Hyper-Threading is enabled:
Those are your CPU’s cores/threads. If one of them are utilizing nearly 100% when your server is under load, then you know your CPU can’t handle the amount of players and/or physics your server is having. That’s when you put this into the startup params of your shell script: -tickrate 33.
Setting the tickrate to lower is very useful, the default tickrate is 66, setting it to 33 won’t make any difference on Garry’s Mod, but it has heavy impacts on games that relies on precision such as the Counter-Strike and Team-Fortress series.
Hope this helps a bit!
[editline]20th January 2014[/editline]
Also, a tip:
The Intel Xeon E3-1290v2 (3.7Ghz, 4.1Ghz turbo boost), Intel Xeon E3-1240v2 (3.4Ghz, 3.8Ghz turbo boost) and Intel Xeon E3-1230v2 (3.3Ghz, 3.7Ghz turbo boost) are very good CPU’s for handling a GMod server!
Turn on net_graph 4 in your own console and watch the blue line at the very bottom of the graph when connected to your server. If red spikes appears there, the server lags. If not, your computer is the one that lags.
Hey, I’m having the same problem, I am having the same red bars at the bottom of the net graph. I have installed and run htop but it’s not showing any cpu overload. Eveyone’s ping on the server is less than 100, well mostly. See images below:
I am unsure, I am hosting from a VPS, the only information I am given is that there are 3 cores dedicated to the VPS. I have submitted a request for the information though. I will apply the changes suggested and report back
EDIT: The problem seems to persists when I set the parameter to 33.
Yes, SRCDS hardly never uses more than 600MB. And that CPU should be able to handle a fair amount of players without issue, so it’s problably as Robotboy says; it’s client-side - your own network being the issue.