Hyper-V - Swap Size/Paging File Size

Anonymous
2024-07-17T08:46:57+00:00

Hi,

Do you have any recommendation regarding the Swap Size/Paging File Size per Virtual Machine? Is it safe that we will recommend that the Swap Size/Paging File Size is equal to the Memory of the Virtual Machine?

Thank you and regards,

Franz Salazar

Windows for business Windows Server Storage high availability Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-07-18T01:15:38+00:00

    Hi,

    Compared to physical machines, there are no special requirements for page file setup for Hyper-V virtual machines. It depends on the system crash dump setting requirements and the peak usage of the system commit charge. A general recommendation for page file size is 1.5 times the RAM size.

    You can refer to this guide below.

    How to determine the appropriate page file size for 64-bit versions of Windows - Windows Client | Microsoft Learn

    0 comments No comments
  2. Anonymous
    2024-07-18T02:37:17+00:00

    Hi Ian,

    Good day.

    Does this also apply on the Virtual Machines that is running on Windows Server? It is not stated there that the computation is 1.5 although the computation that was indicated was 3 x of RAM / 8.

    Also, based on our simulation, when we run the Windows Server and Windows Client the size of the Virtual Machine folder (Paging File) is same as the RAM of the Virtual Machines.

    Thank you!

    Franz Salazar

    0 comments No comments
  3. Anonymous
    2024-07-19T03:17:23+00:00

    Hi Franz,

    Yes, that guide also applies to the Hyper-V virtual machines running on Windows Server.

    Setting the page file to 1.5 times memory is just to store the entire content of the RAM in case of a system crash and ensure there’s enough virtual memory for heavy applications. You can modify it based on your test results.

    0 comments No comments