Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #816

Re: Green Compiler ?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.compilers
Subject Re: Green Compiler ?
Date 2012-12-28 16:57 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <12-12-032@comp.compilers> (permalink)
References <12-12-010@comp.compilers> <12-12-013@comp.compilers> <12-12-023@comp.compilers> <12-12-027@comp.compilers>

Show all headers | View raw


"Nils M Holm" <nmh@t3x.org> writes:
>Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>> "Nils M Holm" <nmh@t3x.org> writes:
>> >In principle, I would say that higher execution speed equals more
>> >green-ness. Less time spent dissipating heat means less energy
>> >consumed.
...
>So you are basically arguing that people always try to get the maximum
>out of their resources and therefore faster code is worse.

Not worse, but the claims you made above are a bit too simple-minded.
Fast code still has the advantage of being fast; but it does not
necessarily save energy.

>Your first example was games. Why does a game *have to* use the
>maximum number of frames per second? When a given number of frames per
>second is sufficient, in the sense that additional frames will not
>make the video output any smoother, why increase the frame rate
>further? Let the program sleep between frames. In this case fast code
>can sleep between frames, slow code can't.

But do game designers work that way?  If the game engine is so fast
that it can sleep between frames, they put in more features in the
game that make use of the CPU; or the reverse, they don't take as many
features out in the slimming phase when they try to make the game run
smooth enough.  So the faster code buys a more featureful game, but it
does not save energy.

Or at the level of the end user (player), they tune the graphics
details such that they get the maximum details at an acceptable frame
rate on their machine.  So a faster program means more details, not
less energy consumption.

>Same for virus scanner: why run them more often?

More often?  AFAIK, these days the virus scanners are running
constantly in the background and consume one or two cores.  I don't
know if that has a technical reason or is just done to give the users
a feeling of better protection, but that does not matter for the
energy consumption.

>So I would argue that the issue you raise is a psychological one rather
>than a technical one. When people always want to get the maximum out
>of their resources, then there is no way to reduce power consumption,
>except, maybe, by creating *slower* processors.

Or at least processors and machines with lower power consumption under
load (yes, they tend to be slower, the converse is not necessarily
true).  Yes, you can see it as a psychological issue, but that does
not make it less real.  Idle power consumption is also an issue, for
some workloads.

- anton
--
M. Anton Ertl
anton@mips.complang.tuwien.ac.at
http://www.complang.tuwien.ac.at/anton/

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Green Compiler ? Abid <abidmuslim@gmail.com> - 2012-12-20 02:00 -0800
  Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-23 08:18 +0000
    Re: Green Compiler ? Peter Dassow <z80eu@arcor.de> - 2012-12-26 19:31 +0100
      Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-28 03:09 +0000
      Re: Green Compiler ? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-12-28 08:35 +0100
        Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-12-28 16:14 +0000
        Re: Green Compiler ? Peter Dassow <z80eu@arcor.de> - 2012-12-29 09:35 +0100
          Re: Green Compiler ? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-12-30 08:14 +0100
            Re: Green Compiler ? George Neuner <gneuner2@comcast.net> - 2012-12-31 01:24 -0500
              Re: Green Compiler ? "Jonathan Thornburg" <jthorn@astro.indiana.edu> - 2013-01-02 04:09 +0000
                Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-01-02 18:29 +0000
              Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-01-02 05:11 +0000
              Re: Green Compiler ? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2013-01-02 07:29 +0100
                Re: Green Compiler ? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-01-02 19:52 +0000
                Re: Green Compiler ? "Charles Richmond" <numerist@aquaporin4.com> - 2013-01-04 08:59 -0600
  Re: Green Compiler ? "Nils M Holm" <nmh@t3x.org> - 2012-12-23 10:01 +0100
    Re: Green Compiler ? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-12-24 05:16 +0100
    Re: Green Compiler ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-12-27 13:36 +0000
      Re: Green Compiler ? "Nils M Holm" <nmh@t3x.org> - 2012-12-28 09:11 +0100
        Re: Green Compiler ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-12-28 16:57 +0000
        Re: Green Compiler ? George Neuner <gneuner2@comcast.net> - 2012-12-28 12:57 -0500
          Re: Green Compiler ? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2012-12-30 09:22 +0100
    Re: Green Compiler ? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-12-27 21:59 -0600
  Re: Green Compiler ? Walter Banks <walter@bytecraft.com> - 2012-12-28 10:42 -0500

csiph-web