# Raspberry Pi, freeing up unused memory sooner

**URL:** <https://discourse.nodered.org/t/raspberry-pi-freeing-up-unused-memory-sooner/41830>\
**Category:** General\
**Created:** [1 March 2021 15:49 UTC](https://discourse.nodered.org/t/raspberry-pi-freeing-up-unused-memory-sooner/41830 "2021-03-01T15:49:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/adamelli/32/31793_2.png) [@adamelli](https://discourse.nodered.org/u/adamelli)\
**Post date:** [1 March 2021 15:49 UTC](https://discourse.nodered.org/t/raspberry-pi-freeing-up-unused-memory-sooner/41830/1 "2021-03-01T15:49:23Z")

</div>

This might be a hardware question. `node-red-pi --max-old-space-size=256`  
Does that need to be run every time?

Source: [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi#running-locally)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 16:18 UTC](https://discourse.nodered.org/t/raspberry-pi-freeing-up-unused-memory-sooner/41830/2 "2021-03-01T16:18:03Z")

</div>

If you installed node-red using the [recommended script](https://nodered.org/docs/getting-started/raspberrypi) then it will have installed a systemd script that will do that for you if you start/stop using  
`node-red-start`  
`node-red-stop`  
and tell it to autostart on boot  
`sudo systemctl enable nodered`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 March 2021 16:18 UTC](https://discourse.nodered.org/t/raspberry-pi-freeing-up-unused-memory-sooner/41830/3 "2021-03-15T16:18:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
