VDS lag at about 3 players.

Alright so my VDS is a 3 core, 3 gigs of RAM VDS, but Garry’s Mod is single threaded and I run a DarkRP server.

On my DarkRP server we start getting a lot of lag around 30 people, we will basically sit on 1 ticks a second while that happens.

The title should say 30 my bad typing.

[editline]1st January 2014[/editline]

My Config


sv_region		255
sv_lan			0
sv_kickerrornum 0
sv_logbans		0
sv_logecho		0
sv_logfile		0
sv_log_onefile		0
sv_noclipspeed		5
sv_noclipaccelerate	5
sv_kickerrornum 0

// Sandbox server settings
"sbox_allownpcs"                "0"
"sbox_godmode"                "0"
"sbox_plpldamage"            "0"  // set this to 1 to disable player vs player damage.
"sbox_playergod"                "0"
"sbox_noclip"                "0"

// Sandbox limits
"sbox_maxprops"                "30"
"sbox_maxragdolls"            "0"
"sbox_maxnpcs"                "0"
"sbox_maxballoons"            "0"
"sbox_maxeffects"            "0"
"sbox_maxdynamite"            "0"
"sbox_maxlamps"                "0"
"sbox_maxthrusters"            "0"
"sbox_maxwheels"            "0"
"sbox_maxhoverballs"            "0"
"sbox_maxvehicles"            "0"
"sbox_maxbuttons"            "6"
"sbox_maxsents"               "0"
"sbox_maxemitters"            "0"
"sbox_maxspawners"            "0"
"sbox_maxturrets"            "0"
M9KDisablePenetration 1
M9KGasEffect 0
M9KWeaponStrip 0
mp_falldamage		"1"
sbox_maxtextscreens 5
sv_allowcslua		"0"
sv_cheats 0
sv_maxrate 0
sv_minrate 100000
sv_maxupdaterate 99
sv_maxcmdrate 99
sv_timeout 120
sv_allowupload 1
sv_allowdownload 1
log on
mp_fraglimit 0
mp_footsteps 1
mp_flashlight 1
decalfrequency 60
mp_decals 100

30 people is actually a lot, you should try to set the limit to around 24 And 3gbs of ram is not a whole lot

IIRC you can use multi threading with Dedicated server, I don’t remember the console commands though.

SRCDS is not built to be multi-threaded. Valve tried making SRCDS multi-threaded once and thrashed the idea after testing according to http://srcds.com
On the other hand, SRCDS uses a second thread to handle all the incoming network traffic.

I would really like to get a hand on those commands so I can have a look.

@OP, remove everything that has with rates (sv_maxupdaterate, sv_maxrate, sv_minupdaterate, etc) to do from your server.cfg and add +tickrate 33 to your server’s startup params. This should lighten your server’s load a little bit atleast.

It’s perfectly enough to run a few servers. SRCDS doesn’t use much RAM at all (Approx 400-600MB at most), but it’s a CPU hungry beast.