SRCDS Steam group


Server CPU Usage
#1
Question 
Hey guys,
been prowling about the forums searching for an answer.
had a mix on my server and the CPU usage was sitting around 25-30% is this about right? zblock + pa_match running on server. Xeon 3ghz, 4gb ram

Command line ./srcds_run -game cstrike -port 27015 +map de_dust2 +maxplayers 14 -tickrate 100 +fps_max 0 +mapchangecfgfile server.cfg -autoupdate

When server is empty
stats
CPU In Out Uptime Users FPS Players
1.33 0.00 0.00 1171 5 895.26 0

server full
stats
CPU In Out Uptime Users FPS Players
35 # # 1171 5 950.27 10

any ideas?
Reply
#2
(02-12-2010, 05:41 AM)r0sc0 Wrote:  had a mix on my server and the CPU usage was sitting around 25-30% is this about right?

why shouldn't it?

some comments:
- cpu usage output of the stats command is completely nonsense, use top or some similar linux tool
- cpu usage in general is not a well defined quantity for game servers. game servers switch between the running and the sleep state at a frequency of 1000 Hz at least (if they are running at 1000 fps), but the cpu usage is measured also only with a frequency of 1000 Hz at most (depending e.g. on your kernel HZ setting)! that cannot reliable work.
- simply don't look at the cpu usage. there are better indicators for the performance. look how stable your fps are, and maybe look at the server load as output by the "uptime" linux command, e.g.:
Code:
load average: 2.13, 1.68, 1.52
means the load average was 2.13 in the last 60 seconds, 1.68 in the last 5 minutes and 1.52 in the last 15 minutes. a load average of 2.13 means that there are 2.13 processes in the "runable" state at the same time on average. "runable" means the process want's to have cpu time (and might be using it). 2.13 is fairly ok, as I have 4 cpu cores.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
BehaartesEtwas: thank you very much mate great information! Smile just started this dedi so wasnt sure what it should be running at, will check out those commands tonight and get a better indicator of usage.

Thanks again
Ross
Reply
#4
Hey sorry to be a pain
Top Result - 10 players on server
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15067 root 20 0 378m 283m 12m R 30 7.3 35:03.66 srcds_i686

Stats From CSS
CPU In Out Uptime Users FPS Players
32.25 39965.27 80266.34 374 5 754.15 7

Uptime command
19:00:07 up 2 days, 7:00, 1 user, load average: 0.44, 0.39, 0.36

theres alot of contridiction but mostly stats + top match.
im wanting to run a few more servers on this box, any ideas on how i can lower that cpu usage? also weirdly the fps drops drematicly as sometimes its 950 fps then it will be 750 as u can see in latest stats.
also iv noticed the fps is now at like 300 and if i do rcon rate 30000 it goes back to 900 fps
to keep upto date this is my server spec

IS-10612 (Dell PowerEdge Server)
- Intel Xeon Dual-Core 3040
- 4GB Memory
- 160GB 7200rpm Hard Disk
- Debian 5.0 x64

Regards
Ross
Reply
#5
lowering the cpu usage cannot really be achieved (without lowering fps and tickrate), as the game simply needs cpu to calculate the stuff. maybe you don't need to lower cpu usage but need to make the kernel more stable w.r.t. the timing. see my signature for a howto (I assume you are running at debian stock kernel? that's not bad but not optimal).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)