New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Manually allocating processor core usage?


Post Reply New Thread Subscribe

 
Thread Tools
algetards

 
Member Since: Sep 08, 2013
Posts: 1
algetards is on a distinguished road

algetards is offline
Hi all,

So I'm not sure if I'm posting this in the right seciton, but here it goes. So my logic board is broken and Activity Moniter shows that kernel_task (the os itself) is using between 500-600% CPU usage (I have 8 cores so this is about 63-75% CPU capacity)

For reasons I won't get into, I can't fix my computer for about a month. However, there are some higher-performance things I still would like to do. For example, play Dwarf Fortress. Now Dwarf Fortress is not multithreaded, so in theory, if the crazy-high kernel_task usage is restricted to 6 cores, and I can somehow guarentee that 1 core is mostly dedicated to Dwarf Fortress, then I could still play it to a degree. (It's possible that slowdown due thrashing and multi-core issues makes this impossible, but I'm not sure).

Is there some way I can run the program giving it precedence to one of the cores? Or on the other side, restrict kernel_task to the first 6 cores? I'm pretty sure the program itself has no mechanism for this, so it would have to be something from the mac side. I thought maybe virtualizing a machine and dedicating the cores to that machine might work, but the overhead might make the whole thing slower. I'm a technical user, so any suggestions are welcome.

Thanks,
Sam
QUOTE Thanks
Lifeisabeach

 
Lifeisabeach's Avatar
 
Member Since: Sep 30, 2007
Location: Wilmington, NC
Posts: 7,003
Lifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond repute
Mac Specs: iMac i3 (mid-2010) + OS 10.9; TV 3; iPhone 5S; iPad 4

Lifeisabeach is offline
Quote:
Originally Posted by algetards View Post
So I'm not sure if I'm posting this in the right seciton, but here it goes. So my logic board is broken and Activity Moniter shows that kernel_task (the os itself) is using between 500-600% CPU usage (I have 8 cores so this is about 63-75% CPU capacity)
What the.... ???? I'm dying to now exactly in what way your logic board is broken; why that is making the OS use the CPU to that degree; and how you plan to fix it. Seriously. I don't even know how this thing is running.

Quote:
For reasons I won't get into, I can't fix my computer for about a month. However, there are some higher-performance things I still would like to do. For example, play Dwarf Fortress. Now Dwarf Fortress is not multithreaded, so in theory, if the crazy-high kernel_task usage is restricted to 6 cores, and I can somehow guarentee that 1 core is mostly dedicated to Dwarf Fortress, then I could still play it to a degree. (It's possible that slowdown due thrashing and multi-core issues makes this impossible, but I'm not sure).

Is there some way I can run the program giving it precedence to one of the cores? Or on the other side, restrict kernel_task to the first 6 cores? I'm pretty sure the program itself has no mechanism for this, so it would have to be something from the mac side. I thought maybe virtualizing a machine and dedicating the cores to that machine might work, but the overhead might make the whole thing slower. I'm a technical user, so any suggestions are welcome.
Someone more knowledgable may come along to contradict me, but from what I understand, an app can only use multiple cores if it knows how to. Besides, if the OS is really using that much CPU power on its own, I would venture that trying to do anything more that's CPU intensive would be very... very... foolish. You are just begging for this thing to overheat and kill the CPU.


Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
I think you need to solve the excessive kernel functioning rather than containing the problem.

The kernel will frequently use quite a bit of memory but unless you're doing a lot of low level stuff, the kernel doesn't/shouldn't be blowing through CPU cycles like that. What are you doing on that machine?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 27,806
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
Quote:
Originally Posted by algetards View Post
So I'm not sure if I'm posting this in the right seciton, but here it goes. So my logic board is broken and Activity Moniter shows that kernel_task (the os itself) is using between 500-600% CPU usage (I have 8 cores so this is about 63-75% CPU capacity)
If your logic board was truly broken...there's a strong possibility that the computer wouldn't even work.

Try this:

- Open Activity Monitor
- near the top of the Activity Monitor window choose "All Process's" from the drop down menu.
- look thru the list to see what's using all of the "% CPU" resources.
- then select the "offending" activity
- then click on the "Quit Process" icon.

See if this helps. If not...try booting the computer from an external hard drive with a fresh install (and a fresh install only) of the OS version you're currently running. See if this helps.

If the external HD idea helps...then you have applications that are running on your computers internal HD that are using up the cpu resources.

- Nick

- Too many "beachballs", read this: Beachballs
- Computer seems slower than it used to? Read this for some slow computer tips: Speedup
- Almost full hard drive? Some solutions. Out of Space
- Apple Battery Info. Battery
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Can you (force) quit the kernel_task process? It seems like that could be dangerous.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 27,806
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
Hey what the heck...the guy's already got an 8 core computer using 500-600% cpu unnecessarily.

I kind of prefer the "fresh OS install on an external HD" idea myself. If the internal HD has a problem that is software related...even if the kernel task is the issue & can be "quit" via Activity Monitor...the problem will only return on rebooting.

Basically if none of these ideas work...then maybe there is a hardware issue.

I always fall back on the issue I had with the core 2 duo MacBook Pro that my wife is now using. It had an almost 200% cpu issue (max. cpu use for a core 2 duo computer)...I tried everything I suggested in this tread & more with no solution.

Took it to the Apple Store (still had warranty on it)...they said that it was a bad fan. Fan was replaced...computer has been great for over a year!

- Nick

- Too many "beachballs", read this: Beachballs
- Computer seems slower than it used to? Read this for some slow computer tips: Speedup
- Almost full hard drive? Some solutions. Out of Space
- Apple Battery Info. Battery
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 27,806
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
Actually I just tried quitting the kernel task on my computer (putting my money where my mouth is so to speak)...and Activity Monitor does not allow it (the "Quit Task" button doesn't activate).

When I mentioned quitting a task in Activity Monitor in my 1st post above...I was really thinking of other tasks. The I reread the OP's post...and saw that they actually mentioned the kernel task as the problem.

So maybe the external HD idea (or booting into Safe Mode) are better things to try.

- Nick

- Too many "beachballs", read this: Beachballs
- Computer seems slower than it used to? Read this for some slow computer tips: Speedup
- Almost full hard drive? Some solutions. Out of Space
- Apple Battery Info. Battery
QUOTE Thanks

Post Reply New Thread Subscribe


« Objective-C methods | Designs can truly damage the whole program »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
CPU Usage Knautical OS X - Operating System 4 02-17-2013 06:10 AM
AT&T aims to have developers pay for app bandwidth usage OneMoreThing... Apple Rumors and Reports 3 02-28-2012 08:30 AM
Flash 10.2, no difference in CPU usage The_Pro OS X - Apps and Games 6 01-02-2011 08:55 AM
Looking for tips to keep data usage down The_Grudge iPhone Hardware and Accessories 6 03-12-2010 09:37 PM
Internet Usage Tracking hippz420 OS X - Apps and Games 1 05-12-2009 06:14 PM

All times are GMT -4. The time now is 11:04 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?