Profiler, CPU at 7-13% on 8 cores.
#7

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
I've checked and it is averaging 8%, but maxing 13% sometimes. When I said that was low, KingJ told me it was for 8 cores on a whole, even though I'm unsure how it can be calculated like that as SA-MP only uses 1 core.
CPU usage is calculated based on all available cores, so if you have a single process using all 8 cores, then that process is effectively using 100% of the available CPU capacity.

For the most part, the SA-MP server is single threaded, it does perform operations on a few threads but most of the processing, script processing especially, is only performed on a single thread.

Now, a single threaded application can only use at most one core. So if you're fully utilising 1 core of an 8 core server, the CPU usage will be reported as 1/8 = 0.125, or 13% when rounded up.

Hope that helps explain why 13% CPU usage is considered high.
Reply


Messages In This Thread
Profiler, CPU at 7-13% on 8 cores. - by Kyle - 13.01.2014, 18:49
Re: Profiler, CPU at 7-13% on 8 cores. - by maddinat0r - 13.01.2014, 18:57
Re: Profiler, CPU at 7-13% on 8 cores. - by Kyle - 13.01.2014, 19:03
AW: Profiler, CPU at 7-13% on 8 cores. - by Mellnik - 13.01.2014, 19:04
Re: Profiler, CPU at 7-13% on 8 cores. - by Yashas - 13.01.2014, 19:07
Re: Profiler, CPU at 7-13% on 8 cores. - by Kyle - 13.01.2014, 19:08
Re: Profiler, CPU at 7-13% on 8 cores. - by KingJ - 13.01.2014, 19:08
Re: Profiler, CPU at 7-13% on 8 cores. - by maddinat0r - 13.01.2014, 19:11
Re: Profiler, CPU at 7-13% on 8 cores. - by Yashas - 13.01.2014, 19:12
Re: Profiler, CPU at 7-13% on 8 cores. - by Kyle - 13.01.2014, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)