RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
hecktic



PostPosted: Tue Jul 10, 2007 10:25 am    Post subject: Host Statistics Reply with quote

On the 5 minute graph it says the cpu max usage was running at 118%.

Now on the physical server itself it is running Fedora Core x86_64 (Latest Stable) and has Intel Xeon x3220 Quad Core (2.4ghz)

Does the graph mean it was out of the 4 cores or only 1 core ?

in other words 4 cores would be 400% and 1 core is just 100%
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Andrew
Mammoth


PostPosted: Tue Jul 10, 2007 2:27 pm    Post subject: Reply with quote

A bit too hard to say, we would need to look closer at this - I dont have time at the moment to run off and test myself.

The CPU value is pulled from /proc/ I believe so whatever that is reporting is relayed to GameCreate.

I know on Windows 4 cores at 100% each == 100% on the graph.
Back to top
View user's profile Send private message
Kybber



PostPosted: Tue Jul 10, 2007 10:04 pm    Post subject: Reply with quote

The database field that stores CPU usage is capped
at 255, so unless it actually lets 100% be total for
all CPUs, then there will be problems for hosts with
more than 2 and a half CPUs. Wink

However, this problem is unfortunately not quite that
simple. For instance, for CSS-servers the reported
CPU-usage depends on the kernel jiffies, also
commonly known as tickrate (not to be confused
with the game's tickrate) or Hz. In CSS this is assumed
to be 100, but in order to run a good CSS-server, it
should be much higher. 1000 is a value that is
commonly used, and this results in reported CPU-
usage 10x as high as actual usage (easily verified
with 'top' which reports correctly).

I don't know if GC can correct for this, but if you can
then the following relation gives correct cpu usage
for CSS and other games that report incorrectly (RO
comes to mind, probably all steam-games):

cpu_usage = reported_cpu_usage * jiffies / 100

Edit: This may only apply to game stats and not host
stats. Don't know the method you use to pull this info.
Back to top
View user's profile Send private message
Andrew
Mammoth


PostPosted: Wed Jul 11, 2007 9:36 am    Post subject: Reply with quote

Its capped at 255 because it shouldn't really exceed 100% - By definition 100% is the maximum.

If its doing multiple CPUs in the one percentage it should probably be changed to combine all values and take 100% as all CPUs working together.

Will note it down as an issue.
Back to top
View user's profile Send private message
hecktic



PostPosted: Wed Jul 11, 2007 11:10 am    Post subject: Reply with quote

and now the problem gets more complicated with a quad core machine... Razz

400% ? (100% per core X 4 cores)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.