Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Notebooks > Survey of kernel CPU usage: Intel Macs Only

Survey of kernel CPU usage: Intel Macs Only
Thread Tools
itistoday
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Apr 14, 2008, 05:26 PM
 
Hi, I'm not sure if I'm seeing the kernel idle at what it should, this leads me to believe that there might be some renegade kernel extension that is misbehaving. However, before I embark on the painful journey of disabling kernel extensions one-by-one I'd like to make sure that what I'm seeing is anomalous.

If you own a fully-upgraded (as of this post it's 10.5.2) Macbook or Macbook Pro, with all the latest security updates and firmware updates, I would appreciate it if you helped with this little experiment, it might help you discover whether you have renegade extensions as well, and this can lead to poor performance and a shorter battery life.

1) Open up the Terminal in /Applications/Utilities/Terminal
2) Close all other applications. You need to make sure your computer is "idle".
3) Enter this into the terminal (it's a single line) and press enter:
[codex]top -ocpu -R -F -s 2 -n30 -l 6 | grep kernel[/codex]
4) Wait until it stops outputting, there should be 5 lines that each look something like this:
[codex] 0 kernel_tas 2.8% 5:21.66 60 2 0 0- 0 71M 1793M[/codex]
5) You're interested in the second number, the one with the % next to it.

Take these 5 numbers and average them (add them up and divide by 5) and post your results here. From what I could tell I'm getting somewhere around 2.6% on average.

Thanks!!

Edit: Also, it would help if you posted what kind of notebook you're running this on! (cpu frequency, etc) (I'm running a Macbook Pro 2.2 Ghz C2D)
( Last edited by itistoday; Apr 14, 2008 at 06:32 PM. )
     
davidflas
Mac Elite
Join Date: Sep 2000
Location: Boynton Beach, Florida, USA
Status: Offline
Reply With Quote
Apr 14, 2008, 06:06 PM
 
These are the results from the Macbook in my sig running 10.5.2, all updates installed:

0 kernel_tas 1.1% 7:53.37 56 2 0 0- 0 138M 1828M
0 kernel_tas 1.0% 7:53.39 56 2 0 0 0 138M 1828M
0 kernel_tas 1.1% 7:53.42 56 2 0 0 0 138M 1828M
0 kernel_tas 1.0% 7:53.44 56 2 0 0 0 138M 1828M
0 kernel_tas 1.0% 7:53.46 56 2 0 0 0 138M 1828M

Average: 1.04
2.7Ghz 15" Mid 2012 MBP 16GB RAM 7.2k 750GB HD anti-glare display|64GB iPad4 ATT LTE|
     
richwig83
Mac Elite
Join Date: Aug 2006
Location: London
Status: Offline
Reply With Quote
Apr 14, 2008, 06:17 PM
 
macbook pro 15" 2.4Ghz 2gb 200gb

Im averaging 2.1%
( Last edited by richwig83; Apr 14, 2008 at 06:40 PM. )
MacBook Pro 2.2 i7 | 4GB | 128GB SSD ~ 500GB+2TB Externals ~ iPhone 4 32GB
Canon 5DII | EF 24-105mm IS USM | EF 100-400mm L IS USM | 50mm 1.8mkII
iMac | Mac Mini | 42" Panasonic LED HDTV | PS3
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 14, 2008, 06:20 PM
 
Keep in mind that running top to observe the kernel's CPU usage might change the kernel's CPU usage.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Apr 14, 2008, 06:21 PM
 
MacBook Pro 15" 2.2ghz, 2gb, 120gb:

0 kernel_tas 1.8% 12:46.32 57 2 0 0- 0 154M 1184M
0 kernel_tas 1.7% 12:46.35 57 2 0 0 0 154M 1184M
0 kernel_tas 1.6% 12:46.39 57 2 0 0 0 154M 1184M
0 kernel_tas 1.7% 12:46.42 57 2 0 0 0 154M 1184M
0 kernel_tas 1.7% 12:46.46 57 2 0 0 0 154M 1184M

Average: 1.7
( Last edited by pat++; Apr 14, 2008 at 06:44 PM. )
     
itistoday  (op)
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Apr 14, 2008, 06:28 PM
 
Originally Posted by Chuckit View Post
Keep in mind that running top to observe the kernel's CPU usage might change the kernel's CPU usage.
Oh sure, but this does not matter if the test requires that everyone run the same top command. This is a very rough test.

I forgot to mention, please post your system specs. Thanks! (And so far it does seem that my average is out of the ordinary.. but it seems to be fluctuating, at one point it was very high and I could barely move the mouse cursor using the trackpad, and typing was very slow, but whatever it was seems to have disappeared)
     
Tomchu
Mac Elite
Join Date: Sep 2005
Status: Offline
Reply With Quote
Apr 14, 2008, 07:21 PM
 
I didn't heed your request to shut down my running programs. :-P

0 kernel_tas 0.9% 14:14.74 53 2 0 0- 0 164M 1217M
0 kernel_tas 0.9% 14:14.76 53 2 0 0 0 164M 1217M
0 kernel_tas 1.0% 14:14.78 53 2 0 0 0 164M 1216M
0 kernel_tas 0.9% 14:14.80 53 2 0 0 0 165M 1217M
0 kernel_tas 1.2% 14:14.83 53 2 0 0 0 164M 1217M

MacBook Air, 1.6 GHz
     
spiff72
Mac Enthusiast
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 14, 2008, 09:04 PM
 
Airport turned off:

0 kernel_tas 1.8% 0:08.64 60 2 0 0- 0 90M 1209M
0 kernel_tas 1.8% 0:08.67 60 2 0 0 0 90M 1209M
0 kernel_tas 1.7% 0:08.71 60 2 0 0 0 90M 1209M
0 kernel_tas 1.8% 0:08.75 60 2 0 0 0 90M 1209M
0 kernel_tas 1.9% 0:08.79 60 2 0 0 0 90M 1209M

Airport turned on:

0 kernel_tas 2.9% 0:12.49 60 2 0 0- 0 90M 1209M
0 kernel_tas 3.0% 0:12.55 60 2 0 0 0 90M 1209M
0 kernel_tas 2.8% 0:12.61 60 2 0 0 0 90M 1209M
0 kernel_tas 2.8% 0:12.66 60 2 0 0 0 90M 1209M
0 kernel_tas 2.5% 0:12.72 60 2 0 0 0 90M 1209M

2.5GHz 17" MBP HR Glossy with 2GB (soon to be 4GB). Measurements taken within about 4 minutes of a restart.
"Mac Daddy" - 15" MBP, 2.2 GHz Core i7, 8GB, 750GB HDD
"Mommy Mac" - 13" Macbook, 2.4GHz C2D, 2GB, 160GB
"Baby Mac" - 15" PB, 1.5GHz, 1.5GB, 80GB
64GB iPod Touch (4th gen)
     
hookem2oo7
Senior User
Join Date: Sep 2005
Location: Anson, TX
Status: Offline
Reply With Quote
Apr 14, 2008, 11:45 PM
 
0 kernel_tas 3.2% 6:12.06 63 2 0 0- 0 207M 1784M
0 kernel_tas 1.7% 6:12.09 63 2 0 0 0 207M 1784M
0 kernel_tas 1.6% 6:12.12 63 2 0 0 0 207M 1784M
0 kernel_tas 1.8% 6:12.16 63 2 0 0 0 207M 1784M
0 kernel_tas 1.8% 6:12.20 63 2 0 0 0 206M 1784M

2.2MBP, 120GB, 4GB, Airport on, Safai and Mail open
     
itistoday  (op)
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Apr 15, 2008, 04:48 PM
 
Thanks everyone for your results! I think the values I'm seeing right now are within they normal range. They're now around 1.7%, I don't know what that weird behavior I experienced earlier was, but whatever it was it seems to be gone now thankfully. Thanks again!
     
harbinger75
Mac Enthusiast
Join Date: Jan 2008
Location: In a constant state of panic...
Status: Offline
Reply With Quote
Apr 16, 2008, 05:04 PM
 
0 kernel_tas 1.4% 3:12.60 56 2 0 0- 0 58M 1209M
0 kernel_tas 1.3% 3:12.63 56 2 0 0 0 58M 1209M
0 kernel_tas 1.3% 3:12.66 56 2 0 0 0 58M 1209M
0 kernel_tas 1.4% 3:12.69 56 2 0 0 0 58M 1209M
0 kernel_tas 1.6% 3:12.72 56 2 0 0 0 58M 1209M

1.4% was the average.

2.2Ghz MacBook, Late 2007, 2GB RAM
the geek source
Twitter: @thegeeksource
     
initou
Fresh-Faced Recruit
Join Date: May 2008
Status: Offline
Reply With Quote
May 12, 2008, 07:03 PM
 
Config: MacBook Air 1.6 GHz... What the hell ?
0 kernel_tas 66.1% 1:18.58 51 2 0 0- 0 132M 1207M
0 kernel_tas 70.4% 1:20.15 51 2 0 0 0 132M 1207M
0 kernel_tas 67.4% 1:22.02 51 2 0 0 0 132M 1207M
0 kernel_tas 71.1% 1:23.94 51 2 0 0 0 132M 1207M
0 kernel_tas 69.5% 1:25.93 51 2 0 0 0 132M 1207M
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
May 13, 2008, 05:05 AM
 
Originally Posted by initou View Post
Config: MacBook Air 1.6 GHz... What the hell ?
...
Try it again, but this time w/o file transfer over a wireless network.
     
MacosNerd
Professional Poster
Join Date: Jun 2007
Status: Offline
Reply With Quote
May 13, 2008, 06:45 AM
 
here's mine
0 kernel_tas 5.5% 3:17:33 60 2 0 0- 0 243M 1818M
0 kernel_tas 5.5% 3:17:33 60 2 0 0 0 243M 1818M
0 kernel_tas 4.9% 3:17:34 60 2 0 0 0 243M 1818M
0 kernel_tas 5.6% 3:17:34 60 2 0 0 0 243M 1818M
0 kernel_tas 5.5% 3:17:34 60 2 0 0 0 243M 1818M
     
Hg2491
Grizzled Veteran
Join Date: Sep 2007
Location: NYC
Status: Offline
Reply With Quote
May 15, 2008, 11:14 PM
 
MacBook 1.83 Core Duo

0 kernel_tas 3.0% 19:57.00 50 2 0 0B- 0B 107M+ 1.06G
0 kernel_tas 3.1% 19:57.06 50 2 0 0B 0B 107M 1.06G
0 kernel_tas 1.8% 19:57.10 50 2 0 0B 0B 107M 1.06G
0 kernel_tas 1.6% 19:57.13 50 2 0 0B 0B 107M- 1.06G-
0 kernel_tas 1.6% 19:57.17 50 2 0 0B 0B 107M 1.06G

Having Safari, MSN Messenger, iCal, Transmission and obviously Terminal opened.
     
   
Thread Tools
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 02:11 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,