Activity Monitor

Joined
Jul 3, 2006
Messages
76
Reaction score
2
Points
8
On Activity Monitor, on the CPU moving bar graphs, one category of CPU usage type is "Nice." What does that mean?
 
Joined
Jan 4, 2006
Messages
1,385
Reaction score
146
Points
63
Location
Hamburg, Germany
Your Mac's Specs
MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
I don't seems to have that. Can you give us some more details?
 
Joined
Mar 9, 2004
Messages
9,065
Reaction score
331
Points
83
Location
Munich
Your Mac's Specs
Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
Nice is a unix feature that lets processes give cpu cycles to other processes.

So if Mail is nice 5 and iTunes is nice 8, if mail isn't using all its allocated cpu time, it will donate the spare cycles to iTunes.

I think that's basically what its about, I might have the numbers the wrong way round though.
 
Joined
Jul 21, 2006
Messages
25
Reaction score
0
Points
1
tight. I was wondering the exact same thing. And "nice" pretty much self explanatory.
 
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's Specs
MacBook 2.0GHz White, 512MB RAM, 60GB HDD
Aptmunich is correct, it's the process priority. The way it works is this:

In user space, nice 20 is the lowest priority, nice 10 is the default and nice 0 is the highest priority a normal user can set their process (to change the nice value, you need to check `man nice` at a terminal). The root user (or any administrator user via the `sudo` command) can also access special nice values of -1 to -20, which get progressively higher and higher in priority until they pretty much use up all the CPU time.

IIRC, the reason it's called `nice` and the back-to-front scale is a silly developer pun. If a process has a nice value of 20, it means that it is a very nice process and will give up its processor cycles to others. If it has a nice value of 0, then it's not very nice at all and will hog the processor if it can :)
 
Joined
Mar 9, 2004
Messages
9,065
Reaction score
331
Points
83
Location
Munich
Your Mac's Specs
Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
I read it is also because back in the day, multiple users would be logged into one computer via terminals. If your work wasn't high priority, you could decide to be "nice" to the other users and speed up their work.
 
Joined
Jul 28, 2006
Messages
75
Reaction score
4
Points
8
Location
Dublin, Ireland
Your Mac's Specs
iMac 20in 2.0GHZ Intel Core Duo 2GB Ram
On a related issue regarding activity monitor, I was looking at it today and gasped at how much memory Safari takes....
Especially when i also ran Camino.....It uses nearly a 10th of the resources that Safari does. How can that be?? I'm actually happy with Safari it seems to be almost as quick as Camino and is nice to use. I have loads of apps running now as a test, mail, browsers, office apps, iPhoto etc open and I still have 600mb of the 2GB of RAM free.
 
Joined
Feb 2, 2006
Messages
168
Reaction score
3
Points
18
Location
Melbourne, Australia
Your Mac's Specs
1.25Ghz Mini, 512MB, 40GB
I'm not sure but i think Safari has a memory leak or is just keeping everything it uses in RAM until something else needs it. Ether way it is a resource hog unfortunately.
 
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's Specs
MacBook 2.0GHz White, 512MB RAM, 60GB HDD
It may well be the caching facility that's taking up the memory. When FireFox 1.5 was released there was outcry at the amount of RAM it built up over time, but it was only because it was caching pre-rendered pages to provide faster switching between tabs or through the history.
 
Joined
Jul 20, 2006
Messages
124
Reaction score
1
Points
18
OneWorld22 said:
On a related issue regarding activity monitor, I was looking at it today and gasped at how much memory Safari takes....
Especially when i also ran Camino.....It uses nearly a 10th of the resources that Safari does. How can that be?? I'm actually happy with Safari it seems to be almost as quick as Camino and is nice to use. I have loads of apps running now as a test, mail, browsers, office apps, iPhoto etc open and I still have 600mb of the 2GB of RAM free.

This is something I hope Apple fixes in the future.

I love the Safari browser but the Activity Monitor really did open my eyes to truely how gross the amount that they use.

I still use it though but really hope it does something about it in Lepoard.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top