# Increasing Virtual Memory

> On Windows, virtual memory (or paging file) is an essential component designed to remove and temporarily store less frequently use modified pages allocated in RAM (random-access memory) to the drive.

{% tabs %}
{% tab title="Windows 10" %}

1. Go to Settings.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-9b84d8e08d4c51118486a1443a0b10ec1f876fe0%2Fwin10-vm-1.png?alt=media" alt="" width="240"><figcaption></figcaption></figure>

2. Search for "performance" and select "Adjust the appearance and performance of Windows".

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-861d3d1fa4bf3b8b3393fb3c92812e5d1f62ac10%2Fwin10-vm-2.png?alt=media" alt="" width="350"><figcaption></figcaption></figure>

3. Click on "Advanced" tab and then "Change...".

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-ec3363f35820953ff02c022d9fdfd1a65fbe769f%2Fwin10-vm-3.png?alt=media" alt="" width="239"><figcaption></figcaption></figure>

4. Unselect "Automatically manage paging file size". If possible, select a drive that you have your OS on. If you don't have enough space, [SpaceSniffer](https://github.com/redtrillix/SpaceSniffer/releases/) might help you with it.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-4b34a582e1ec7d0156e54ab52db1282ea37f37d4%2Fwin10-vm-4.png?alt=media" alt="" width="226"><figcaption></figcaption></figure>

5. Select "Custom size" and set Initial to half of your RAM value, and maximum should be identical to your RAM size and press "Set". As an example, if you have 16 GB of RAM, Initial size should be 8000, and maximum - 16000.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-ccbd0c59e0850973f2bbfacf07c77dce50b780e5%2Fwin10-vm-5.png?alt=media" alt="" width="309"><figcaption></figcaption></figure>

6. Reboot your PC.
   {% endtab %}

{% tab title="Windows 11" %}

1. Go to Settings.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-24097d53754096d4fbb0ab4709e23d6736ad8cad%2Fwin11-vm-1.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

2. Search for "performance" and select "Adjust the appearance and performance of Windows".

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-6cf654e46e492a8c06c402b5fe82b296e4a2dc12%2Fwin11-vm-2.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

3. Click on "Advanced" tab and then "Change...".

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-e0808f226d86139346258b2eb61188078185e496%2Fwin11-vm-3.png?alt=media" alt="" width="314"><figcaption></figcaption></figure>

4. Unselect "Automatically manage paging file size". If possible, select a drive that you have your OS on. If you don't have enough space, [SpaceSniffer](https://github.com/redtrillix/SpaceSniffer/releases/) might help you with it.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-5a89d4f05f16a8d7ffb98fefa31497d4c12281a8%2Fwin-11-vm-4.png?alt=media" alt="" width="297"><figcaption></figcaption></figure>

5. Select "Custom size" and set Initial to half of your RAM value, and maximum should be identical to your RAM size and press "Set". As an example, if you have 16 GB of RAM, Initial size should be 8000, and maximum - 16000.

<figure><img src="https://2163635389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlT4oo06dNP3aOVxQqDD9%2Fuploads%2Fgit-blob-9e16c596d53065d7f21291022de74ec0d2d0074a%2Fwin11-vm-5.png?alt=media" alt="" width="274"><figcaption></figcaption></figure>

6. Reboot your PC.
   {% endtab %}
   {% endtabs %}
