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
Location: Stuck in an infinite loop
Status: Offline
Apr 14, 2008 , 04: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:
code:
top -ocpu -R -F -s 2 -n30 -l 6 | grep kernel

4) Wait until it stops outputting, there should be 5 lines that each look something like this:
code:
0 kernel_tas 2.8% 5:21.66 60 2 0 0- 0 71M 1793M

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 05:32 PM )
     
davidflas
Mac Elite
Join Date: Sep 2000
Location: Binghamton, New York, USA
Status: Offline
Apr 14, 2008 , 05: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.2Ghz White Macbook 4GB RAM 320GB HD w/Dell 2408WFP|60GB Black iPod w/Video
     
richwig83
Senior User
Join Date: Aug 2006
Location: Manchester UK
Status: Online
Apr 14, 2008 , 05:17 PM
 
macbook pro 15" 2.4Ghz 2gb 200gb

Im averaging 2.1%
(Last edited by richwig83 : Apr 14, 2008 at 05:40 PM )

MacBook Pro 2.4Ghz Penryn | 2GB | 200GB ~ Canon EOS 40D EF-S 17-85 IS USM~ iPhone ~ 22" Viewsonic ~ 32" Panasonic HDTV ~ PS3
     
Chuckit
Moderator
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Apr 14, 2008 , 05:20 PM
 
Keep in mind that running top to observe the kernel's CPU usage might change the kernel's CPU usage.
Chuck
___
"But what if it I have a disease of it hurts?"
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Apr 14, 2008 , 05: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 05:44 PM )
     
itistoday
Professional Poster
Join Date: Oct 2001
Location: Stuck in an infinite loop
Status: Offline
Apr 14, 2008 , 05: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
Location: Vancouver, BC
Status: Offline
Apr 14, 2008 , 06: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
Apr 14, 2008 , 08: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" (Mine) - 17" High-Res Glossy MBP, 2.5GHz, 2GB, 250GB
"Baby Mac" (Wifey's) - 15" PB, 1.5GHz, 1.5GB, 80GB
(2) 8GB iPhones, 60GB iPod Video, 4GB 2G iPod Nano, 1GB 2G iPod Shuffle
     
hookem2oo7
Senior User
Join Date: Sep 2005
Location: Austin, TX
Status: Offline
Apr 14, 2008 , 10: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
Professional Poster
Join Date: Oct 2001
Location: Stuck in an infinite loop
Status: Offline
Apr 15, 2008 , 03: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
Forum Regular
Join Date: Jan 2008
Location: SouthWest Missouri
Status: Offline
Apr 16, 2008 , 04: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
     
initou
Fresh-Faced Recruit
Join Date: May 2008
Status: Offline
May 12, 2008 , 06: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
Addicted to MacNN
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
May 13, 2008 , 04: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.
My Macs: 128, 512, Plus, SE, SE/30, IIsi, IIci, PowerBook 100, Quadra 700, LC 475, Performa 630, Power Mac 7100, PowerBook G3 Lombard, iMac DV+, Power Mac G4 MDD, Ti PowerBook G4, 17" iMac G4, 12" PowerBook G4 1GHz, 12" PowerBook G4 1.5GHz, Mac mini G4 1.5GHz, 15" PowerBook G4 1.67GHz, 13" MacBook (black), 15" MacBook Pro 2.0GHz, 15" MacBook Pro 2.33GHz with 20" ACD, 15" MacBook Pro 2.4GHz with 23" ACD
     
MacosNerd
Mac Elite
Join Date: Jun 2007
Status: Offline
May 13, 2008 , 05: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
Junior Member
Join Date: Sep 2007
Location: Dominican Republic
Status: Offline
Yesterday , 10: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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:37 PM.
All contents of these forums © 1995-2008 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.6.8 © 2000-2008, Jelsoft Enterprises Ltd., SEO by vBSEO 3.0.0 RC8