Optimal setting for swap file question

Page 2 of 2 FirstFirst 12

  1. Posts : 1,255
    Windows 10 Pro
       #11

    The best size of the pagefile is such that it accommodates the peak commit charge plus a comfortable safety margin. Other than that it really makes very little difference. All recommendations regarding pagefile size were designed to provide that. There is no specific size that will provide optimum performance.

    The commit limit is RAM size plus pagefile size, minus a small overhead. If the commit charge hits the limit and the pagefile cannot be enlarged bad things will happen, such as application failures. Some applications can handle this gracefully, others cannot. This does not imply that the pagefile will have much usage, it just has to be that size to provide for the necessary commit limit.

    The simplest way to have an adequate pagefile size is to set it to system managed. Contrary to many sources, this is not inefficient. Enlarging the pagefile does not require writing any data to the file, only updating some of the files metadata.

    From a performance standpoint the pagefile should be on an SSD. Typical pagefile usage are an almost perfect match for SSD performance characteristics. For a conventional drive they could hardly be more wrong.
      My Computer


  2. Posts : 7,898
    Windows 11 Pro 64 bit
       #12

    My HP laptop has 16GB memory and Windows has chosen a 1GB page file
      My Computers


  3. Posts : 310
    Microsoft Windows 10 Home 64-bit 19045 Multiprocessor Free
    Thread Starter
       #13

    by doing some tests the computer goes faster / smoother overall with initial 8192 and maximum 12288.

    thanks everyone for input.
    Gabrio
      My Computer


  4. Posts : 7,898
    Windows 11 Pro 64 bit
       #14

    I used to let Windows manage the page file on my desktop PC having 16GB RAM. However, MS Flight Simulator 2020 kept crashing to the desktop which I solved by setting the page file to a fixed min / max size of 16GB whereas Windows had chosen under 1 GB.
      My Computers


  5. Posts : 11,247
    Windows / Linux : Arch Linux
       #15

    Hi there
    please understand the difference between a page file and a swap file.

    a page represents a block of memory that has to be written to some type of non RAM storage device because there's not enough available RAM - what system does is look at currently running processes and sees what memory (real RAM) allocated to that application isn't being currently used -- it then writes those to the paging device and when the application needs those agian it reads the device and writes those back into RAM so the application can continue.

    It's hideously more complicated than that but essentially that's what the process does

    Swapping is another issue entirely -- an image of the entire application / user space will be written to HDD -- a much lengthier process -- this is usually only done on Multi User systems such as Linux where a server may have 100's of users logged on concurrently but only say 1 or 2 active.

    AFAIK windows 10 (a single user system -- not dealing with server versions here) doesn't use swapping - no reason why it should.

    The best policy though with paging is always to have sufficient RAM for what you want to do, don't attempt to run too many processes at once and let the system manage it --the algorithms are very complex - tampering with it unless you have a good understanding of OS Internals is likely to yield inoperative or inferior performing systems.

    Some very specialized applications might go bonkers when Windows sets the paging but that's probably because these are applications bypassing the Windows API and trying to deal with the actual hardware -- some older gaming / simulation things e.g flight / driving simulators etc to get max performance out of older machines - but these days that should be a no no. Dedicated GPU's will manage intensive gaming apps.

    Cheers
    jimbo
      My Computer


  6. Posts : 7,898
    Windows 11 Pro 64 bit
       #16

    jimbo45 said:
    Hi there
    please understand the difference between a page file and a swap file.

    a page represents a block of memory that has to be written to some type of non RAM storage device because there's not enough available RAM - what system does is look at currently running processes and sees what memory (real RAM) allocated to that application isn't being currently used -- it then writes those to the paging device and when the application needs those agian it reads the device and writes those back into RAM so the application can continue.

    It's hideously more complicated than that but essentially that's what the process does

    Swapping is another issue entirely -- an image of the entire application / user space will be written to HDD -- a much lengthier process -- this is usually only done on Multi User systems such as Linux where a server may have 100's of users logged on concurrently but only say 1 or 2 active.

    AFAIK windows 10 (a single user system -- not dealing with server versions here) doesn't use swapping - no reason why it should.

    The best policy though with paging is always to have sufficient RAM for what you want to do, don't attempt to run too many processes at once and let the system manage it --the algorithms are very complex - tampering with it unless you have a good understanding of OS Internals is likely to yield inoperative or inferior performing systems.

    Some very specialized applications might go bonkers when Windows sets the paging but that's probably because these are applications bypassing the Windows API and trying to deal with the actual hardware -- some older gaming / simulation things e.g flight / driving simulators etc to get max performance out of older machines - but these days that should be a no no. Dedicated GPU's will manage intensive gaming apps.

    Cheers
    jimbo
    I'm talking about the virtual memory / paging file size
      My Computers


  7. Posts : 11,247
    Windows / Linux : Arch Linux
       #17

    Steve C said:
    I'm talking about the virtual memory / paging file size
    Hi there
    agreed but some posts mentioned swap which is a totally different issue --just trying to clarify -- your stuff is fine.

    Cheers
    jimbo
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:40.
Find Us




Windows 10 Forums