The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   iTunes a resource hog? (http://hintsforums.macworld.com/showthread.php?t=12147)

tlarkin 05-27-2003 06:09 PM

iTunes a resource hog?
 
I just noticed this today on my G4 at work. Its a G4 500Mhz w/ 768mb of RAM. I usually have these running: safari (or another web browser), mail application, itunes, and authoring software for burning cd's, usually toast. I haven't used it for much else than that. I downloaded a monitoring utility for fun last week to just see what all it did. It was saying itunes was consuming 13% of the CPU. Well I quit that app and went into the terminal and started pulling up what resources were going where. Sure enough itunes would be consuming anywhere from 10 to 12% of the cpu. Is that normal? I play music through itunes pretty much all day at work. Today I checked it again after rebooting the machine and I still get the same result. Should itunes eat up that much of my cpu?

mervTormel 05-27-2003 06:28 PM

seems normal
 
Code:

$ top -u -s3 -l10 10 | grep -i ' itunes' | colrm 24 999
  555 iTunes      0.0%
  555 iTunes      15.8%
  555 iTunes      11.0%
  555 iTunes      11.3%
  555 iTunes      16.6%
  555 iTunes      12.6%
  555 iTunes      9.9%
  555 iTunes      15.4%
  555 iTunes      10.8%
  555 iTunes      12.1%

G4/500 sawtooth here. might be less heavy on bigger iron.

tlarkin 05-27-2003 06:31 PM

hmm thats kinda weird I wouldn't think itunes would take up that much resources.

mervTormel 05-27-2003 06:44 PM

well, it's doing a pretty amazing thing. no "stereo" equipment involved.

better performance is had with the player window closed while playing:
Code:

$ top -u -s3 -l10 10 | grep -i ' itunes' | colrm 24 999
  555 iTunes      0.0%
  555 iTunes      8.7%
  555 iTunes      8.4%
  555 iTunes      8.7%
  555 iTunes      8.9%
  555 iTunes      9.9%
  555 iTunes      8.0%
  555 iTunes      9.0%
  555 iTunes      9.0%
  555 iTunes      8.4%

so, that indicates that the player window scrolly title and widgets get cycles, even when nothing is playing:
Code:

$ top -u -s3 -l10 10 | grep -i ' itunes' | colrm 24 999
  555 iTunes      0.0%
  555 iTunes      0.2%
  555 iTunes      6.3%
  555 iTunes      0.6%
  555 iTunes      0.0%
  555 iTunes      6.9%
  555 iTunes      1.5%
  555 iTunes      0.0%
  555 iTunes      2.1%

even if hidden, it swipes some mojo.

hayne 05-27-2003 06:45 PM

decoding mp3's or aac's
 
I imagine that you are playing MP3 or AAC encoded songs. If so, iTunes has to decode the song in order to play it. This accounts for the CPU load. I imagine that you would see a much smaller CPU load if you played a regular audio CD which does not require decoding.

mervTormel 05-27-2003 06:54 PM

aye. should have specified the above tops are all of itunes playing mp3 files.

tlarkin 05-27-2003 07:09 PM

There are a large variety of audio files on that machine. I guess I got kind of freaked when I saw it spike right under 20%, but for the most part its pretty steady between 10 and 12%; and I suppose if I had to do something processor intensive I could just do it with out music.

mervTormel 05-27-2003 07:34 PM

let her buck! idle CPU is wasted CPU.

tlarkin 05-27-2003 07:48 PM

One thing that just occured to me. What actual sound card is on a G4 logic board? I probably have better performance in different systems because of the sound card. I know that some of my sound cards decode audio so the CPU won't have to. Oh well this really is not that important I guess, I just kind of figured itunes would not take up that much resources.

mervTormel 05-27-2003 07:55 PM

macs don't have sound cards, per se, but onboard DSP chips, me thinks. still, the CPU, a la altivec, is obviously called on to decode.

it's rather impressive, to me, to have a heavy fink install going and the muzak never misses a beat. and still, other meaningful and meaningless work gets cycles.

Jacques 05-28-2003 12:01 PM

Whamb is nice, can someone do a top using it - I wonder how it compares to iTunes.

tlarkin 05-28-2003 12:18 PM

sure i will check it out later for laughs.

mervTormel 05-28-2003 12:24 PM

whamb, hidden, playing mp3 file. can't not have player window open (?)
Code:

$ top -u -s3 -l10 10 | grep -i whamb | colrm 24 999
  930 Whamb        4.6%
  930 Whamb        5.5%
  930 Whamb        5.5%
  930 Whamb        5.9%
  930 Whamb        5.3%
  930 Whamb        6.0%
  930 Whamb        5.8%
  930 Whamb        6.7%
  930 Whamb        5.8%


tlarkin 05-28-2003 12:50 PM

Merv beat me to it.

I like itunes its a great program. I just found it strange when it would spike a 20% cpu usage.

Jacques 05-28-2003 12:50 PM

Laughs? Those numbers look good.. !

thanks mervTormel

---

PS - there are skins available that are tiny, almost as good as hidden

tlarkin 05-28-2003 12:59 PM

Yeah but there is no player window open?

mervTormel 05-28-2003 01:09 PM

can't not have player window open

in whamb, i couldn't close the controller window. so, there's widgets eating cycles hidden or not.

petey 05-28-2003 05:10 PM

CPU cycles while doing nothing
 
slightly on a tangent...

what pisses me off about iTunes is that it sucks up cycles when it's NOT playing, or doing anything but sitting quietly in the background.

(all the other Apple apps are very well behaved when doing nothing. it's just iTunes.)

Jacques 05-28-2003 05:22 PM

iTunes definitely slows things down, probably Apple's way of getting people to want the 970s that should be out in June/July!

tlarkin 05-28-2003 05:51 PM

Yeah I used to think quicktime was a resource hog....

hayne 05-28-2003 08:20 PM

iTunes CPU load when idle
 
I believe that most of the CPU time taken by iTunes when it is "idle" is taken up in drawing the song status in the grey oval at the top. Note that there is very little CPU used if you click on a Playlist but don't start to play any songs. It is only after playing a song and then pausing it that there is significant "idle" CPU load. So if you are really that concerned about the (on my system) 3% CPU load from an "idle" iTunes, just click on a playlist after pausing playback.

Jacques, I assume you were joking about iTunes slowing things down since I don't think you will normally notice a 20% decrease in available CPU. (iTunes playing a song without visualizer takes up less than 20%) Sure if you stare at the CPU load numbers, you will see it, but not otherwise.

petey 05-29-2003 04:13 AM

hayne,

ok. i launched iTunes and then did nothing. at the top of the iTunes window is nothing but the Apple logo - no scrolling text for song status.

in Top, i show iTunes processor usage oscilating between 0.6% and 1.8%.

(if i do pause a song, iTunes processor usage is much, much higher.)

this may seem insignificant, but i like to launch all the apps i'll be using after login and leave them running. if many of my apps averaged 1.2% CPU usage while doing nothing, i'd start having a slow machine.

(the other Apple apps, and many other well behaved apps, use 0.0% of CPU when doing nothing.)

Jacques 05-29-2003 10:34 AM

Actually, hayne..

iTunes greediness hurts my system quite a bit. If I'm using iTunes to listen to MP3s in any fashion whatsoever - this old Bondi original iMac definitely gets hit and begins to mud the rest of my performance.

Whamb is much better at letting my computer go free, however it lacks in neary every other area really - so I don't really use it much.

On most systems (especially G4s and above) it may not even be noticable..

Jacques


All times are GMT -5. The time now is 12:20 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.