cracksilver Posted November 4, 2020 Share Posted November 4, 2020 Hi there I am not sure how the settings of RAM in the VM configuration must be set exactly. It has 2 values that I can set. Left: Initial Memory, Right: Max Memory. Well what does that mean exactly? And can I look somewhere how much RAM a VM is currently using? Like at overview from dockers in advanced view. I Thank you for advice. Greg Quote Link to comment
Energen Posted November 5, 2020 Share Posted November 5, 2020 11 hours ago, cracksilver said: Hi there I am not sure how the settings of RAM in the VM configuration must be set exactly. It has 2 values that I can set. Left: Initial Memory, Right: Max Memory. Well what does that mean exactly? And can I look somewhere how much RAM a VM is currently using? Like at overview from dockers in advanced view. I Thank you for advice. Greg So when you click on the ? up top, to display the page help.. it says this For VMs where no PCI devices are being passed through (GPUs, sound, etc.), you can set different values to initial and max memory to allow for memory ballooning. If you are passing through a PCI device, only the initial memory value is used and the max memory value is ignored. For more information on KVM memory ballooning, see here. And links to https://www.linux-kvm.org/page/FAQ#Is_dynamic_memory_management_for_guests_supported.3F Which says A. KVM only allocates memory as the guest tries to use it. Once it's allocated, KVM keeps it. Some guests (namely Microsoft guests) zero all memory at boot time. So they will use all memory. B. Certain guests (only Linux at the moment) have a balloon driver, so the host can have the guest allocate a certain amount of memory which the guest won't be able to use anymore and it can then be freed on the host. Ballooning is controlled in the host via the balloon monitor command. So basically .. if you're running a Windows VM it will automatically assign the "max" memory. If you were running a Linux VM and set the initial memory to 8GB and the max to 16GB, then it would initially use 8GB when it starts up and as needed it would expand to 16GB. That's my understanding. Does it work in practice? Don't know. In your picture you are giving the VM 20GB of RAM. Depending on what the VM is and what you are doing, you may not need that much. And how much RAM does your Unraid server have? This is not a fictional number for the VM.. it uses your Unraid RAM... so if you have 16GB of RAM in your system, setting it to 20 will most likely be some kind of problem. Quote Link to comment
cracksilver Posted November 5, 2020 Author Share Posted November 5, 2020 Thanks for your detailed description. Then I got that right. I have 128 GB of RAM and of course I would like to distribute these resources sensibly to the VM's and Docker's. greg Quote Link to comment
bastl Posted November 5, 2020 Share Posted November 5, 2020 @cracksilver Small hint, don't give the VM all the cores your server has. Core 0 is always used by unraid itself. You better uncheck 0/8 to reduce interferences with backround tasks running on the host system. Quote Link to comment
cracksilver Posted November 5, 2020 Author Share Posted November 5, 2020 @bastl This is a good one. Thank you for this. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.