A swap file question  

Page 1 of 3 123 LastLast

  1. Posts : 1,495
    windows 10 PRO

    A swap file question

    from my research and past experience, I have been led to believe that
    1-the swop file should be 1.5 x RAM
    2-It should not be on multiple drives
    3-C drive swap file holds crash dump files, so not sure if that should have a swap file as well as another HDD

    however now I see MS suggest a max of 3x RAM and another site suggested creating a separate partition just for the swap file, to this end I have created a swap file partition of 32 GB ( set min & max to 32GB to prevent fragmentation or does this matter in this instance ? )

    I am certain from what I read that this has been discussed very often, but with conflicting info, would like a definitive answer, also can performance suffer if the swap file is too big ?

    this is For a 64 BIT PC.....it’s getting a bit old now, was looking at how to improve performance, as the CPU often maxes at 100% when doing video conversions, during which time even slows down file copying .
      My Computer

  2. Posts : 4,039
    Windows 11 Pro, 22H2

    You may get a number of varied responses on the topic, but generally speaking, the best course of action is to simply allow Windows to automatically manage this. It is only in rare circumstances that you should need to change this.
      My Computers

  3. Posts : 1,495
    windows 10 PRO
    Thread Starter

    Ok, even if that’s the best option, there are still questions around this I would like answered....
      My Computer

  4. Posts : 4,039
    Windows 11 Pro, 22H2

    ... and those questions are what?
      My Computers

  5. Posts : 29,632
    10 Home x64 (22H2) (10 Pro on 2nd pc)

    reddwarf4ever said:
    Ok, even if that’s the best option, there are still questions around this I would like answered....
    Here's one you may not have thought of. You MUST have a swapfile on the C: drive if you want to have a complete memory dump after a BSoD so that you can diagnose the cause.

    Microsoft said:
    If you select the Complete memory dump option, you must have a paging file on the boot volume that is sufficient to hold all the physical RAM plus 1 megabyte (MB)....

    ...A kernel memory dump records only the kernel memory. This speeds up the process of recording information in a log when your computer stops unexpectedly. You must have a pagefile large enough to accommodate your kernel memory. For 32-bit systems, kernel memory is usually between150MB and 2GB. Additionally, on Windows 2003 and Windows XP, the page file must be on the boot volume. Otherwise, a memory dump cannot be created.
      My Computers

  6. Posts : 6,300
    22H2 64 Bit Pro

    Opinion here:

    The Page File (PageFile.sys) Guide for Windows 7, 8.1 and 10 - Next of Windows

    Gives you a few things to consider. Nobody will agree on the subject.

    My personal choice for SSD:

    A swap file question-pagefile.jpg

    A swap file question-pagefile-2.jpg
      My Computer

  7. Posts : 1,254
    Windows 10 Pro

    My standard recommendation regarding pagefile configuration: Unless you have specific reason for changing this, and you understand what you are doing, leave the configuration on system managed. If you are at the point of asking questions it is hardly likely you will do better than this.

    If you don't have an SSD, get one. It will do far more for performance than anything you could possibly do with the pagefile.If you have the pagefile on an SSD all you need to know about the pagefile is that is be big enough to meet commit charge requirements. The commit charge is essentially RAM size plus pagefile size.

    It really shouldn't be necessary to speak of having a pagefile on a conventional drive. For the sake of completeness I will do so.

    A great deal of nonsense has been written about the pagefile. And much that was valid when written is now obsolete. Even with a conventional drive most attempts to optimize the pagefile are a waste of time. It typically isn't used enough to make much difference. But probably putting the pagefile on it's own partition is one of the worst things you can do. This solves a problem you almost certainly don't have, and replaces it with one that is very real. #1 factor in conventional drive performance is seek time. To minimize seek time you want the pagefile as close to other OS files as possible. A pagefile on it's own partition maximizes seek time, the exact opposite of what you want. Not that this is likely to male much difference anyway.
      My Computer

  8. Posts : 13,180
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home

    One thing not often seen mentioned and may not be an issue with newer programs but some always looked for the swapfile/paging file/virtual memory being on the same drive as the OS for storing of data during their install, if not much space on a drive 2GB usually was enough but that was awhile ago.

    One 'trick' "back in the day" was to disable the paging file, reboot, defrag the drive then re-enable the paging file at the same fixed max and min size, kept the file in contiguous sectors which helped the drive's reading and prevented fragmentation of the file. But with the faster HDDs of the last few years that isn't such an issue.
      My Computers

  9. Posts : 5,897
    Win 11 Pro (x64) 22H2

    hsehestedt said:
    You may get a number of varied responses on the topic, but generally speaking, the best course of action is to simply allow Windows to automatically manage this.
    Agree with this sentiment 1000%. If this was Windows XP or Vista, I might agree with moving the swap file. For Windows 10, it does a pretty good job of managing things itself. Also if your OS is on the fastest drive in the system - SSD vs. HDD, leave the swap file on the fastest drive.

    With Windows 10 most agree leaving the swap drive alone. I do.
      My Computers

  10. Posts : 2,068
    Windows 10 Pro

    Unless you are really low on RAM, just leave it alone and let the system manage it.
      My Computers


  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 22:51.
Find Us

Windows 10 Forums