Page 2 of 2

Re: VirtualBox using all hosts physical RAM

Posted: 7. Aug 2018, 08:56
by socratis
You got to think about your host's cache mechanism as well. If you simply launch VirtualBox with your VM, and you have no interaction with the host file system via shared folders or network shares, then I expect the memory to stay as is.

But if you interact directly or indirectly with your host, then your host is caching. How much and at what rate depends solely on your host. This is not memory allocated from VirtualBox, it's the memory management of your host.

Re: VirtualBox using all hosts physical RAM

Posted: 7. Aug 2018, 08:57
by mpack
To be sure, show us a log that doesn't have this :-
VBox.log wrote: VirtualBox VM 5.2.10_Ubuntu r121806 linux.amd64 (Jun 15 2018 16:14:07) release log

Re: VirtualBox using all hosts physical RAM

Posted: 29. Aug 2018, 06:02
by Virtualizateron
Ok, trying again after having uninstalled everything, reinstalled, and then waited of rthe memory to get taken up again. I also checked and the log now makes no mention of Ubuntu as before.

Re: VirtualBox using all hosts physical RAM

Posted: 29. Aug 2018, 09:57
by mpack
VBox.log wrote: 00:00:02.617817 Host RAM: 7923MB (7.7GB) total, 4376MB (4.2GB) available
...
00:00:06.513514 RamSize <integer> = 0x0000000141100000 (5 386 534 912, 5 137 MB, 5.0 GB)
00:00:06.515171 VRamSize <integer> = 0x0000000000c00000 (12 582 912, 12 MB)
According to this log it isn't a matter of RAM use growing, it's a matter of you assigning more RAM to the VM than you actually have available at the time. Whatever the memory hog is, it was there before you launched this VM.

Incidentally, 12MB is a impractically small amount of VRAM to give to a modern GUI based OS. I'd increase graphics RAM to 64MB. If you kill the RAM hog then I'd increase this to 128MB.

p.s. I notice you haven't installed the extension pack. I assume you know that features such as USB2/USB3 and host webcam passthrough will not work without it.