HostMemoryLow with plenty of memory

Discussions related to using VirtualBox on Windows hosts.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

HostMemoryLow with plenty of memory

Post by lefevrol »

I am trying to install W2K as a guest OS on Windows XP3 host and I get the dreaded HostMemoryLow error. This machine has 2G of memory, of which 1.2 are physically available when the error occurs, and I only requested 512M for the VM, so this is totally baffling!

I did search the forums but did not find any good answer.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

Which VBox version?
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

The latest one, i.e., 2.1.4. I was able to create the VM with 256M but that may not be enough for futures uses.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

Resources reported to be available are not always correct, the host cache eats away more ram when more (other) resources start doing stuff like starting a VM. See if you can disable some Host services or add more ram.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

I am once again getting the error while trying to start a second VM, also of 256M, while there are still 1.1G available. It really looks like you have a bug here.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

"Resources reported to be available are not always correct" Come on, a 850M discrepancy? VBox says there is less than 256M left, Task Manager says there is 1.1G: that is not credible.

Anyway, is there a tool that will report memory usage as seen by VBox?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

Could be a bug yes, get processexplorer, it will show you exactly how your ram is used and by who.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

Process Explorer (the SysInternals tool, right?) agrees with Task Manager to within 1M: they both say there is 1.2G left.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

Yes that one, but what happens to your ram when starting that VM? and who's grabbing it?
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

Before starting and after closing it the VM, PE reports 2G total, 1.2G available, 13G system cache. While the error dialog is showing the figures are the same except for available, which drops to 1.2G. What information do you need to know exactly and how can I get it?

All other applications can function within these parameters: none seems to think that memory is exhausted. Thus even if this is not a VBox bug it is (from a practical point of view) a severe drawback.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

1.2G available,
1.3G system cache
?
This makes sense when running out of ram... system cache is always the culprit here, it sometimes doesn't release enough or too late.

Additional:
You have to see this in a liniar fashion, if one block(application) registers X amount of ram then system cache will try to reserve cache for it in a liniar fashion which is about 25% of X, this then has to be taken away from the OS, where Z=Y(OS)+25%(Y)+Cachereserve-(X(VM)+25%(X)), you won't see that happening until the VM starts running. System cache will shoot up in use liniar to what the VM is requesting. Not even mentioning what (shared)video ram use can do when more then 1 graphical instance is doing its thing.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

That still doesn't explain why I can start other applications but not VBox.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Post by vbox4me2 »

No it doesn't really explain that the easy way, all you can try is disabling services that seem to use alot of ram.
lefevrol
Posts: 13
Joined: 1. Mar 2009, 02:37

Post by lefevrol »

I have almost nothing else running. The OS is responsible for most of the memory consumption.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The reason you can't start another VM is because you are running out of physical RAM. VB only uses RAM. Other programs can use your pagefile. Check how much RAM you are using. On my system, I have 3 GB of RAM, no page file and by default I'm already using more than 700 MB of RAM. With a VM of 512 RAM, I climb up to 1.5 GB in use. You can easily see how much physical RAM you have and are using, by opening the Windows Task Manager, go to the Performance tab and check the values under Physical Memory (K). That is the upper right block, of the 4.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Locked