Understanding the Home assistant resources (CPU, storage memory, ...)

Hi there,

I went through a guide to install and configure my Home assistant on a Virtual machine on my Synology NAS, and all is working perfectly, but I wanted to have a look and understand if my resources (CPU, storage, etc …) were still ok, and I have some questions / unclarities …

First, on my Synology Virtual machine, I see this … I assume this is my NAS CPU and RAM usage right ?

then on the Virtual machine I have created, I assume this is the Virtual resources provided to the virtual machine :

… and “Storage” is again the part of the disk I have assignedto the Virtual machine, out of the 2.61 TB disk :

… here come my worries … here below on the Virtual Machine tab, I see “Host memory” which is 2.36 out of 8Gb … is that a part of the NAS RAM assigned to the virtual machine ?

then on the disk, I see 31.42 GB used out of the 32 GB ??? is that correct I am running out of space here ?

Because on the storage, I see only 1.2% is used … but I assume this is the assigned space VS the available space of my 2.61 Tb disk ?

Finally, when I look at the Home Assistant, Parameters, Storage, … I see only 51% of the disk is used … where is that coming from ??

Hope someone can clarify this to me.
Many thanks !!

You’re on the correct track in your thinking.

Your synology nas has finite hardware. Correct.
Virtual machine will use some of that hardware to function.
You currently have allocated to your virtual machine a portion of your 2.6TB which is 32GB and your VM is using your NAS ram & cpu as needed.

To further break this down simply:
NAS 2.6TB of which;
VM 32gb allocated off which;
HA 16gb used;
The other 15.x GB is likely being used by the VM operating system.

Which ha are you using? What os is the VM running?

I ask, because it looks like you have your VM running an os like Windows or maybe some legacy synology VM os then have ha running within that os which would explain the space used on the 32gb

However if your VM is running HAOS directly, id be more concerned with the space used.
If your VM isn’t running HAOS directly, you could probably free up some space by running it but probably not a huge amount.

I’d run HAOS directly on the VM and just increase the storage to 64gb or so and see how you get on, for this scenario.

Hope this helps

I am using the Virtual machine manager from my Synology NAS, information here :
https://www.synology.com/en-global/dsm/feature/virtual_machine_manager

… and to be honest the installations methods of HA are not clear to me, so I just followed a guide to install HA on this Virtual machine …
If I remember well I used this : * VMware ESXi/vSphere (.ova)

on the HA, I can see this :

I am pretty sure I imported an .ova fiel on the virtual machine
Not sure if it helps you ?

It looks as though your VM is running HAOS to me which would be the efficient route to have taken.
Maybe check your backups section within home assistant and see how much space they are taking up?

ok … many Thanks … so I understand this is what I should be worried about, the 31,42GB used out of 32 GB allocated to the HA virtual machine right ??

But then what means the data provided by HA itself where it says 52% used ??

image

I do not understand why the NAS is telling me 31,42GB is used out of 32 GB allocated to the HA … where HA is telling me I am only using 52% … ??

As for your suggestion on the backup section … I see this :

P.S. I have now incresed my VM to 64 GB iso 32 GB and I see HA still takes the 31,42 out of 64 GB.

HA now shows 25% used …

image

I increased with 32GB (From 32 till 64) … is means that HA is really taking like 15GB
Out of the 32 was 50%
Out of the 64 is now 25%

So still do not understand the 15GB of HA versus the 31GB showned by The virtual machine ??

If i remember correctly in the guide I followed for my install which included various scripts, I believe one script did a cleanup of install files and such.

A full backup of my VM is only 6.x GB so if your VM still contains remnants and temporary files from the install that may account for some of that space.

I’ve just had a look, but the guide just does a post install script for proxmox, not HA, so that’s not what I was thinking of.

so it seems clear from the HA point of view only 15GB is used … where on the NAS (VM), almost 32GB.
I will open a ticket at Synology to ask if it is possible to check what is taking space on the VM (how those 32 GB’s are used)

ok - I got a reply from the Synology suppoer, they tell they have no way, on the NAS, to show the content of a VM, that “HA support” need to be contacted for this.

In short, I have open a ticket with them asking why my HA shows 15Gb is used :

image

where on the NAS (Virtual machine), it tells 32 almost Gb :

They told me to activate an option on the Vitrual machine to enable “Space reclamation”, as this would allow to reclaim the space on the NAS when I delete data on the VM … I have done so

But still I am unable to see how this 32Gb mentioned by the VM is used …
Do you have any idea how to check this ?
Is there a way to see on HA how the data is being used ?

Many thanks !

Maybe try adding the system monitor integration and then enable the disk sensors.

You should see sensors like “system monitor disk free /” “system monitor disk use” etc down the list after the integration is installed/rebooted/initilised.

That should give you a more accurate read on what’s being used.

I have a feeling the 32gb/32gb (almost full) is simply because the VM has assigned that much so it’s written off the whole 32gb and any actual readout you want would be done from within ha itself, the VM is just blind to how that 32gb is being used, essentially.