• What are the implications, if any, on moving Page file from C: drive

    Home » Forums » AskWoody support » Windows » Windows 10 » Windows 10 versions – no longer supported » Windows 10 version 21H2 – November 2021 Update » What are the implications, if any, on moving Page file from C: drive

    Author
    Topic
    #2452261

    I have noticed that the free space on my C: drive 256GB SSD NVMe is shrinking.
    Found Pagefile.sys to be 28GB. My PC has 16GB of RAM and RAM usage was 87%.
    Can’t find out if the pagefile has any data or is empty but just allocated by the system that won’t let go even after a restart.

    Thinking of moving pagefile from c: drive to d: 1TB HDD.
    Wonder if I’ll notice any degrading in performance.

    Viewing 32 reply threads
    Author
    Replies
    • #2452276

      Generally speaking the page file is set by the OS – https://www.tomshardware.com/news/how-to-manage-virtual-memory-pagefile-windows-10,36929.html uncheck automatic and you can manually set it.

      In the back of my mind I have seen a KB when there are issues in moving to another hard drive and resulting side effects but it’s been enough years that it may be older OS.

      Also check windows search as that tends to hog things.  I’ve also found that reinstalling a fresh OS removes the crud.

      Susan Bradley Patch Lady/Prudent patcher

    • #2452279

      What’s the “Recommended size” shown under Virtual Memory?

        Run SystemPropertiesPerformance from cmd/powershell prompt.

        Select the Advanced tab.

        Click the Change button under the Virtual memory section.

        PageFileSize

      If it’s less than 28GB (which I suspect it will be) set a Custom size = to either the “Recommended” size or to your total system RAM, reboot, then reset it back to “System managed size“.

      Note: in the above screen shot from my own PC, I “Customized” the size to equal my total system memory of 32GB instead of the recommend 4.9GB because my system drive is 500GB and had more than enough room to support it.

      Also, as Susan pointed out, while it is “possible” to move it to another drive, doing so can have unexpected consequences.

      2 users thanked author for this post.
      • #2452282

        I buy a bigger hard drive or try to use treejam to find the hog.  I tend to not mess with pagefile to save space.

        Susan Bradley Patch Lady/Prudent patcher

    • #2452284

      Resist the temptation to set “No paging file” (with the intent later to revert to “System managed”) in order to get a clean start. Years ago, on a version of Windows far, far, away, I did that. I ended up having to boot into Safe mode in order to boot at all.

      I don’t know if Windows 10 would have the same reaction.
      Experimentation is fine – when one is prepared for any adverse recovery scenario.

      But: someone here on AW, with an abundance of RAM, once did report running with no Page file. It’s been several years; I don’t know which Windows version.

    • #2452291

      Thinking of moving pagefile from c: drive to d: 1TB HDD.
      Wonder if I’ll notice any degrading in performance.

      I would think if your D drive is a spinner you probably would notice degradation. I used to tweak page file but over the years kind of got away from it although I will occasionally set a custom size depending on machine and use.

      1 user thanked author for this post.
      • #2464874

        Agreed, been there tried all that.
        On Win2k/XP, ended up using 2 identical Maxtor ATA133 drives back then, Primary HDD for OS/ Programs, Secondary HDD for pagefile (using symantecs Drive utilities, was able to put the pagefile on the fastest area of the seconday HDD) and kept personal files on there too.

        Windows - commercial by definition and now function...
    • #2452300

      I have been running a custom pagefile in a dedicated partition on a separate drive since before Windows XP.

      System-drive

      The pagefile has always been 4GB.  The partition size has always been ~6GB (so File Explorer won’t complain that it’s almost full) and formatted FAT32.

      Paging-file

      In twenty plus years I have not had one single problem with the pagefile—no BSOD, no frozen UI, no performance degradation, nothing.  I started with 4GB when I had only 4GB of RAM, and though I have 16GB RAM on this machine, I still have only a 4GB pagefile.  My DIY NAS has 32GB RAM, and the same pagefile setup of 4GB on a FAT32 dedicated partition.

      Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
      We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
      We were all once "Average Users".

      3 users thanked author for this post.
    • #2452313

      Thinking of moving pagefile from c: drive to d: 1TB HDD.
      Wonder if I’ll notice any degrading in performance.

      I would think if your D drive is a spinner you probably would notice degradation. I used to tweak page file but over the years kind of got away from it although I will occasionally set a custom size depending on machine and use.

      I agree with CyberSAR.  Putting any of Windows files on anything other than SSD will definitely have an impact on overall speed.

      Some years back, using a purchased ‘program mover’ product, I moved a number of not-so-often-used applications to my bulk storage hard drive.  Unfortunately, I still used those programs every couple of weeks.  It didn’t take long for me to grow tired of waiting a second or longer to load one of those programs.

      For what it’s worth, I also put all Adobe Photoshop & Lightroom work files on my C: SSD for speed.  In 10 words or less: “I don’t do ‘slow’.”

       

      • #2452439

        Putting any of Windows files on anything other than SSD will definitely have an impact on overall speed.

        This is simply not true in the case of the page file, particularly when a system has more than adequate RAM.

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2452370

      What’s the “Recommended size” shown under Virtual Memory?

      Automatically manage..

      Recommended size = 2928MB
      Currently allocated = 24576 MB

      I can disable Pagefile, restart and start again fresh.

      Why doesn’t Windows released storage in pagefile after a restart where RAM usage in only 25% ? Will cold boot change allocated pagefile size ?

      Update : set manually to max 8GB.

      • #2452445

        Why doesn’t Windows released storage in pagefile after a restart where RAM usage in only 25% ? Will cold boot change allocated pagefile size ?

        Cold boot doesn’t change the size.

        In fact, you’ll notice that, even though you set a custom size of 8GB, it’s current only using 2.9GB. That’ll “slowly” increase until it hits your 8GB limit but, once it increases in size, it never shrinks unless you “manually” reset it again.

        Back in the WinXP days there use to be a program available that “shrank” the page file back down to what was actually in use at each reboot, but it’s no longer available (probably because, like a lot of other older utilities, it just didn’t work on newer version of Windows)

        As to why Windows doesn’t release the “unused” part of the page file and shrink the size back down after a restart? That’s something only Microsoft could answer.

        1 user thanked author for this post.
    • #2452379

      try to use treejam to find the hog.

      TreeSize won’t display contains of PageFile.

    • #2452390

      If you have a small amount of RAM then your operating system does more paging.  Paging on an SSD is not a good thing, since it wears it out.

      If you have lots of RAM (say 16 GB for Windows 10) then you will do very little paging after startup, so which disk type the paging file is located on is not relevant.

      I have used a spinning hard disk partition for the paging file for many versions of Windows without problems.  Now that SSDs are more prevalent I minimise the ‘paging problem’ by having adequate quantities of RAM.

      BATcher

      Plethora means a lot to me.

    • #2452392

      If you have lots of RAM (say 16 GB for Windows 10) then you will do very little paging after startup

      I have 16GB of RAM and pagefile reached 28GB (currently 24.5GB).

      • #2452437

        I have 16GB of RAM and pagefile reached 28GB (currently 24.5GB).

        Update : set manually to max 8GB.

        There are very many misconceptions and old wives tales about the page file that are simply not true.  When Windows is loading from a cold start, as it gets fully loaded it is going to page some stuff out of RAM that won’t be needed until shutdown.  Putting your page file on a dedicated partition on your HDD will handle the startup paging without you being able to notice it, because the writes are waiting for available free time; they aren’t being immediately written to disk.  A dedicated partition keeps the page file from fragmenting.  FAT32 has less file system overhead than NTFS.

        With 16GB of RAM and a fixed-size page file, you will have very little paging going on in addition to that initial paging. As shown in 2452300, my system doesn’t use the full 4GB to which I have it restricted.  Taking the  page file away from system management puts control of the page file and its size into the hands of a different algorithm set, and page file usage shrinks considerably.

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

        2 users thanked author for this post.
    • #2452428

      Paging on an SSD is not a good thing, since it wears it out

      Not true, SSDs do not wear out at anywhere near the rate rumours and speculation suggest. Leave the page file on your SSD for maximum performance.

      https://techreport.com/review/27436/the-ssd-endurance-experiment-two-freaking-petabytes/

      cheers, Paul

      2 users thanked author for this post.
    • #2452442

      A dedicated partition keeps the page file from fragmenting

      Use an SSD to eliminate fragmentation performance loss and get zero seek time and much greater I/O into the bargain.

      cheers, Paul

      1 user thanked author for this post.
      • #2452449

        Use an SSD to eliminate fragmentation performance loss and get zero seek time and much greater I/O into the bargain.

        There are very many misconceptions and old wives tales about the page file that are simply not true. When Windows is loading from a cold start, as it gets fully loaded it is going to page some stuff out of RAM that won’t be needed until shutdown. Putting your page file on a dedicated partition on your HDD will handle the startup paging without you being able to notice it, because the writes are waiting for available free time; they aren’t being immediately written to disk. A dedicated partition keeps the page file from fragmenting. FAT32 has less file system overhead than NTFS.

         

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

        1 user thanked author for this post.
        • #2452451

          Are you implying that using an SSD is an old wives tale? I don’t really see the relevance.

          cheers, Paul

          • #2452465

            Interesting.

            2452440

            I’m stating:

            There are very many misconceptions and old wives tales about the page file that are simply not true. When Windows is loading from a cold start, as it gets fully loaded it is going to page some stuff out of RAM that won’t be needed until shutdown. Putting your page file on a dedicated partition on your HDD will handle the startup paging without you being able to notice it, because the writes are waiting for available free time; they aren’t being immediately written to disk.

            Keeping the page file on an SSD for a system with 16GB RAM is a waste of space on the SSD; the difference will not be noticeable in the least.  Additionally, a system-managed page file size is an allocated size, not the actual size of the file.  The system predicts the possible paging need of a program when that program is loaded, and allocates that additional size to pagefile.sys.  That is simply file system overhead; that much space is allocated to pagefile.sys and unavailable, but no actual writing is taking place until actual paging occurs, but with 16GB RAM, that is unlikely.

            The paging that occurs with a 16GB RAM system is primarily Windows startup/shutdown system files that won’t be needed again until shutdown.

            I don’t really see the relevance.

            Indeed.

            Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
            We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
            We were all once "Average Users".

            1 user thanked author for this post.
    • #2452467

      My win10 test box has 16gb memory and NO pagefile, runs fine. YMMV.

    • #2452529

      Due to the general nature of this discussion and for ease of others finding this thread in the future, may I suggest to the Sysop that it be moved to “Questions: Windows 10” subforum.

      Zig

      1 user thanked author for this post.
    • #2453119

      Since changing pagefile size manually, 3 days ago, allocated size hasn’t changed even by 1k.

      1 user thanked author for this post.
    • #2454252

      As all my Windows computers (running Windows 7 and Windows 8.1 by the way) all have large amounts of RAM (48GB or more), I just set the Windows page file to a fixed 1GB, still on the Windows drive. I also store all my data away from the Windows drive.

      I have never encountered problems related to the page file after I set this. And I have no reason to expect any problems if the page file is moved to another drive either. After all Windows allows you to change that, right?

      So if I were the OP I would just switch the page file to drive D and see if there are any problems. I would expect none.

      Hope for the best. Prepare for the worst.

    • #2457070

      Since changing pagefile size manually, 3 days ago, allocated size hasn’t changed even by 1k.

      First time problem since pagefile change.
      Tried to open a new tab in Chrome. Got ‘not enough memory..’
      Checked task manager, RAM usage was at 98% with just Chrome running (and the usual services..nothing using GBs of RAM). As I set a max size of 8192 for pagefile Windows 10 probably exhausted that space.
      Needed to restart.

      • #2457282

        I have 16 GB RAM on Windows 10. I set my paging file manually to min/max 2.935 GB (2,935 MB, what my system allocates when I allow it to auto select size for virtual memory paging file).

        No issues here.

        Windows 10 Pro 22H2

      • #2457287

        First time problem since pagefile change. Tried to open a new tab in Chrome. Got ‘not enough memory..’

        If you haven’t already, from an elevated Command Prompt I would first run

        dism/ online /cleanup-image /restorehealth

        and then

        sfc /scannow

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2457321

      First time problem since pagefile change. Tried to open a new tab in Chrome. Got ‘not enough memory..’

      If you haven’t already, from an elevated Command Prompt I would first run

      dism/ online /cleanup-image /restorehealth

      and then

      sfc /scannow

      Why would this fix what seems to be (probably) memory leak ?

      • #2457368

        bbearren wrote: Alex5723 wrote: First time problem since pagefile change. Tried to open a new tab in Chrome. Got ‘not enough memory..’ If you haven’t already, from an elevated Command Prompt I would first run dism/ online /cleanup-image /restorehealth and then sfc /scannow

        Why would this fix what seems to be (probably) memory leak ?

        It’s only a suggestion.  It’s a troubleshooting step.  Takes a few minutes.  You can follow it, or ignore it.

        Memory leaks can be caused by corrupted system files.

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

        2 users thanked author for this post.
    • #2464839

      Memory leaks can be caused by corrupted system files.

      Ran DISM and SFC 3 weeks ago. Since then had to restart 3 times due to 90+% RAM usage.
      Last restart after installing July patch Tuesday a week ago. RAM usage is at 84%.
      Adding all the RAM of services and apps in Task Manager isn’t even close to 1GB !
      Where are the other 12GB ?

      • #2464848

        What does Resource Monitor look like?

        Resource-Monitor

        Have you tried

        dism /online /cleanup-image /startcomponentcleanup /resetbase

         

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2464863

      I’ve hesitated to comment on this because this is a Windows 10 topic, but for those who may be interested – I switched the Page File over to my E: partition years ago on my Win 7 computer.  The reason I did this was so I could do a more thorough defrag of the C: system partition.  I left the page file there on E: and have not noticed any problems at all since.

      Being 20 something in the 70's was so much better than being 70 something in the insane 20's
    • #2464866

      dism /online /cleanup-image /startcomponentcleanup /resetbase

      Haven’t run startcomponentcleanup.
      After restart RAM utilization is 25%.

      Due to lack of RAM page file has grown to 6.6GB

      • #2464940

        You can clear pagefile.sys on shutdown by changing a setting in the registry from “0” to “1”.  Go to

        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

        and click on the Memory Management sub-key.  You will see “ClearPageFileAtShutdown”.  Change its value from “o” to “1”.  There is also a Group Policy setting, but clearing the pagefile can greatly extend shutdown time, so I would recommend the registry so you can quickly and easily change it back.

        Haven’t run startcomponentcleanup.

        I also suggest that you run this command, and then sfc /scannow after it.

        I’m beginning to get hints of RAM issues here.  If Windows can’t read from a memory address, it also can’t page anything back into that address, so it will use another available address in RAM, increasing RAM usage.  The pagefile, in turn, will begin to bloat because non-critical pages will just stay in pagefile.sys.

        You might want to get into your boot menu at startup and test your memory.  I suggest a couple of times.  If it passes, that’s one less thing to have on the “what’s going on?” list.

        One final thing, about moving the pagefile off your system drive.  Dave’s Garage has a video about why computers get slower as they get older.  If you’re impatient, go to the 12 minute mark for some education on the page file from a retired Microsoft Engineer.

        For what it’s worth, I dual boot but have only one page file on a dedicated FAT32 partition for both sides.  I’ve been running this way since XP, and it’s always been a 4GB pagefile on a 6GB partition (Windows complains that the partition is almost full if it’s any smaller).

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2464871

      Alex, On a tangent here, after moving your pagefile to a secondary drive, have you deleted the pagefile.sys from the primary drive?

      Explorer> File Menu.> Folder Options> View Tab>
      UNTICK Hide protected operating system files (recommended)
      then [APPLY]

      Navigate to the root of C: and delete pagefile.sys
      Once done, a reversal is required,
      TICK the ‘Hide protected operating system files (recommended)’
      that’ll be a big chunk of NVMe storage space regained.

      Edit: After seeing your screenshots, you’re still using C: for pagefile – foget the above, although worth bearing in mind should you change the location.

      Windows - commercial by definition and now function...
      • This reply was modified 2 years, 10 months ago by Microfix.
    • #2464949

      Since I have 16GB of RAM and very little of it is in use, I disable the swap file.  This does mean if there ever was a blue screen I might not get debugging data.  Also, disabling swap does increase actual RAM usage significantly, but for my usage this does not seem to matter.  One program failed to work because of lack of swap – Photoshop.

    • #2464959

      Alex, On a tangent here, after moving your pagefile to a secondary drive, have you deleted the pagefile.sys from the primary drive?

      I haven’t moved the page file, just manually set (on C: SSD drive) instead of automatically Managed by Windows OS.

      Still searching for missing 12GB of RAM.

    • #2464962

      You might want to get into your boot menu at startup and test your memory.

      I ran Lenovo diagnostics RAM tests.
      No problems found. RAM passed the tests.

    • #2464981

      Have you tried

      dism /online /cleanup-image /startcomponentcleanup /resetbase

      I ran dism /online /cleanup-image /startcomponentcleanup /resetbase
      and SFC. all clear.

      • #2465057

        Have you tried the registry setting to clear the pagefile?

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2465076

      Have you tried the registry setting to clear the pagefile?

      No.

      I need the page file for recovering from sleep.
      Clearing page file won’t reduce RAM usage.

      • #2465097

        I need the page file for recovering from sleep.

        Here’s another video: You’re Doing it Wrong: Rebooting! Find out why!  “Sleep” does not use the page file, it uses RAM and the hibernation file.  Are you using Fast Startup?

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

        1 user thanked author for this post.
    • #2465112

      Are you using Fast Startup?

      No.

      No hybrid no hib.

      • #2465126

        No hybrid no hib.

        Using simple sleep mode (S3), the system state is all in RAM.  There is nothing necessary in your pagefile to wake the machine.  You can (if you want) empty the pagefile on shutdown without issue, other than the additional time it might take.

        Just an assumption here, but your pagefile might be growing from S3 paging out non-critical RAM to make room for the full system state required for sleep, and for whatever reason just leaving it in your system-managed pagefile.  I’ve never used a system-managed pagefile, always a fixed 4GB in a dedicated partition.

        As for the RAM usage, have you tried a repair/re-install (in-place upgrade) logged in as a member of the Administrators group?

         

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2465163

      As for the RAM usage, have you tried a repair/re-install (in-place upgrade) logged in as a member of the Administrators group?

      No, I haven’t considered repair/re-install to a system that worked flawlessly for ~4 years.
      I blame Windows June update.
      My opinion is that Re-install/repair and installing June CU will change nothing.

      For now I am considering upgrading RAM to 32GB, something I wanted to do for sometime and now have a motive to do so.

      • #2465171

        No, I haven’t considered repair/re-install to a system that worked flawlessly for ~4 years.

        In my experience that is the next logical step.  YMMV.

        I blame Windows June update. My opinion is that Re-install/repair and installing June CU will change nothing.

        Which is impossible to confirm without making the attempt.

        For now I am considering upgrading RAM to 32GB, something I wanted to do for sometime and now have a motive to do so.

        And that mitigates the suspected June update in what way?  All else being equal, adding RAM will not correct a (suspected) memory leak, it will just add more memory to leak; adding water to a leaking bucket.  What is the total amount of RAM supported by your Lenovo?

        In my experience a repair/re-install can correct things that are beyond the scope of Restorehealth and SFC /Scannow (regardless of what caused the initial issue).  But this is your problem, not mine, and it is, after all, your decision.

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

    • #2465184

      Moving the page file to 1TB spinning drive and setting it to a fixed and very large size like 20GB could fix any crashes or errors.  I expect you will not see a noticeable performance slowdown, as long as the system does well at detecting data that is likely to be used and keeping it in actual RAM.

    • #2465216

      In my experience that is the next logical step.  YMMV.

      I prefer disabling sleep as the next step.

      In second thought I don’t need it. My laptop in on 24/7/365 running tasks : a/v updates every 2 hours, scheduled incremental backup every night, updating browsers,…running apps…

      It would be interesting to see how much RAM, if any, I will gain.

      The only concern is will it Cause heat.

    • #2646437

      I just happened to stumble onto this topic, while searching this Form for another problem.

      If Windows users still host C: on a HDD (rotating platters), it’s important to know that HDDs necessarily slow down as they “fill up”.

      In order to maintain the same or similar recording density on all recording tracks, the inner tracks necessarily store less binary digits than the outermost tracks.

      The sheer amount of bits on any track is directly proportional to track circumference.

      That is the reason why pagefile.sys READS and WRITES fastest when it occupies the outermost tracks of any HDD.

      The optimize this approach, it’s best to format a secondary HDD with a small partition at the outermost tracks that are dedicated to pagefile.sys and nothing else.

      The second step that should be done is to run the CONTIG utility so that logically sequential sectors are written to sequential physical sectors, and also to sequential physical tracks.

      After running  CONTIG to create a truly contiguous pagefile.sys, the overall movements of the recording heads will be minimized, greatly increasing overall throughput when Windows must do I/O with pagefile.sys .

      Now, the whole situation is much different with SSDs.  I haven’t read all of the many posts above, but I would expect very good advice there from very experienced Users.

      On our production workstations, we prefer a RAID-0 array of 2.5″ SSDs;  they measure READs consistently around 2,000 MB/second e.g. 4 @ ~500MB/second.

      Of course, a single M.2 NVMe SSD should do READs close to 3,500 MB/second.  As such, keeping pagefile.sys on a C: partition hosted by an NVMe SSD is a no brainer.

      Obviously there is no need to fuss with CONTIG etc. when pagefile.sys is hosted on SSDs.

      • #2646512

        Why is anyone using an HDD for C? Move to SSD and enjoy. Zero downside!

        cheers, Paul

    • #2646514

      Memory leak / high RAM usage has been resolved with Jan. 2024 updates.

    Viewing 32 reply threads
    Reply To: What are the implications, if any, on moving Page file from C: drive

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: