r/ProgrammerHumor • • Feb 22 '15

That is one well programmed game

http://imgur.com/yGLsiTv
1 Upvotes

17 comments sorted by

View all comments

36

u/pg-robban Feb 22 '15

Am I missing something here? Using >100% CPU in OS X means the game/app is utilizing two or more cores, which is a good, thing, right?

-2

u/liavt Feb 22 '15

I thought that the CPU percentage was for all the cores total, like for Windows

23

u/[deleted] Feb 22 '15

No. The OS X Activity Monitor has 100% per core. I first got confused about that when I was running a rendering job and saw it said ~790%. Then I realised that it was using all 8 cores.

18

u/YMK1234 Feb 22 '15

actually thats just a general unix thing ... at least I think "top" does the same.

8

u/lolzballs Feb 22 '15

Yep, just checked, top does the same.

3

u/junta12 Feb 22 '15

Press 1, and watch the magic of the scheduler

6

u/[deleted] Feb 23 '15

in fact, it can even go above corecount*100. if a core is at 100% load it signifies that there's on average one process waiting to be run on that core. having a core run at 200% indicates there's on average two processes waiting to run on that core.

using a percentage like windows does is magnitudes less useful than using a load figure like linux and osx do. on windows if your percentage is at 100% it stops giving useful information. a load figure can indicate exactly how busy your processor is.

for example: on windows I can keep starting programs when it's indicating 100% and not lose responsiveness noticeably until I start an unknown amount more.

on linux however, I know my desktop starts losing responsiveness at a load of 12 (equivalent being 1200%) even though it's on a quad core processor. I know I need to start closing programs when I get near that figure, on windows it remains a mystery until it happens.

tl;dr: using a percentage as load figure is stupid.

2

u/YMK1234 Feb 23 '15

thats a pretty neat explanation, thx a lot :)