renice command
Can I use to the "renice" command in OS X to give an app like (a CPU intensive game such as America's Army) an added boost?
Does OS X use the Linux-like range of CPU priorties of 19 to -20? (negative 20 being a HIGER level than 19..FYI)
How can I tell which priority level an app usually runs at before I try and raise/lower it?
Does OS X use the Linux-like range of CPU priorties of 19 to -20? (negative 20 being a HIGER level than 19..FYI)
How can I tell which priority level an app usually runs at before I try and raise/lower it?
Comments
Prio 1.0
courtesy of http://www.macupdate.com/
Interestingly enough, you can lower the priority (increase the number) as much as you want, but you need root privileges to raise the priority (lower the number). So for example, if the pid of America's army is 980, to make it the highest priority, you would type: sudo renice -20 980 and enter your password.
But really, if you don't have any other apps running to begin with, it shouldn't make any difference in the world. The system only takes about 2% CPU on my machine when I'm not messing with the finder, and I would imagine that's running at highest priority to begin with since the system needs to be running.
As stated above though it may not help you that much. If nothings running your process will get all the CPU no matter what level you set it to.
i'm gonna go against the grain and say that nice values can significantly affect your computer. the other day, i was at my friends house download "legal" files from the "internet" in one program. simultaneously we were viewing "legal" websites in another program. plus, we also had "limewire" open (for reasons i am currently unaware), and itunes with the visualizer. limewire + bittorrent took up a lot of the proc. and itunes would grab a lot too, so it was basically in constant use over 90%. we lowered itunes priority (+15 niceness), upped bt's (-20 niceness), and lowered the rest of the programs priorities (varying from +5 -> +15), and bt started download significantly faster. it went from avg'ing <5k/s, to >110k/s. but, if your comp is only running one app, plus the finder, nicing isn't going to do a heck of a lot.
also, although there is a theoretic danger in making the nice value -20, i've never had a system lock up because of it.