On Friday 15 August 2008, Riaan Kok wrote:
> 2008/8/14 Frank Mehnert <[EMAIL PROTECTED]>:
> > On Thursday 14 August 2008, Riaan Kok wrote:
> >> I'm testing VirtualBox 1.6.4 on a Windows XP host and don't want my
> >> VM(s) to get bothered by runtime memory allocation and fragmentation
> >> on the XP host.  Does anybody have some advice on how to turn off lazy
> >> memory allocation?  (from a quick google it seems like this was turned
> >> on by default some versions ago.)  I don't see the option in the
> >> Settings menu, but maybe there's some undocumented .xml parameter to
> >> modify.
> >
> > VBoxManage setextradata VM_NAME VBoxInternal/RamPreAlloc 1
>
> Thanks!  Tried that..  and don't quite see the difference I expected
> to see in XP task manager.  I've added the setting to the VM name as
> well as to "global"..  rebooted the host in the meantime..  checked
> that the variable gets retained..  Still the process for my Linux VM
> with 512MB RAM reports a "mem usage" of around 31MB, "peak mem usage"
> of around 38MB, "VM size" of around 66MB.  The host has 1GB RAM, no VT
> extensions, by the way.
>
> What do you think: is this just XP being unhelpful, or am my
> expectations wrong (that 512MB + videoRAM would be allocated upfront),
> or might this setting not be getting applied in some way?

Actually this works fine at least on a Linux host (and I'm sure
this works on a Windows host as well. Replace 'VM_NAME' with the
name of your VM. My Linux guest uses a VSZ (top) of 110MB without
this key when waiting in the GRUB boot menu. And it takes 415MB
if this key is enabled. I've configured 384MB for this VM.

A Windows guest will behave differently, that is, it will allocate
all memory during boot.

Kind regards,

Frank
-- 
Dr.-Ing. Frank Mehnert    Sun Microsystems    http://www.sun.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to