A swap file question

Page 1 of 3 123 LastLast
  1. reddwarf4ever's Avatar
    Posts : 1,235
    windows 10 PRO
       #1

    A swap file question


    Hello
    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.....its 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. hsehestedt's Avatar
    Posts : 2,173
    Windows 10 Pro, 20H2
       #2

    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. reddwarf4ever's Avatar
    Posts : 1,235
    windows 10 PRO
    Thread Starter
       #3

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

  4. hsehestedt's Avatar
    Posts : 2,173
    Windows 10 Pro, 20H2
       #4

    ... and those questions are what?
      My Computers

  5. Bree's Avatar
    Posts : 18,834
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #5

    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.
    https://support.microsoft.com/en-us/...ns-for-windows
      My Computers

  6. Callender's Avatar
    Posts : 4,104
    N/A
       #6

    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,212
    Windows 10 Pro
       #7

    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. Berton's Avatar
    Posts : 10,595
    Win10 Pro Versions 2004 and 2009/20H2, Win10 Pro IP_Dev, Win10 Home 1909
       #8

    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. sygnus21's Avatar
    Posts : 5,422
    Win 10 Pro (x64) 20H2 (19042.928)
       #9

    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. pparks1's Avatar
    Posts : 1,699
    Windows 10 Pro
       #10

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


 
Page 1 of 3 123 LastLast

  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 21:35.
Find Us




Windows 10 Forums