Hassio running on raspberry Pi4 only using 1GB of ram

What does the free command tell you?

Free shows:

image

HA shows:

image

Hi,
free command is actually showing that you have only 1GB of RAM available (“total” column). is your RPi really a 4GB model?

Kostya

@kostya yup definitely the 4GB version

As a very basic test to rule out any hw issues I’d try to boot into freshly installed linux and check the amount of RAM it recognises. Unless you haven’t done that already :slight_smile:

Maybe you have been ripped off?

Free and HA both show the same RAM used/free, looks like you have 1 GB Pi4 not a 4 GB, you may want to return it for the proper model.

@firstof9 and @kostya i just loaded raspbian onto another SD card, everything else is the same, seems to show the 4GB version:

Swapped the card back again and HA still shows 1GB…

1 Like

Always good to verify, someone may need to compile a HassIO image with a 4GB limit for you then.

I logged a bug: https://github.com/home-assistant/hassio/issues/1172

https://github.com/raspberrypi/linux/issues/3032

1 Like

FYI: as of 30/08/2019 its fixed!

I’m still seeing the issue in 98.3 - are you on a dev branch?

Hassio dev yep

When will the fix make it to the released version? Does anybody know? Cause mine also still shows 1GB… And I just updated to the latest version…

Aha! It has been released - i just didn’t know how to update.
According to this bug ticket:


It was fixed by this bug ticket:

It looks like issue 459 is on “hassos”, which is different than “home-assistant.”
In short, the bug fix isn’t part of the usual “home assistant” update, which appears at /hassio/dashboard. (for example, 93.x)
It’s part of the “hassos” update - which is on a different page: /hassio/system
You can click “Update” on the “Host System” panel to get the latest version of Hassos. I went from 3.3 to 3.5, and now Home assistant is seeing all 4Gb.

This issue has just bitten me after updating HomeAssistant to 0.101.3, and now HassOS is at 3.3.

I can’t currently upgrade to 3.5 via HomeAssistant because the Raspberry Pi is out of memory when stuck at 1GB, and the system becomes unresponsive, even on the command line over SSH.

So it would seem my only option is to download a HassOS 3.5 image from https://github.com/home-assistant/hassos/releases/tag/3.5, but I have no idea what to do with the image after that.

Well it took way too long to figure out, but HassOS can do “over the air” updates using the semi-magical, semi-functional Config drive: https://github.com/home-assistant/hassos/blob/712dcf9f74497eef6a75ed1e76f8ae8817ae3ee6/Documentation/configuration.md

For some reason the raucb file wasn’t being installed from the config drive, but I added the authorized_keys file and that set up an SSH server so that I could SSH in, and then manually run:

mount /dev/sda1 /mnt/config
rauc install /mnt/config/hassos-35.raucb
systemctl reboot

So now I’m on HassOS 3.5 and it’s seeing all 4GB again. But HomeAssistant is still failing to start for some reason.

Your log should tell us why.

Good point, I opened After update from 0.97 to 0.102, HomeAssistant consumes all memory and then fails to start to continue since this is now a different problem.