What size should my paging file be if I've got 4GB of RAM?

bd74

New member
Member
Local time
8:59 PM
Messages
59
I once read somewhere that the initial size and the maximum size should be set to the same size, but I can't remember the reason for that. Anyway, what sizes should I set it to? Or should I just choose the option for "automatically manage paging file size"?
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64-bit SP1AMD Sempron Processor LE-1300 2.30 GHz4 GB RAMIntegrated graphics using nVidia GeForce 6150SE
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq Presario CQ5205Y Desktop PC
OS
Windows 7 Home Premium 64-bit SP1
CPU
AMD Sempron Processor LE-1300 2.30 GHz
Memory
4 GB RAM
Graphics Card(s)
Integrated graphics using nVidia GeForce 6150SE
Sound Card
Integrated Realtek ALC888S Audio
Screen Resolution
1280x1024
Hard Drives
250 GB
Internet Speed
12 Mbps
Browser
Firefox
The main reason is to avoid resizing it all the time.
If you have a lot of RAM, page file (virtual memory) won't even be necessary.
I have 8G and use a page size of 16G.

With 4 G of memory, anything between 10 and 16G will be fine.
Or, as many people would say, set it to "automatically manage paging file size".
 

My Computers My Computers

  • At a glance

    Windows 7 HP 64i5 6600K - 800MHz to 4200MHz4+4G GSkill DDR4 3000IG - Intel 530
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    custom build
    OS
    Windows 7 HP 64
    CPU
    i5 6600K - 800MHz to 4200MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Windows 7 and Lubuntu
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500Mb/s
    Browser
    Firefox 64
    Other Info
    TinyWall firewall
  • At a glance

    Windows 7 Proi7-4500U 800MHz to 3.0GHz(4+4)G DDR3 1600IG intel 4400 + NVIDIA GeForce GT 745M
    Computer type
    Laptop
    System Manufacturer/Model Number
    Asus Q550LF
    OS
    Windows 7 Pro
    CPU
    i7-4500U 800MHz to 3.0GHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics Card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs +
    1T HDD for data
    Internet Speed
    500 Mb/s
    Browser
    Firefox
    Other Info
    TinyWall firewall
I think the general rule of thumb for Win 7, 64 bit is to use 3 times the RAM size which in your case would be 12 GB. You would set both the minimum and maximum to 12000 MB.
 

My Computer My Computer

At a glance

Windows 7 Pro SP1 64 bit8 GB
Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
I have initial set for 1 gb and max set for 2 but I have 8 gb. In today's world with only 4 gb I would set it for 4 minimum. I believe that windows sets it by default for 1.5 times actual memory. I always decrease it without any issues.
 

My Computers My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt
There really is no absolute on what the page file should be set at as far as I have read throughout the years. Ideally it would be something like the amount of RAM you have installed x 2.5 if I can remember. But as mentioned, if you have a lot of RAM just leave the OS to manage the page file size so that you don't end up with issues.

The reason for setting the minimum and maximum of the page file to the same value was to elevate disk fragmentation on hard drive platters. By setting the min and max to one size you create one giant slice on the hard drive to use exclusively for the page file without it constantly growing and shrinking and as a consequence creating fragmentation. The idea here is that if you can elevate fragmentation your page file will be much more faster since there's no data fragmentation causing the hard drive needle to work a few milliseconds harder to retrieve and write page file data.

If your main OS hard drive, the hard drive you currently have Windows installed to is flash-based like a SSD or NVMe, then just keep the page file set to automatic. There's no such thing as fragmentation on a flash-based hard drive that I know of versus that of a platter. So it's not necessary to mess around with the page file parameters.

If you are in fact using a platter for the OS then I guess it may be prudent to set the min and max values to the same thing based on how much RAM you have. Then again, I don't think it really has much of any benefit to do that if you do in fact have lots of RAM.

The one thing you don't want to do however is think just because you have a ton of RAM like 32 GB or 64 GB is completely disable the page file altogether. Contrary to popular belief the page file may actually still be used. And I say this because some programs will gripe if the page file is disabled and/or churn out all kinds of errors.

Now on a netbook I have running that's using XP and its hard drive is flash-based with a finite amount of data that can be written to it, I chose to disable the page file since I have more than enough RAM for the programs I'm running and the OS and in an effort to help reduce write cycles to this precious hard drive. I can do this without ill consequence because this netbook that's on 24/7 is relatively static in that I don't install programs on it all the time or even write data to it. Its sole job is to intercept callerID from the phone and act as a small FTP server who's storage is on a small 14 GB SD card. In the 6 some years this netbook has been running constantly I've had to replace the hard drive twice. Thankfully I always clone it to a USB stick and when I get the new hard drive I just clone back and it's as if nothing ever happened. I want to migrate to something better like a nettop, but I keep putting it on the back burner.

Anyway, you're better off just leaving the OS handle the page file. Some may tell you you want to disable the page file altogether if you use an SSD. But as I already said that's really not a good idea, and with the SSDs today, wear leveling is a lot different than it was when SSDs first hit the market.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Come to think of it. If you have an SSD like a Crucial, it's software for Crucial which is called Crucial Storage Executive has a feature called momentum cache. If you have enough RAM you can enable momentum cache and what will happen is that the hard drive will write and read commonly used data directly from RAM like a page file but only faster. The only issue with this is that it should only be used if A) it's a laptop with a battery or B) it's a desktop with a UPS battery backup. If you use momentum cache and there's just so much as a brief power loss and the computer powers down, you could suffer from data corruption or loss since RAM is only temporary storage and for the most part (not always in some cases) zeros out on power down.

I do have a Crucial SSD and have used momentum cache and when I ran a hard drive speed test the speed was through the proverbial roof! LOL But it wasn't really accurate since I was cheating in the way of using RAM as a momentum cache. I do rock a Cyberpower UPS so I was good on any possible power outages.

I have to note here that a UPS is a must with a desktop if your'e in the middle of doing something or gaming and the power goes out. The UPS will allow you to safely power off the PC without any issues being incurred from a sudden loss of power. And it in fact gives peace of mind if you flash your BIOS and all of sudden the power goes out. God forbid that should happen and you have no UPS. Thankful a lot of your motherboards nowadays come with two BIOS chips so you can just use the backup. But if you can prevent from using the backup BIOS chip from the begin with then that would be a lot better.

Also, with UPSs you should get one that's pure sine wave and is meant for an active PSU if that's what you have. Pure sine wave probably is meant for active PSUs anyway. But if it isn't and you have a surge protector plugged into it you could end up with a fire. I don't think many people know this.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
There really is no absolute on what the page file should be set at as far as I have read throughout the years. Ideally it would be something like the amount of RAM you have installed x 2.5 if I can remember. But as mentioned, if you have a lot of RAM just leave the OS to manage the page file size so that you don't end up with issues.


2.5x might have been a good idea, and necessary, back when computers had maybe up to 2 gb of ram but now with computers that usually have 8 gb min that eats up a lot of hard drive space since you would be looking at a 20+ gb pagefile. Although I agree that likely the pagefile is used and shouldn't be disabled I don't believe that it needs to be so large in systems with so much ram. That's why I keep mine so low now. My primary computer and server both have 8 gb of ram which is very sufficient for my needs and the most I've ever had. If all I had was 4gb then I would have it a lot higher but even then probably only 4.
 

My Computers My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt
I have on occasion had reasons to turn off the page file. Sometimes I forget to turn it back on. I ran a machine with 4GB RAM like that for weeks before I noticed, didn't seem to mind not having a page file :D
 

My Computers My Computers

  • At a glance

    Windows 7 Home Premium x64AMD V1204GB
    Computer type
    Laptop
    Computer Manufacturer/Model Number
    Toshiba satellite C650D
    OS
    Windows 7 Home Premium x64
    CPU
    AMD V120
    Memory
    4GB
    Internet Speed
    150 Mbps
    Antivirus
    MSE
    Browser
    IE11, Edge, Firefox
    Other Info
    I also have W7 Pro on my System Two, and several W7 Hyper-V VMs. My other machines run Windows 10/11. Their specs are in my Ten Forums & Eleven Forum profiles.
  • At a glance

    Windows 7 Pro x64Intel i5-3320M8 GB
    Computer type
    Laptop
    System Manufacturer/Model Number
    Lenovo Thinkpad T430
    OS
    Windows 7 Pro x64
    CPU
    Intel i5-3320M
    Memory
    8 GB
    Hard Drives
    250GB Samsung SSD 860 EVO
    Antivirus
    MSE
Engineers that have more pay grade than I do, designed Windows, years ago, to manage its own Page File.
I feel like it would be counter productive for me to try to out-think them. So I just let Windows do what it does best, and I take care of the rest.

And, my Windows 7, Pro, x86, with 8 GB of installed ram, runs like a scalded cat!!!


On boot up, I run a script that installs the registry into RAM, where the OS can access it FASTER!


Works for me!


TM :cool:
 

My Computer My Computer

At a glance

Win 7 Pro, SP1, x86, Win-11/Pro/64AMD8GB CrucialVarious
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Various
OS
Win 7 Pro, SP1, x86, Win-11/Pro/64
CPU
AMD
Motherboard
Various
Memory
8GB Crucial
Graphics Card(s)
Various
Sound Card
OnBoard
Monitor(s) Displays
Acer 21.5"
Hard Drives
Crucial SSD, 500 GB
PSU
OEM
Case
SFF Slim Line Case
Cooling
OEM
Keyboard
eMachines
Mouse
Logitech Wireless
Internet Speed
varies
Antivirus
Windows Defender/Super Anti-Spyware
Browser
Firefox
Engineers that have more pay grade than I do, designed Windows, years ago, to manage its own Page File.
I feel like it would be counter productive for me to try to out-think them. So I just let Windows do what it does best, and I take care of the rest.

Windows is very good in using the pagefile, like chosing what to page out of RAM and when to bring in back, but the default "manage it for me" is a terrible solution, because it really means "use 3 times the RAM as page file", which is a poor choice of pagefile sizing.

Optimal pagefile size depends on RAM and the maximum commit limit, which in turn depends on your workload. There is no way Windows can estimate it, and is likely a leftover over the years of Windows evolution. A more appropriate "autosizing" algorithm would give more page file when there is less RAM, not the other way around.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Windows is very good in using the pagefile, like chosing what to page out of RAM and when to bring in back, but the default "manage it for me" is a terrible solution, because it really means "use 3 times the RAM as page file", which is a poor choice of pagefile sizing.

Optimal pagefile size depends on RAM and the maximum commit limit, which in turn depends on your workload. There is no way Windows can estimate it, and is likely a leftover over the years of Windows evolution. A more appropriate "autosizing" algorithm would give more page file when there is less RAM, not the other way around.


That's how I feel. 3x physical memory would be 24 gb if you have 8 gb and that's a lot of wasted space. The more you have likely the less you'll need, depending upon normal usage. On my personal computer I don't us that much ram at any one time, the most being when I run a virtual machine, so likely the page file isn't used much. However I have to run so many programs at once for work that I usually at 75-80% of my ram so I probably have significantly more page file usage unfortunately. Considering how much slower it is to run virtual memory (even on a SSD) you want to minimize page file use. I think it's more important to have adequate memory than an insanely large page file. Such a large file was probably good when computers didn't have so much memory but times change.
 

My Computers My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt

My Computer My Computer

At a glance

Win 10 x64, Linux Lite, Win 7 x64, BlackArch,...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
When I was using Windows 7 Professional 64bit with 32GB RAM and Samsung SSD's Windows would create a huge pagefile (1.5 times RAM?). I ended up doing a custom pagefile - minimum 1024MB, maximum 5120MB. This seemed to work very well for me.


I could actually get away with no pagefile at all but opinions always seemed to differ on whether or not that was such a good idea so I settled for the custom setting above.


Windows 10 seems to be better at handling pagefiles than Windows 7 so I've left the setting at the default (still using 32GB RAM) which works well and doesn't use a huge amount of disk space like Windows 7 did on the default "let Windows handle it" setting.
 

My Computer My Computer

At a glance

Win 7 Professional 64 (Main PC)/Win 7 Home Pr...Intel Core i3 4160 @ 3.60GHz8.00GB Dual-Channel DDR3 @ 799MHz2047MB NVIDIA GeForce GT 610 (Gigabyte)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Professional 64 (Main PC)/Win 7 Home Premium 32 (Laptop)
CPU
Intel Core i3 4160 @ 3.60GHz
Motherboard
ASUSTeK COMPUTER INC. H81M-PLUS (SOCKET 1150)
Memory
8.00GB Dual-Channel DDR3 @ 799MHz
Graphics Card(s)
2047MB NVIDIA GeForce GT 610 (Gigabyte)
Monitor(s) Displays
BenQ GL2460
Screen Resolution
1920x1080
Hard Drives
232GB Samsung SSD 840 EVO 250GB ATA Device (SSD) x3
2 external spinners - 4TB and 2TB
Antivirus
MSE
Browser
Pale Moon
Pagefile is where stuff goes when your RAM fills up. (Well not quite but it works out about the same way in this situation)

You're most likely using more than 4GB but less than say 20GB or even 10GB probably. Therefore you should set the pagefile at the excess of that amount beyond the physical RAM amount. 4-8GB sounds like a good idea, leaning towards the latter if you're often idling at 2GB+ RAM usage in the Task Manager graph. If you're on 32GB RAM, with most people's use patterns you're never going to fill that up even with prefetch except in case of a program bug, so the pagefile is unnecessary.

It's a bad idea to set pagefile at automanaged, because it means Windows will vary the size and fragment the pagefile, which stresses your HDD and further slows down paging.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 (single boot)
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64 (single boot)
Antivirus
Cryptoprevent
Browser
Pale Moon
When I was using Windows 7 Professional 64bit with 32GB RAM and Samsung SSD's Windows would create a huge pagefile (1.5 times RAM?). I ended up doing a custom pagefile - minimum 1024MB, maximum 5120MB. This seemed to work very well for me.

I could actually get away with no pagefile at all but opinions always seemed to differ on whether or not that was such a good idea so I settled for the custom setting above.

No pagefile is perfectly fine if your RAM is big enough for your workload, and with 32GB for a browser and a few more thing is more than enough I guess, so you can live without one and not even notice.
No program will ever require pagefile, and in fact, programs are unaware of its existence.

The only thing that a pagefile is required is for storing crash dumps in case of a BSOD. In such situations you may still want a small one for doing analysis after the fact and try to find the offending driver.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top