SRCDS Steam group


Rcon stats CPU usage
#1
When I type rcon stats in console, it shows the CPU usage is 0.00. I have seen other servers do this before but how do I make it show its true value? I have tried running with and without taskset. They both appear to be 0.00 usage in-game.
Reply
#2
cpu usage of the stats command is wrong most of the time. just ignore it. (cpu usage isn't any information of value in any case for game servers)
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
not allways > but if your change something on the hz or something other modification then yes. Some guys changing the user hz in param.h > that changes the CPU Usage from 0% up to 99% ... but there at 99% the CPU hasnt 99% hope you understand ^^
Reply
#4
I don't change anything in param.h. I even have only HZ=100. nevertheless cpu usage shown in stats is completely different from that in top. But even top and htop show different cpu usages, so... I for my part don't look much at the cpu usage. Unless it's very high (in top), everything is fine. Doesn't matter, if you have 50% or 5%.
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
#5
with hz=1000 and user hz=100 on my tests with older kernel i got the same cpu usage like rcon stats +-5% but this could be completly different because of other chipsets e.g. i think so.
Reply
#6
Turn off HRTIMERS and use a hz of 250.
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#7
(10-16-2009, 09:01 PM)Monk Wrote:  Turn off HRTIMERS and use a hz of 250.

then you'll get 250 fps only...
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
#8
CPU usage scales with HZ, but the Linux binaries use a divisor of 66 (hz / jiffies).

You cannot have 1000fps with 5% usage, the engine has too many expensive APIs.
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#9
then you'll get 250 fps only... <<<< thats true

CPU usage scales with HZ, but the Linux binaries use a divisor of 66 (hz / jiffies). <<<< Monk pls give me an e.g. and where did you get these information?

You cannot have 1000fps with 5% usage, the engine has too many expensive APIs. <<<< how do you know that (Monk)? Normally you will get (on top) 3-5%CPU usage with newer kernel.

Hopefully we are talking about hlds...
Reply
#10
Monk is mistaken, at least if you run on hrtimers. I have servers running at 1000 fps and using like 5% or even less of cpu when empty. Whatever 5% cpu usage means, I remind you that this is a very bad quantity to observe for srcds/hlds servers...

Just use an (more or less) up-to-date kernel with hrtimers and HZ=100. Increasing the HZ only increases the interrupt load but doesn't help the game server (as it will generate it's own interrupts using hrtimers).
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
#11
you cant run 1000fps with 100hz without hrtimer?
Reply
#12
I am talking about with people in it.

Of course it's going to chug CPU power, it's sitting there calling nanosleep over and over HZ times a second (or whatever HZ is set to / if HRT is enabled)
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#13
where can i get information about these things nanosleep/usleep/vsyscall > in camparison with gameserver?
Reply
#14
ok with players, the cpu usage will probably more or less be linear with the number of active players. ok dead players count less, that I can see clearly when I compare my 22 slot public with my 16 slot deathmatch :-)
but nevertheless, even the full deathmatch server doesn't take more than 50% of one cpu. I got 4 cpus, but running 8 full servers would really be impossible...

@peter_pan: what kind of information do you want? nanosleep and usleep are linux functions, they are pretty well documented in their man page (type "man usleep" at a linux console). a "vsyscall" is just a linux construct to avoid slow software interrupts for making system calls (i.e. calling kernel code from user space).
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
#15
yeah .... i know that > but where can i find information about "how can i use it to compile a pre lib" > is that c programming? that i need to learn things about that to write a little program which i have to pre load to get 1000 fps? can i get with these libs high constant 500fps? is the load of these server are much higher? or lower?


"CPU usage scales with HZ, but the Linux binaries use a divisor of 66 (hz / jiffies).
You cannot have 1000fps with 5% usage, the engine has too many expensive APIs." >>> what does this say? where did he get this information?
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)