VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

Modify VM memory Page size

how to change the VM memory page size of a particular VM from 4kb to 2mb?

Regards, Ranjna Aggarwal
2 Replies
Sreekanth45
Enthusiast
Enthusiast

Hi,

Steps to change the page file settings for windows VM

1.Login the windows VM

2. Right click on My computer and go to Properties

3.Go to Advanced System settings

4. Click Settings under Performance

5. Select the Advanced tab and click it change which is under Virtual memory

6. Select the Drive where Virtual memory (page file) located and select Custom size and update the size of the Virtual memory (page file) size.


Note : Before changing the page file settings please check prerequisites or recommendations of the operation system


Note: Virtual memory nothing but page file

mohdhanifk
Enthusiast
Enthusiast

Hi,

Can you mention which operating system running on the Virtual machine ?

As far as I know, no operating system allows the applications to request a page size. The x86_64 paging system provides the ability to mix pages of different sizes, but this is generally only used if a large amount of memory is allocated at once.

On x86_64 (and x86), virtual addresses are mapped to physical addresses through a series of page tables. Each table provides a certain number of bits for the physical virtual address. x86_64 currently can use up to 4 tables for each mapping, each providing 9 virtual address bits, and the low 12 bits specify the offset within the page. The first 3 tables each point to the physical address of the next table, and the last points to the physical address of the actual page.

By changing the number of tables used to map to a given virtual address, the operating system can create pages of 4kB (4 tables), 2MB (3 tables), or 1GB (2 tables). Since the bit is provided in each table entry, different page sizes can be mixed, so for example a 2MB page could be followed by a 4kB page.

Reply
0 Kudos