Posts: 72
Threads: 7
Joined: Jun 2011
Reputation:
0
So we're troubleshooting our samp server, a VPS.
We've added additional cores through our host and when we reach upwards of 100 players things get laggy and the CPU sits around 84-100% CPU.
I've seem some discussion on unloading high resolution kernel timers and it improving performance, we also have some edits coming into our next script build on car respawn timers to lighten the load.
Any other advice/suggestions on how we can lighten our CPU load? Any info on how to unload the high res timers?
Posts: 218
Threads: 22
Joined: Jul 2010
reliable fast and efficient streamers are the best way to lessen CPU usage
Posts: 388
Threads: 18
Joined: Apr 2011
Reputation:
0
Go for a dedicated server since you will be leasing hardware and it would be in your hands. If you cannot afford a dedicated server, then go to a server host that doesn't limit CPU usage too much.
Or you can always try removing bits of your script that you don't need (ex: maps)
Gotta say that your lucky that your vps does not reboot when it hits up to 100%, when I used to own a vps if I hit 100% CPU usage it would automatically reboot.
Posts: 1,600
Threads: 3
Joined: May 2011
Reputation:
0
More information is always helpful. Care to show us what your CPU info and load averages are?
Posts: 72
Threads: 7
Joined: Jun 2011
Reputation:
0
CPU load right now with 63 players on bounces a bit heres a few
51%
27%
53.4%
30.5%
51.4%
29.9%
55.7%
Average right now (63 players) is 0.24 , 0.22., 0.19 it's setup for 8 cores so we should be screaming according to my host
Allocated about 2 gigs of ram.
Plugins:
audio
mysql
sscaf
streamer
filemanager
Includes:
mysql
foreach
djson
progress
ysi
zcmd
ssacanf
audio
publicworks (custom w flare objects/cones etc)
dmap
MySQL hogs heaps of memory if not configured properly.
Posts: 72
Threads: 7
Joined: Jun 2011
Reputation:
0
memory doesn't appear to be our problem, we're fine on memory, it's the CPU that is getting bogged down
Posts: 1,600
Threads: 3
Joined: May 2011
Reputation:
0
It seems like something on your script is not properly configured, which could cause some CPU leakage.
Posts: 72
Threads: 7
Joined: Jun 2011
Reputation:
0
Will have our scripters investigate further. Does SAMP server support multi threading?