Huge pagefile

Page 1 of 3 123 LastLast

  1. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
       #1

    Huge pagefile


    In the recent past I had to overcome unexplained OS size fluctuations. Then yesterday I got one of those dreaded popups saying I was low on space.

    I discovered that I had a 16 gb pagefile. Never seen anything like this.

    My OS partition is 40 gb (on a ssd), with 16 gb ram, and if things are right, I have about 20 gb free space.

    My only theory is that I had download several 2 gb files yesterday, which took longer than expected. I have windows managing the page file, so maybe that's why the pagefile grew??

    I deleted the pagefile, and got the space back, but when I tried to reinstate the windows management, it immediately recreated the 16 gb pagefile.

    I would prefer having windows manage the pagefile,and I don't think it would be wise turn turn it of, from what I understand. I just wanna get it back to where it was before.
      My Computer


  2. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #2

    You have enough RAM to limit and even turn off PF. I have no problem with setting it to 1GB just to keep some programs that require it happy.
      My Computers


  3. Posts : 7,254
    Windows 10 Pro 64-bit
       #3

    What size is the physical drive that the OS is on? Although Windows will install on 20gb, you haven't left it much room for normal operation. Do you have other drives? You could move you user files to there and disable the hibernation file.
      My Computers


  4. Posts : 11,247
    Windows / Linux : Arch Linux
       #4

    Hi there
    rule of thumb is that page file size should be equal to the amount of RAM in system

    Note Windows doesn't have a conventional swapping file - both are managed in the paging file so it needs to have a proper size.

    Paging simply moves the relevant memory address(es) from Disk back to RAM -- it may have been moved because the area required hasn't been active -- system running a different program for example.

    Swapping is when a whole program area is backed off to HDD -- this occurs mainly if you are trying to run too many concurrent applications on a RAM constrained system. Overcommitting the paging file (i.e overallocating its size) won't cause any problems --you know when you have a problem on your system is when you see HDD light almost solid on for most of the time and response is very poor.

    Modern OS'es are designed to run with Page / SWAP (Demand paging) so running with none is not a good idea -- the system will create a temporary (non persistent) one by default at every boot up and your boot will therefore take longer. What's even worse is that if there isn't sufficient HDD space it will create this in RAM reducing the amount of RAM even further so unless you have a system with something like 64 GB or 128 GB RAM then always ensure page file is allocated (and to the fasted device).

    Those interested in a bit of theory (quite high level maths needed) can read about demand paging OS'es and the optimum page size works out at approx the RAM size.

    Having smaller paging files can work on an SSD but the performance of the OS will still be diminished -- SSD's are cheap enough these days -- no point running the OS on "Starvation space". !!

    Cheers
    jimbo
      My Computer


  5. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #5

    Page file can only slow down systems with enough RAM even on an SSD although not as much as on HDD but whatever pagefile size is, it doesn't mean it would be all used. If space is at premium, one can only make PF smaller and see what happens.
      My Computers


  6. Posts : 11,247
    Windows / Linux : Arch Linux
       #6

    CountMike said:
    Page file can only slow down systems with enough RAM even on an SSD although not as much as on HDD but whatever pagefile size is, it doesn't mean it would be all used. If space is at premium, one can only make PF smaller and see what happens.



    Hi there

    ?????

    Normally you are 100% correct but have you understood what DEMAND paging is -- emphasis on word DEMAND.

    Hate to be negative here but this topic is quite complex and there's a huge lot of B/S written about this topic.

    There's no way in 10 zillion years why an OS with properly written paging algorithms would slow down because it had a paging file rather than didn't unless the entire OS ran entirely from a RAM Disk which Windows doesn't currently do (although in principle there's no reason why it shouldn't - so long as changes are logged to HDD / SSD and written away before OS shuts down).

    There's too many people here who either have never written parts of an OS which uses demand paging -- I can remember one of the very first OS'es to use this concept : -- IBM mainframe's MVS in the 1970's - still even today a model for OS'es -- or don't understand how the system works. I remember working on all sorts of things such as Task control, switching, privileged state, supervisor calls, back to application state. Main development was in an internal language called PL/S (a bit like PL/I but this then created IBM machine code - the early versions translated it into IBM Assembler language which were run through the system Assembler to create machine code and executable programs but later PL/S did that in one step.

    Remember also that decent OS'es overlap I/O with CPU processing so while the CPU is doing other things the I/O sub system (HDD / SSD controller etc) would be doing "pre-fetching" /organising page management without interrupting the CPU process bound tasks -- all good for the user and system response.

    Cheers
    jimbo
      My Computer


  7. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #7

    Never wrote any code but did test implications on system by turning off and varying PF sizes coming to conclusion that having at or over 1GB of RAM per thread PF file is practically unused and setting it on auto just wastes space because once maxed out it doesn't actually shrink from maximum used.Because of smaller amounts of RAM in older computers it was advised to have PF set at 2.5 times amount of RAM. With 16GB f RAM I couldn't detect no performance difference by having none, 1 - 2GB or any size PF.
      My Computers


  8. Posts : 14,020
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #8

    I can recall where the written recommendation in Windows Help and Support for the Virtual Memory/paging file/swap file was for 2.5 times the physical RAM installed and I believe Win7 had that dropped to 1.5 times. The only real reason I ever found for manually setting the Virtual Memory to the same Maximum and Minimum size was to prevent fragmentation, kept all the clusters adjacent to the others which with slower HDDs could and did improve performance especially with video editing, large spreadsheets and databases. Defragmentation helps the Read/Write search function in locating data. The advent of the SSDs eliminated that electromechanical issue.
      My Computers


  9. Posts : 10,929
    Win10 x64
       #9

    CountMike said:
    Never wrote any code but did test implications on system by turning off and varying PF sizes coming to conclusion that having at or over 1GB of RAM per thread PF file is practically unused and setting it on auto just wastes space because once maxed out it doesn't actually shrink from maximum used.Because of smaller amounts of RAM in older computers it was advised to have PF set at 2.5 times amount of RAM. With 16GB f RAM I couldn't detect no performance difference by having none, 1 - 2GB or any size PF.
    100% Correct ^^

    I have done enough testing on multiple systems to confirm what CountMike has posted. Once you pass the 16GB threshold of RAM, using more than a 1GB pagefile will not make a difference. I even ran without one for a long time and saw no effects from it. Issues might arise when an older program that requires one tries to use it. For that purpose I keep a 1024MB page file set.

    Recently I had let Windows decide and for the longest it "only needed" 1024MB because that is what it used. After testing that enough, I set it on 1024MB and left it. Not a single problem.
      My Computer


  10. Posts : 1,099
    Win 10 pro Upgraded from 8.1
       #10

    kitpzyxmsir said:
    In the recent past I had to overcome unexplained OS size fluctuations. Then yesterday I got one of those dreaded popups saying I was low on space.

    I discovered that I had a 16 gb pagefile. Never seen anything like this.

    My OS partition is 40 gb (on a ssd), with 16 gb ram, and if things are right, I have about 20 gb free space.

    My only theory is that I had download several 2 gb files yesterday, which took longer than expected. I have windows managing the page file, so maybe that's why the pagefile grew??

    I deleted the pagefile, and got the space back, but when I tried to reinstate the windows management, it immediately recreated the 16 gb pagefile.

    I would prefer having windows manage the pagefile,and I don't think it would be wise turn turn it of, from what I understand. I just wanna get it back to where it was before.
    You can't just delete the page file, you would go to system/advanced system properties/performance settings/ advanced tab Virtual Memory there you can uncheck the "Automatically manage Page file size" then you can set the size you want, maybe the 1 GB as suggested by using Max 1gb min 1gb or select no page file at all. As stated earler you don't really need a page file with a SSD.
      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 11:09.
Find Us




Windows 10 Forums