# Raspberry Pi 4+

**URL:** <https://discourse.nodered.org/t/raspberry-pi-4/16075>\
**Category:** Hardware\
**Created:** [30 September 2019 07:59 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075 "2019-09-30T07:59:03Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Post date:** [30 September 2019 23:20 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/21 "2019-09-30T23:20:28Z")

</div>

Overheating issues, reliability issues mostly. Was willing to put up with it until microsoft got started with their "qualified devices" crap and now we have to pay for windows CALs for the things even if i run linux on them.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [1 October 2019 05:27 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/22 "2019-10-01T05:27:04Z")

</div>

> [@TotallyInformation](#):
>
> Nice. I assume that is running Linux? Do you have a written config or some tips to get the power down? Something I've never really had to do with a PC.

Since that box is running 24/7 and the cost of electricity in Germany is one of the highest in Europe, I was eager to keep it down.

Yes, it's running Debian Stretch at the moment (soon to be upgraded to Buster).

The things I "tuned" are listed below. Note that some are specific to my use-case and this box. I tried different configurations and measured the power consumption after booting (idle).

#### use SATA power management (ALPM)

For this to work properly, you need to use Kernel 4.19 from Backports (or Debian Buster with default kernel). The main reason is the support for this new [SATA power management mode](https://lore.kernel.org/patchwork/patch/830838/) `med_power_with_dipm`. You could use the existing `min_power` mode as well, but I read that there were problems with certain hardware setups that could lead to data corruption. `med_power_with_dipm` is enabled by default (if supported) so no config required.

You can check the current mode by running  
`cat /sys/class/scsi_host/host*/link_power_management_policy`

#### remove the on-board Wifi module

I don't need it, so I removed it from its slot. -\> no power wasted here

#### use only one RAM module

Each RAM module uses power, so I decided to use only one slot. 4GB were enough for my use-case, and yes, you only get single channel mode, but that is still more than enough.

#### disable the second Ethernet port

This box has two ports, one Intel I219-LM and one Intel I211. While the I211 has more features, it is internally connected as a separate PCIe device and can be completely disabled (powered down) in the BIOS.  
The integrated I219-LM can be disabled as well, but it seems it is not powered down completely. So I used this one for my network connection.

#### disable unneeded devices in BIOS

I disabled at least the on-board sound chip and the parallel port.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [1 October 2019 07:23 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/23 "2019-10-01T07:23:55Z")

</div>

There is a passive case for the Pi 4, looks like a nice middle road

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [1 October 2019 07:38 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/24 "2019-10-01T07:38:43Z")

</div>

I have been looking at the Pimoroni heatsink cases as well, but I feel like I need something protecting myself more from accidentally burning on that case if I fall and hit it.

> **[Aluminium Heatsink Behuizing voor Raspberry Pi 4 - Goud](https://www.kiwi-electronics.nl/index.php?route=product%2Fproduct&product_id=4343)**
>
> Why use a heatsink and a case, when you can use a heatsink case?! This sleek, anodised aluminium case for Raspberry Pi 4 will give you 10-15°C of passive cooling under full CPU load. Pretty cool.
> 
> This anodised aluminium heatsink case will...

Hence looking at a fan instead. I guess it’s a personal decision, passive cooling would be preferred, but physical safety even more. If I could combine those it would be perfect 🙂

---

<div class="post-metadata">

**Author:** ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)\
**Post date:** [2 October 2019 10:43 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/25 "2019-10-02T10:43:40Z")

</div>

Hi, I was totally disillusioned with Synology, especially the cost of their units, so I looked at the mini PC options. I settled for an Intel NUC 6CAYH, this is one of the cheaper units but with the additional 8Gb of fast ram and 120 Gb EVO SSD it still cost less than £150.00. It runs Unbuntu 18.04.2, [Hass.IO](http://Hass.IO) along with Node-RED, Grafana, Influx and a load of other stuff all in Docker with absolutely no problems, updating software is a breeze. It is so quiet I forget it is there. Highly recommended. There is of course no reason why a larger capacity SSD cannot be fitted or an external USB 3.0 drive.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 October 2019 11:16 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/26 "2019-10-02T11:16:07Z")

</div>

Hi Bob @bobcroft,  
Do you mean you can purchase all that kit for £150 or just the Intel box ??

---

<div class="post-metadata">

**Author:** ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)\
**Post date:** [2 October 2019 12:03 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/27 "2019-10-02T12:03:42Z")

</div>

Hi Dave, when I purchased mine earlier this year all the kit was approximately £150.00. I recall the NUC was about £100.00. I searched the net to get the best prices on the individual items. The only thing one has to be careful with is the memory modules, it is important to use the ones Intel specify. I bought the 'Crucial' brand off Amazon.

---

<div class="post-metadata">

**Author:** ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Post date:** [2 October 2019 13:06 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/28 "2019-10-02T13:06:50Z")

</div>

> [@afelix](#):
>
> but I feel like I need something protecting myself more from accidentally burning on that case if I fall and hit it.

They don't get hot enough to burn you. Even with no heatsink, it's less discomfort to touch the heat spreader on a pi4 running at 100% CPU than to dip your finger in a fresh cup of coffee. (Just tested it here at my desk to get that data.)

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [2 October 2019 18:49 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/29 "2019-10-02T18:49:50Z")

</div>

Thanks Jay, guess I've made up my mind now 🙂

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [2 October 2019 20:45 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/30 "2019-10-02T20:45:54Z")

</div>

> [@JayDickson](#):
>
> (Just tested it here at my desk to get that data.)

Ah, field trials always have an element of danger 🙂

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [2 October 2019 20:50 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/31 "2019-10-02T20:50:50Z")

</div>

If you are not married to the Pi4 and really don't want a fan the $99 Jetson Nano is fanless and its heatsink doesn't get hot enough to come anywhere dear burning me when running my AI workload. Performance is significantly better than the Pi4 too.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [2 October 2019 22:11 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/32 "2019-10-02T22:11:27Z")

</div>

This is an [interesting blog post](https://blog.pimoroni.com/raspberry-pi-4-thermals-and-fan-shim/) from Pimoroni, who sell both heatsink cases & fans.

Although I have always thought that a heatsink solution would be the better option, I'm feeling a little more positive to the idea of using a fan which is controlled in software.

Pimoroni has also developed [python scripts](https://github.com/pimoroni/fanshim-python/tree/master/examples) to control the shim.

Comments... 😉

---

<div class="post-metadata">

**Author:** ![TheHypnoToad](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thehypnotoad/32/7979_2.png) [@TheHypnoToad](https://discourse.nodered.org/u/TheHypnoToad)\
**Post date:** [3 October 2019 00:00 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/33 "2019-10-03T00:00:52Z")

</div>

Hi, I'm installing Node-RED v1.0 on a shiney new Pi 4 - 4Gb model, and the installation docs say I should use

`node-red-pi --max-old-space-size=256`

Due to the limited memory of the Raspberry Pi, but as I have 4GB instead of 1GB on the older models, would running a different command be better here?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 October 2019 00:01 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/34 "2019-10-03T00:01:43Z")

</div>

Use the script in the docs [https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![TheHypnoToad](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thehypnotoad/32/7979_2.png) [@TheHypnoToad](https://discourse.nodered.org/u/TheHypnoToad)\
**Post date:** [3 October 2019 00:07 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/35 "2019-10-03T00:07:26Z")

</div>

@zenofmud Hi yes the

`bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)`

command has finished doing it's thing and it has set up SystemD service for node-red also.

It seems to have set `Environment="NODE_OPTIONS=--max_old_space_size=256"` by default, so I guess this is OK for my 4GB model? Or is there any benefit to changing the 256 number as I have more than 1GB RAM?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 October 2019 00:24 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/36 "2019-10-03T00:24:37Z")

</div>

Feel free to increase it.

---

<div class="post-metadata">

**Author:** ![TheHypnoToad](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thehypnotoad/32/7979_2.png) [@TheHypnoToad](https://discourse.nodered.org/u/TheHypnoToad)\
**Post date:** [3 October 2019 03:12 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/37 "2019-10-03T03:12:09Z")

</div>

Thanks, I've set it to 512Mb for now which is believe is the default that NodeJS uses, I'll see how it goes.

I just wanted to check before tinkering. 🙂

---

<div class="post-metadata">

**Author:** ![realsquash](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@realsquash](https://discourse.nodered.org/u/realsquash)\
**Post date:** [3 October 2019 05:18 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/38 "2019-10-03T05:18:54Z")

</div>

I've had a Pi4-4GB running in place of a 3B for a few months nonstop. It fits inside a case and plugs into a PCB I made, so there isn't enough room for a heatsink. I have had to leave the cover off to keep the temp down, and I will add a very small fan soon. The extra RAM made a huge difference in my kiosk type application since I am running Chromium, node-red, etc on it. Huge. Power consumption isn't much more and I've turned off everything I can.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 October 2019 07:02 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/39 "2019-10-03T07:02:19Z")

</div>

I thought the nodejs default was 2gb which is why we limited it in the first place (being more than any pi had at the time)

---

<div class="post-metadata">

**Author:** ![HypnoToad](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@HypnoToad](https://discourse.nodered.org/u/HypnoToad)\
**Post date:** [3 October 2019 14:42 UTC](https://discourse.nodered.org/t/raspberry-pi-4/16075/40 "2019-10-03T14:42:29Z")

</div>

I got the 512Mb number from here:

> **[How to solve process out of memory in Node.js](https://medium.com/@vuongtran/how-to-solve-process-out-of-memory-in-node-js-5f0de8f8464c)**
>
> I will showing how to solve process out of memory in Node.js.

> By default the memory limit in Node.js is 512 mb, to solve this issue you need to increasing the memory limit use command

I didn't notice yesterday, but the post if from 2016, and related to an old Node version (v6 maybe?), so I'd assume the Default mem limit is now 2GB 🙂

[Previous page](https://discourse.nodered.org/t/raspberry-pi-4/16075.md?page=1)

[Next page](https://discourse.nodered.org/t/raspberry-pi-4/16075.md?page=3)
