mailto: blog -at- heyrick -dot- eu

Navi: Previous entry Display calendar Next entry
Switch to desktop version

FYI! Last read at 06:15 on 2024/11/24.

The efficiency of a Pi server

I have my Pi (original issue 2 Model B with 256MiB RAM) running a server (WebJames and custom) under RISC OS; though I would imagine the power consumption would be comparable with Raspian or the like.

The setup is fairly simple. Here is the Pi itself:

The Pi contains a CJE RTC/power control module which provides a power LED (the red one, always on while the Pi is powered) plus a drive activity LED (the three legged whitish one - it glows green when data is being read and red when data is being written; and a sort of orangey colour if both are happening at the same time (and guess who wrote the software for that! ☺)).
The white/green/black wires connected to the Pi (upper left) are for the USB serial interface. It can be useful for debugging to have a running commentary appear on the PC. The disconnected red wire is a 5V source taken from the USB port. There is no need for it as the Pi's I/O runs at 3.3V. The ribbon cable wires soldered to the RTC board are for the OLED display (and I wrote the driver for that too), it runs off 3.3V and communicates via IIC.
The push-button you can see is a programmer's best friend. It is connected to the Pi's reset pins. It is a friendlier way to reset than power cycling (and is thus less likely to trash data on SD cards). For those times when you're in SVC mode and you forget to stack R14 around making SWI calls...

The video is handled by way of a little HDMI to VGA adaptor I got from eBay for about €14 all in. It was originally powered from the HDMI port, but given that it required rather more than the 50mA that the Pi was happy to source (judging by how quickly the Pi's supply diode got worryingly hot), I modified it to run off of a USB supply.


The monitor is an IISonic IIMJ7 17" TFT monitor with a native resolution of 1280×1024 (4:3 aspect). Neither the Pi nor RISC OS have any trouble with this. The Pi is extremely friendly in this respect - unlike the Beagle xM with which I struggle to get any sort of stable display. At any rate, it provides a standard VGA socket to which practically any VGA-style analogue monitor can be connected. The output is sharp and stable and clear.

Connectivity is handled by a Vonets VAP11G. This needed a special setup program that runs on Windows XP (later adaptors appear to have some sort of web configuration built in). Once set up to recognise my ADSL router's access point and know its password, it just connects automatically once it is powered up. It deals with WiFi and "pretends" to be the Pi (offering the Pi's MAC address as its own) and acts as a bridge between the Pi's ethernet socket and WiFi. Running with RaspBMC, it easily manages around 260KiB/sec which is maxing out my 2mbit ADSL connection; though for some reason RISC OS never seems to be able to go much beyond ~160KiB/sec.

The little fluorescent lamp that you can see above the sakura (cherry blossom) pictures is an emergency battery powered lamp for use in case of power cuts. It helps to be prepared.

All of this is powered as follows:

The black power brick on the left (1A at 5VDC) is for the HDMI. The itty-bitty dual-output (2A at 5V DC) is for the Pi and the WiFi adaptor. The regular plug at the back is for a halogen desk lamp for times when I need a brighter light than the 40W oven bulb I usually have in my desk lamp (I don't like bright light unless I'm staring at circuit boards).

 

And now, for the moment of truth.

The Pi, with the display operating, consumes this much electricity:

38.2W. That's less than my not-terribly-bright desk lamp. That's less than a 75W-alike modern halogen light bulb. That's not bad for a little computer and a 17" monitor. If a unit of electricity is defined as a kilowatt hour, that means the consumption of one kilowatt of electricity over the course of an hour. Thus, if you run a 2KW bar heater, you run it for half an hour for the price of one unit of electricity.
The Pi with it's monitor? It will run like that for about 26 hours for the equivalent of one unit of electricity. I'm judging a unit to be approximately €0,12 with taxes and service charge factored in, though there are many different tariffs so it is a guideline. This does imply that the price of running this setup will be around €40 per year, but be realistic, this means never turning the monitor off. Most domestic users are going to be less wasteful.

Which leads us on to:

9.4W. Turn the monitor off, you lose 28.8W of the consumption. Now we're looking at a hundred and six hours per unit of electricity, or an overall cost of around €9,88 per annum.

But wait, we can actually do better. No, for real. You'll have noticed that the HDMI adaptor is plugged into its own power supply. Well, fine. Pop that out of its socket. Let's face it, the time when I'm going to want to see the display is the time when I am programming, or actually using the machine. All other times... if the monitor is off, why power the HDMI adaptor?
With this in mind, using a Pi model B and a Vonets VAP11G, it is possible to run a server for... ta-dah!

Yup.
That's right.
Seven point seven watts. My EeePC's charger takes more than that. Hell, I think the Livebox takes more than that, and its supposed to be kept on all the time (just tried it, the spare Livebox when not connected to the phone line consumes about 8.4W, that would likely rise slightly when the ADSL transceiver is enabled).
Or to put it into context, your unit of electricity would give you 130 hours of use; or an approximate cost of €8 in a year.

In reality, unless it is a set-it-and-forget-it server, you should probably factor on around €12-18 per year as there will be times when you would want to actually use the Pi. However since I'm sitting here with the Pi running (7.7W), my EeePC (20W) hooked to a 19" widescreen flat panel monitor (31W), the Livephone charger (2W), and the desk lamp (40W) - all totalling a shade over 100W, I don't need to feel any guilt or worry about leaving the Pi running. I could run it for ten whole hours for the cost of every hour of what I'm consuming now (including correction for the fact that it is on right now). And don't get me started on the 2.2KW consumed by the kettle I've just switched on. It took about 5 minutes, at 2.2KW, actually, that can be your homework - figure out how long the Pi could run for the power that I consumed making a cup of tea...

 

 

Your comments:

David Pilling, 16th September 2015, 13:42
Pity the Pi can't be put into a low power state when it is not actually doing anything. I pay to have my web site hosted I'd never thought how much the power costs. But that machine probably only has to serve up one page an hour for me - no doubt I share it with many others. 
Rick, 16th September 2015, 15:32
Thing is, the Pi running flat out takes less than the EeePC's little power brick when it is only charging the battery.
Rick, 27th September 2015, 15:50
I plugged in the Pentium 4 box (described on 11th November 2014) and was shocked to see that the base unit consumes as much as the EeePC+Pi+both monitors - namely ~100W. So I guess if I save ripping my DVDs until the winter, I'll have some stuff to watch on the tablet when it is cold, plus the box can help heat my room. Win! ;-)
jhon.chris, 9th October 2019, 11:07
LED is logic gates on a circuit board. The logic gates are placed in series and a switch for 5volts is assumed and connected.  
An LED Display unit itself is a final consumer, no data.  
 
<a href="https://dynamo-led-displays.co.uk/led-video-walls/">LED</a> Display Unit is more commonly called the 7-segment LED. 
Alan, 30th March 2020, 16:02
I was surprised when I installed solar panels on a roof. The indicator device shows how much power is being generated. As night it shows a steady 48 watts. It's actually measuring the AC current and multiplying it by 240 to get thwe watts. At night the power is flowing IN to the panel controller, so the first 48 watts are always running the system. I'm tempted to add a photocell and relay to disconnect the controller when it's dark, and save a steady 48 watts of power use.

Add a comment (v0.11) [help?]
Your name:

 
Your email (optional):

 
Validation:
Please type 79436 backwards.

 
Your comment:

 

Navi: Previous entry Display calendar Next entry
Switch to desktop version

Search:

See the rest of HeyRick :-)