Hi,
Why is it that after powering up a Virtual Machine, the Guest Memory Usage is taking so much memory for a few minutes?
I have a Windows 2003 Server Virtual Machine with 1GB memory allocated into it. When I powered it up, for a few minutes the Guest Memory Usage shows around 900MB. But when I check the memory usage using Task Manager inside the Windows 2003 Virtual Machine it shows only around 70MB. Why is it like this?
Your input would be greatly appreciated.
Thanks,
When a Microsoft OS boots up it takes all the available ram at first that it is assigned. Then VMware does it's magic and takes back what isn't being used.
Here's a good thread that talks about guest mem usage...
http://www.vmware.com/community/thread.jspa?messageID=505332
This is also a good memory white paper....
When a Microsoft OS boots up it takes all the available ram at first that it is assigned. Then VMware does it's magic and takes back what isn't being used.
Here's a good thread that talks about guest mem usage...
http://www.vmware.com/community/thread.jspa?messageID=505332
This is also a good memory white paper....
Actually, I believe I found the answer, this white paper will tell you everything you every wanted to know about memory in ESX, here's an excerpt....
http://www.vmware.com/pdf/usenix_resource_mgmt.pdf
When the experiment is started, all five VMs boot concurrently.
Windows zeroes the contents of all pages in
physical memory while booting. This causes the system
to become overcommitted almost immediately, as
each VM accesses all of its memory. Since theWindows
balloon drivers are not started until late in the boot sequence,
ESX Server is forced to start paging to disk. Fortunately,
the share before swap optimization described
in Section 4.3 is very effective: 325 MB of zero pages
are reclaimed via page sharing, while only 35 MB of
non-zero data is actually written to disk.7 As a result of
sharing, the aggregate allocation to all VMs approaches
1200 MB, exceeding the total amount of machine memory.
Soon after booting, the VMs start executing their
application benchmarks, the amount of shared memory
drops rapidly, and ESX Server compensates by using
ballooning to reclaim memory. Page sharing continues
to exploit sharing opportunities over the run, saving approximately
200 MB.