No more Mr. Nice Guy

Hi All,

This message is most relevant to Mac users, but introduces a change that may affect rpict and rtrace performance in future releases on all platforms. Specifically, I have taken out the NICE= macro settings from the Rmakefile in src/rt, so future builds will run all Radiance programs at the standard user priority.

I made a fortuitous discovery whilst playing around with the very cool (no pun intended) TemperatureMonitor freeware <http://www.bresink.com/osx/TemperatureMonitor.html> on my new PowerMac G5 quad. It's lots of fun to watch the processor temps go up and down with load. The funny thing I noticed was that changing the Energy Savings settings had an unexpected effect on temperatures, which are in turn related to power consumption and (presumably) processor performance.

The Energy Saver options lists three processor performance settings, "Highest," "Automatic," and "Reduced." With the machine idle, there were only slight differences between the three; I had expected to see more, especially on the "Highest" setting... The biggest difference was between "Highest" and "Reduced" with all four processors busy, and that was no surprise. What was a surprise was that when I had four rpict jobs going in parallel, there was a big difference between the temperatures using the "Highest" versus "Automatic" settings. Apple documentation states that the performance penalty for using "Automatic" should be very small, so I figured the temperature change would also be small. That's when I decided to measure actual performance.

What a difference! Between the "Highest" and "Automatic" settings, I noticed a performance difference of over 60%, where I expected to see little or none. What I did expect was a performance hit moving to the "Reduced" setting, which indeed there was, but it was only another 13% worse than "Automatic." This really seemed wrong to me. That's when I decided to start playing around with the "nice" level of rpict.

The "nice" setting on a process is a way to tell Unix that a job is not a top priority, and interactive processes should be given more of the CPU if there are any running. However, in the past, it hasn't much affected the performance of a process if there are no other jobs to contend with. I put nice() calls in Radiance way back when multi-user Unix's were the rule, and we had to peacefully coexist with a lot of other people who might get annoyed if I hogged all the system resources, as Radiance is wont to do.

In short, I found out that removing the nice() system call from rpict achieved the "Highest" performance figure even when the Energy Saver processor speed was set to "Automatic." (The "Reduced" performance was not affected.) Apparently, Mac OS X 10.4 (at least) uses the process "nice" setting to decide whether or not to kick the CPU speed up a notch. This might be a new feature of the OS, as I don't have access to a maching running Jaguar or Panther to try it there.

The bottom line in all this is that if you own a Mac and you're running Radiance on it, be sure to use the "Highest" setting in the Energy Saver control panel, because if you don't, your rendering might just be running 60% slower than you would like it to. Option B is to remove the -DNICE= arguments from the build lines in src/rt/Rmakefile and remove the affected object files (rpmain.o and rtmain.o) then rerun "rmake install" in the rt directory. Or, download Saturday's HEAD release and build that. (I think I'm too late for tomorrow.) Then, you can leave the processor performance on "Automatic," which is the default for normal operation.

I wish I had made this discovery a couple of years ago....

-Greg

Greg Ward wrote:

Hi All,

This message is most relevant to Mac users, but introduces a change that may affect rpict and rtrace performance in future releases on all platforms. Specifically, I have taken out the NICE= macro settings from the Rmakefile in src/rt, so future builds will run all Radiance programs at the standard user priority. <snip>

I wish I had made this discovery a couple of years ago....

Me too.

Shoot Greg, I've had this PB for almost four years and I've always felt it was sluggish compared to equivalent horsepower wintel boxes. I will most certainly try out the new source on Saturday and report back. I'm still on Panther here, and I should mention that my Energy Saver panel does not have a specific setting for Processor Performance, just times for spinning down the HDD and dimming the display. So I'll try the new source when it's available and see what happens.

Thanks for the report! And rub it in about the quad G5, why don't you... =8-)

- Rob Guglielmetti

He Greg,

I just have a G5 for editing video my last project, and I was surprised how well a G5 is rendering with rpict. The G5 was one of the best workhorses this month!!
On my G5 the deafult processor performance is already set on "Highest".
Besides that, removing the -DNICE= arguments in rt/ Rmakefile is something I like to check out, but I am fearly new with OSX, and I haven't found any development tools yet.
Where do I find development tools for OSX, so I can run make?

-Iebele

Greg Ward wrote:

···

Hi All,

This message is most relevant to Mac users, but introduces a change that may affect rpict and rtrace performance in future releases on all platforms. Specifically, I have taken out the NICE= macro settings from the Rmakefile in src/rt, so future builds will run all Radiance programs at the standard user priority.

I made a fortuitous discovery whilst playing around with the very cool (no pun intended) TemperatureMonitor freeware <http:// www.bresink.com/osx/TemperatureMonitor.html> on my new PowerMac G5 quad. It's lots of fun to watch the processor temps go up and down with load. The funny thing I noticed was that changing the Energy Savings settings had an unexpected effect on temperatures, which are in turn related to power consumption and (presumably) processor performance.

The Energy Saver options lists three processor performance settings, "Highest," "Automatic," and "Reduced." With the machine idle, there were only slight differences between the three; I had expected to see more, especially on the "Highest" setting... The biggest difference was between "Highest" and "Reduced" with all four processors busy, and that was no surprise. What was a surprise was that when I had four rpict jobs going in parallel, there was a big difference between the temperatures using the "Highest" versus "Automatic" settings. Apple documentation states that the performance penalty for using "Automatic" should be very small, so I figured the temperature change would also be small. That's when I decided to measure actual performance.

What a difference! Between the "Highest" and "Automatic" settings, I noticed a performance difference of over 60%, where I expected to see little or none. What I did expect was a performance hit moving to the "Reduced" setting, which indeed there was, but it was only another 13% worse than "Automatic." This really seemed wrong to me. That's when I decided to start playing around with the "nice" level of rpict.

The "nice" setting on a process is a way to tell Unix that a job is not a top priority, and interactive processes should be given more of the CPU if there are any running. However, in the past, it hasn't much affected the performance of a process if there are no other jobs to contend with. I put nice() calls in Radiance way back when multi- user Unix's were the rule, and we had to peacefully coexist with a lot of other people who might get annoyed if I hogged all the system resources, as Radiance is wont to do.

In short, I found out that removing the nice() system call from rpict achieved the "Highest" performance figure even when the Energy Saver processor speed was set to "Automatic." (The "Reduced" performance was not affected.) Apparently, Mac OS X 10.4 (at least) uses the process "nice" setting to decide whether or not to kick the CPU speed up a notch. This might be a new feature of the OS, as I don't have access to a maching running Jaguar or Panther to try it there.

The bottom line in all this is that if you own a Mac and you're running Radiance on it, be sure to use the "Highest" setting in the Energy Saver control panel, because if you don't, your rendering might just be running 60% slower than you would like it to. Option B is to remove the -DNICE= arguments from the build lines in src/rt/ Rmakefile and remove the affected object files (rpmain.o and rtmain.o) then rerun "rmake install" in the rt directory. Or, download Saturday's HEAD release and build that. (I think I'm too late for tomorrow.) Then, you can leave the processor performance on "Automatic," which is the default for normal operation.

I wish I had made this discovery a couple of years ago....

-Greg

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

welcome to the mac community :slight_smile:
MacosX is really great because you can have the best of the open source
+ commercial world... you can both use photoshop or finalcut and
radiance on the same machine...
and cinema4d as well :slight_smile:

Anyway to answer your question, developer tool GUI, gcc, make and all is
required to compile your c/c++/java... project should be included with
the machine on a separate DVD.
The material is called MACOSX DEVELOPER TOOLS.
You may want to check out also FINK that allows you to install easily
other Open Source projects (as OpenDX or MAYAVI)

Enjoy!
Ciao
G.

PS.
You may know already but... just in case... I tell you a nice trick:
you can change priority of tasks with 'renice....'
so if it is night time you may want to render as fast as possible and
during daytime you may prefer to have a more awake system....
renice is the answer :slight_smile:
sudo renice -20 PID for full power
and renice 0 PID for default
and renice 20 PID for slooooow execution

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
atelier iebele abel
Sent: 16 December 2005 15:09
To: Radiance general discussion
Subject: Re: [Radiance-general] No more Mr. Nice Guy

He Greg,

I just have a G5 for editing video my last project, and I was surprised
how well a G5 is rendering with rpict. The G5 was one of the best
workhorses this month!!
On my G5 the deafult processor performance is already set on "Highest".
Besides that, removing the -DNICE= arguments in rt/ Rmakefile is
something I like to check out, but I am fearly new with OSX, and I
haven't found any development tools yet.
Where do I find development tools for OSX, so I can run make?

-Iebele

Greg Ward wrote:

Hi All,

This message is most relevant to Mac users, but introduces a change
that may affect rpict and rtrace performance in future releases on
all platforms. Specifically, I have taken out the NICE= macro
settings from the Rmakefile in src/rt, so future builds will run all
Radiance programs at the standard user priority.

I made a fortuitous discovery whilst playing around with the very
cool (no pun intended) TemperatureMonitor freeware <http://
www.bresink.com/osx/TemperatureMonitor.html> on my new PowerMac G5
quad. It's lots of fun to watch the processor temps go up and down
with load. The funny thing I noticed was that changing the Energy
Savings settings had an unexpected effect on temperatures, which are
in turn related to power consumption and (presumably) processor
performance.

The Energy Saver options lists three processor performance settings,
"Highest," "Automatic," and "Reduced." With the machine idle, there
were only slight differences between the three; I had expected to see

more, especially on the "Highest" setting... The biggest difference
was between "Highest" and "Reduced" with all four processors busy,
and that was no surprise. What was a surprise was that when I had
four rpict jobs going in parallel, there was a big difference between

the temperatures using the "Highest" versus "Automatic" settings.
Apple documentation states that the performance penalty for using
"Automatic" should be very small, so I figured the temperature change

would also be small. That's when I decided to measure actual
performance.

What a difference! Between the "Highest" and "Automatic" settings, I

noticed a performance difference of over 60%, where I expected to see

little or none. What I did expect was a performance hit moving to
the "Reduced" setting, which indeed there was, but it was only
another 13% worse than "Automatic." This really seemed wrong to me.

That's when I decided to start playing around with the "nice" level
of rpict.

The "nice" setting on a process is a way to tell Unix that a job is
not a top priority, and interactive processes should be given more of

the CPU if there are any running. However, in the past, it hasn't
much affected the performance of a process if there are no other jobs

to contend with. I put nice() calls in Radiance way back when multi-
user Unix's were the rule, and we had to peacefully coexist with a
lot of other people who might get annoyed if I hogged all the system
resources, as Radiance is wont to do.

In short, I found out that removing the nice() system call from rpict

achieved the "Highest" performance figure even when the Energy Saver
processor speed was set to "Automatic." (The "Reduced" performance
was not affected.) Apparently, Mac OS X 10.4 (at least) uses the
process "nice" setting to decide whether or not to kick the CPU speed

up a notch. This might be a new feature of the OS, as I don't have
access to a maching running Jaguar or Panther to try it there.

The bottom line in all this is that if you own a Mac and you're
running Radiance on it, be sure to use the "Highest" setting in the
Energy Saver control panel, because if you don't, your rendering
might just be running 60% slower than you would like it to. Option B

is to remove the -DNICE= arguments from the build lines in src/rt/
Rmakefile and remove the affected object files (rpmain.o and
rtmain.o) then rerun "rmake install" in the rt directory. Or,
download Saturday's HEAD release and build that. (I think I'm too
late for tomorrow.) Then, you can leave the processor performance on

"Automatic," which is the default for normal operation.

I wish I had made this discovery a couple of years ago....

-Greg

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general
____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

Giulio Antonutto wrote:

welcome to the mac community :slight_smile:
MacosX is really great because you can have the best of the open source
+ commercial world... you can both use photoshop or finalcut and
radiance on the same machine...
and cinema4d as well :slight_smile:

Yeah, welcome. OSX rocks.

Anyway to answer your question, developer tool GUI, gcc, make and all is
required to compile your c/c++/java... project should be included with
the machine on a separate DVD.
The material is called MACOSX DEVELOPER TOOLS.

And if for some reason you didn't get that CD, you can download the stuff you need right here:

http://developer.apple.com/tools/

I think at this point all you need is Xcode.

- Rob

Do you have an "Options" button next to the "Sleep" button at the
of the top of the panel?

You may also try "TinkerTool". As far as I know not all settings
of the OS are available in the GUI.

Thomas

···

On 16.12.2005, at 06:22, Rob Guglielmetti wrote:

I'm still on Panther here, and I should mention that my Energy Saver panel does not have a specific setting for Processor Performance, just times for spinning down the HDD and dimming the display.

I'm on a G4 with Tiger 10.4.3
- But I dont have any Processor Performance options in my Energy Saver

guess that only for G5s?

Rob F

Shoot Greg, I've had this PB for almost four years and I've always felt
it was sluggish compared to equivalent horsepower wintel boxes. I will
most certainly try out the new source on Saturday and report back. I'm
still on Panther here, and I should mention that my Energy Saver panel
does not have a specific setting for Processor Performance, just times
for spinning down the HDD and dimming the display. So I'll try the new
source when it's available and see what happens.

Thanks for the report! And rub it in about the quad G5, why don't
you... =8-)

- Rob Guglielmetti

···

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

I completed my tests on my G4 PowerBook, and the difference is even greater than with the G5 desktop. These are the results:

Radiance Speed Comparisons
  Highest Automatic Reduced
G5, nice=0 90.9 91.1 182.2
G5, nice=+6 90.9 166.1 182.4
G4, nice=0 182.8 184.6 366.7
G4, nice=+6 184.3 365.6 367.7

I've plotted this in Excel, spreadsheet attached. (Write to me at <[email protected]> if you want the 268K gif plot.)

The net difference is even more pronounced on the PowerBook -- a full factor of two between "nice" and "not nice" in "Automatic" mode. Basically, having "nice" and "Automatic" together is the same as setting the processor mode to "Reduced" on both platforms.

-Greg

Benchmarks.xls (17.5 KB)

Dear all,

Greg's email is not only relevant for Mac users but also for the
friendly but frequently overlooked WINDOWS crowd:)

For the Daysim Windows version, I am compiling a number of Radiance
programs. Specifically, I am calling rtrace via a C-Program called
gen_dc to calculate a whole set of daylight coefficients. In case rtrace
has been compiled with NICE=, it runs with a "low" priority whereas
without the NICE=, it runs with "normal" priority. In the latter case,
the simulation times can become substantial as just about any other job
under Windows runs with "normal" priority. In case you are using
Radiance under Windows (cygwin etc.), this might be worthwhile looking
into as well. One of my students reported that the Lightstudio Radiance
binaries run significantly faster than Desktop Radiance (but this may be
the case for numerous other reasons as well).

Christoph

···

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Greg
Ward
Sent: Thursday, December 15, 2005 11:51 PM
To: Radiance general discussion
Subject: [Radiance-general] No more Mr. Nice Guy

Hi All,

This message is most relevant to Mac users, but introduces a change that
may affect rpict and rtrace performance in future releases on all
platforms. Specifically, I have taken out the NICE= macro settings from
the Rmakefile in src/rt, so future builds will run all Radiance programs
at the standard user priority.

I made a fortuitous discovery whilst playing around with the very cool
(no pun intended) TemperatureMonitor freeware <http://
www.bresink.com/osx/TemperatureMonitor.html> on my new PowerMac G5 quad.
It's lots of fun to watch the processor temps go up and down with load.
The funny thing I noticed was that changing the Energy Savings settings
had an unexpected effect on temperatures, which are in turn related to
power consumption and (presumably) processor performance.

The Energy Saver options lists three processor performance settings,
"Highest," "Automatic," and "Reduced." With the machine idle, there
were only slight differences between the three; I had expected to see
more, especially on the "Highest" setting... The biggest difference was
between "Highest" and "Reduced" with all four processors busy, and that
was no surprise. What was a surprise was that when I had four rpict
jobs going in parallel, there was a big difference between
the temperatures using the "Highest" versus "Automatic" settings.
Apple documentation states that the performance penalty for using
"Automatic" should be very small, so I figured the temperature change
would also be small. That's when I decided to measure actual
performance.

What a difference! Between the "Highest" and "Automatic" settings, I
noticed a performance difference of over 60%, where I expected to see
little or none. What I did expect was a performance hit moving to the
"Reduced" setting, which indeed there was, but it was only
another 13% worse than "Automatic." This really seemed wrong to me.
That's when I decided to start playing around with the "nice" level of
rpict.

The "nice" setting on a process is a way to tell Unix that a job is not
a top priority, and interactive processes should be given more of the
CPU if there are any running. However, in the past, it hasn't much
affected the performance of a process if there are no other jobs to
contend with. I put nice() calls in Radiance way back when multi- user
Unix's were the rule, and we had to peacefully coexist with a lot of
other people who might get annoyed if I hogged all the system resources,
as Radiance is wont to do.

In short, I found out that removing the nice() system call from rpict
achieved the "Highest" performance figure even when the Energy Saver
processor speed was set to "Automatic." (The "Reduced" performance was
not affected.) Apparently, Mac OS X 10.4 (at least) uses the process
"nice" setting to decide whether or not to kick the CPU speed up a
notch. This might be a new feature of the OS, as I don't have access to
a maching running Jaguar or Panther to try it there.

The bottom line in all this is that if you own a Mac and you're running
Radiance on it, be sure to use the "Highest" setting in the Energy Saver
control panel, because if you don't, your rendering might just be
running 60% slower than you would like it to. Option B is to remove the
-DNICE= arguments from the build lines in src/rt/ Rmakefile and remove
the affected object files (rpmain.o and
rtmain.o) then rerun "rmake install" in the rt directory. Or, download
Saturday's HEAD release and build that. (I think I'm too late for
tomorrow.) Then, you can leave the processor performance on
"Automatic," which is the default for normal operation.

I wish I had made this discovery a couple of years ago....

-Greg

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general