[vbox-dev] Kernel Samepage Merging

James Lucas jimmy at secsme.org.au
Mon Nov 9 09:28:47 GMT 2009


I thought I would try something a little bit more complex for my next go at
delving into the VirtualBox source code however have become stuck and am hoping
that someone from Sun can give me a pointer in the right direction.

Kernel Samepage Merging has come to the linux kernel (Released in RHEL5.4 and
Fedora 12) and is utilised by KVM to perform memory overcommit for virtual
machines. Where exactly does VirtualBox allocate the VM memory structures? I
was finding code over the MM and PGM code but not exactly sure where the actual
allocation occurs.

I suspect that both the VirtualBox runtime and the host memory can be tagged as
mergeable. Host memory might be the best one to test out first (the code change
is trivial and advises the kernel that the memory is mergeable and request the
kernel to scan for identical pages)

I hope someone is able to help.



--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.




More information about the vbox-dev mailing list