VMware Cloud Community
batfink
Contributor
Contributor
Jump to solution

Transparent Page Sharing - need common load addresses in the guests?

In order to better understand memory resource management, I have been reading Kit Colbert and Rajesh Venkatasubramanian's VMworld presentation (TA21 - Understanding "Host" and "Guest" Memory Usage And Related Memory Management Concepts) and would like to know:

Where common memory pages exist across multiple VMs, in order for transparent page sharing to take place, do the pages need to be loaded into the same base memory address on each guest?

Or, to put it another way, can transparent page sharing be used to optimize files which were rebased by the guest OS upon loading?

Also, once the Balloon driver has pinned memory within the guest and passed it back to the host, how does the guest (Windows) OS or application take back this memory when required?

Windows guests, if that makes any difference.

Thanks.

0 Kudos
1 Solution

Accepted Solutions
larstr
Champion
Champion
Jump to solution

1. No, they dont. Even a single VM can get mutliple equal pages shared.

2. The balloon driver is just a process inside the VM that allocates a certain amount of memory. This leaves less memory available to the rest of that guest, and the guest os has to handle this as it would if another application used all this memory. When memory is available in the system again, the size of the balloon driver will decrease and the guest might swap things back from its OS provided swap file if needed.

Lars

View solution in original post

0 Kudos
2 Replies
larstr
Champion
Champion
Jump to solution

1. No, they dont. Even a single VM can get mutliple equal pages shared.

2. The balloon driver is just a process inside the VM that allocates a certain amount of memory. This leaves less memory available to the rest of that guest, and the guest os has to handle this as it would if another application used all this memory. When memory is available in the system again, the size of the balloon driver will decrease and the guest might swap things back from its OS provided swap file if needed.

Lars

0 Kudos
batfink
Contributor
Contributor
Jump to solution

Wow, that was quick! Thanks, I visited your home page as well, will give vmktree a try.

0 Kudos