VirtualBox using all hosts physical RAM

Discussions related to using VirtualBox on Linux hosts.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox using all hosts physical RAM

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox using all hosts physical RAM

Post 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
Virtualizateron
Posts: 10
Joined: 21. Nov 2017, 16:28

Re: VirtualBox using all hosts physical RAM

Post 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.
Attachments
VBox.tar.gz
VIrtualbox log
(23.04 KiB) Downloaded 12 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox using all hosts physical RAM

Post 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.
Post Reply