Solved best page file size for 4gb ram memory

ljubinko

New member
Local time
12:33 AM
Messages
18
hi, whats the best page file size for 4gb ram memory for gaming, i use windows 7 x64 ultimate and is it moving page file to different partition good, i have one hard disk with page file on C system, boot partition and have logical partition D and E. Thanks
 

My Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
PC/Desktop
OS
windows 7 ultimate x64
Hello ljubinko, and welcome to Seven Forums.

It's best to let the page file be managed by the system instead of setting a custom size. This way you do not have to worry about getting a low memory error if you should set the size to low.

It's only worth moving the page file if it'll be to a separate hard drive and not just another partition on the same hard drive. In addition, the other hard drive should be as fast or faster (ex: SSD) to gain some performance with it.

Virtual Memory Paging File - Change

Hope this helps, :)
Shawn
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Shawn thanks, whether to check automatically manage paging file size for all drives, or system managed for partition C
 

My Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
PC/Desktop
OS
windows 7 ultimate x64
It's the latter.
 

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
whs thanks :D
 

My Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
PC/Desktop
OS
windows 7 ultimate x64
:ditto:
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Custom

I would recommend 12GB of virtual memory, allocated to another drive, with a 1024MB pagefile remaining on your System/C: Drive...

This is based off of Mark Russinovich's article regarding Pagefile use...probably one of the most thorough examinations of how Windows uses this seemingly mysterious file.

Thus: 3X...different drive.

The need for having it at the beginning of the drive isn't what it used to be, but you can always make a new partition at the beginning of the drive to accommodate this "tweak"...

Regardless...for your system: 12GB/different drive...

Once you do set it up, and run it for a while, it would be great to know what your experience has been...
 

My Computer My Computer

At a glance

Windows 7 Home Premium x64Athlon X2 4200+3GB DDR2nVidia 9400GT, 128-bit 1GB DDR2
Computer Manufacturer/Model Number
Modded Gateway GT5034
OS
Windows 7 Home Premium x64
CPU
Athlon X2 4200+
Memory
3GB DDR2
Graphics Card(s)
nVidia 9400GT, 128-bit 1GB DDR2
Sound Card
SB Audigy 2 LS
Monitor(s) Displays
40" Sony Bravia 2
Hard Drives
500GB Seagate Barricuda 7200.11 (System)
750GB Seagate Barricuda 7200.12 (Data)
Most attempts to optimize the pagefile are a waste of time. Typically there will be no measurable or noticeable gains with using any settings other than system managed.

There can be a benefit (not likely noticeable) by putting the pagefile on a separate physical drive. Putting it on a separate partition is a bad idea. Of course this assumes that the separate drive is of comparable performance as the system drive.

If you want the best performance then install the OS and games on an SSD. This will do more good than anything you could possibly do with the pagefile.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
I would recommend 12GB of virtual memory, allocated to another drive, with a 1024MB pagefile remaining on your System/C: Drive...

This is based off of Mark Russinovich's article regarding Pagefile use...probably one of the most thorough examinations of how Windows uses this seemingly mysterious file.

Thus: 3X...different drive.

The need for having it at the beginning of the drive isn't what it used to be, but you can always make a new partition at the beginning of the drive to accommodate this "tweak"...

Regardless...for your system: 12GB/different drive...

Once you do set it up, and run it for a while, it would be great to know what your experience has been...
Mark Russinovich comments on formulas like that in this blog:
Blogs - Mark's Blog - Site Home - TechNet Blogs

Perhaps one of the most commonly asked questions related to virtual memory is, how big should I make the paging file? There’s no end of ridiculous advice out on the web and in the newsstand magazines that cover Windows, and even Microsoft has published misleading recommendations. Almost all the suggestions are based on multiplying RAM size by some factor, with common values being 1.2, 1.5 and 2. Now that you understand the role that the paging file plays in defining a system’s commit limit and how processes contribute to the commit charge, you’re well positioned to see how useless such formulas truly are.


Since the commit limit sets an upper bound on how much private and pagefile-backed virtual memory can be allocated concurrently by running processes, the only way to reasonably size the paging file is to know the maximum total commit charge for the programs you like to have running at the same time. If the commit limit is smaller than that number, your programs won’t be able to allocate the virtual memory they want and will fail to run properly.


So how do you know how much commit charge your workloads require? You might have noticed in the screenshots that Windows tracks that number and Process Explorer shows it: Peak Commit Charge. To optimally size your paging file you should start all the applications you run at the same time, load typical data sets, and then note the commit charge peak (or look at this value after a period of time where you know maximum load was attained). Set the paging file minimum to be that value minus the amount of RAM in your system (if the value is negative, pick a minimum size to permit the kind of crash dump you are configured for). If you want to have some breathing room for potentially large commit demands, set the maximum to double that number.

~~~

You’ll notice that the default configuration is for Windows to automatically manage the page file size. When that option is set on Windows XP and Server 2003, Windows creates a single paging file that’s minimum size is 1.5 times RAM if RAM is less than 1GB, and RAM if it's greater than 1GB, and that has a maximum size that's three times RAM. On Windows Vista and Server 2008, the minimum is intended to be large enough to hold a kernel-memory crash dump and is RAM plus 300MB or 1GB, whichever is larger. The maximum is either three times the size of RAM or 4GB, whichever is larger. That explains why the peak commit on my 8GB 64-bit system that’s visible in one of the screenshots is 32GB. I guess whoever wrote that code got their guidance from one of those magazines I mentioned!

Mark says that a simplistic formula is "ridiculous".
Mark says that the OS uses a simplistic formula.
Therefore, Mark says that the OS is "ridiculous".
:-)

I've read that entire blog series (when it was new).
I've also watched long videos of Mark talking on this topic.

Conclusion:

1) It takes RAM to manage the page file. If you set the page file minimum too high, you waste the RAM that is set aside to manage the page file.

2) I let the OS manage the page file size since memory management has progressed since that old blog was written.


...and then there is the swapfile.sys in W8 and above.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
The "simplistic formula" of making the pagefile proportional to RAM size is not ridiculous. That would be the case if there was some standard workload to accommodate. In that case the more RAM you have the less the pagefile will be needed. But that is not the case.

Workloads vary greatly. Windows has to set the default pagefile size to something. It seems reasonable to set it according to the workload, and RAM size is as good an indicator of that as anything Windows has available. The pagefile is used as a place to offload the contents of rarely used memory, which being relieved of this burden can be used for more productive purposes. A large RAM with an appropriate workload will generate more of this rarely used data and needs a larger pagefile to contain it. A large RAM needs a large pagefile if it is to realize it's full potential.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
I like many have read all kinds of thing on page file and ram usage. I also tried many things like we use to do with XP and older system. My conclusion is just let Windows 7 manage all that memory stuff. It does better than I can.

For years we cried for better memory management in Microsoft operating system and when we get it with Windows 7 many still try to work around it.
 

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
I like many have read all kinds of thing on page file and ram usage. I also tried many things like we use to do with XP and older system. My conclusion is just let Windows 7 manage all that memory stuff. It does better than I can.

For years we cried for better memory management in Microsoft operating system and when we get it with Windows 7 many still try to work around it.

Can't argue with that.

I think you will find that most experts leave the pagefile on default settings. Many are very familiar with the options available but just don't see the need to change them.

While I do not claim to be an expert I do know quite a bit about the pagefile and how it is configured. I have read enough articles about the pagefile to fill a small book. I use the default configuration. In whatever years I may have left I prefer to use my computer, not play with settings that make little difference.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
The "simplistic formula" of making the pagefile proportional to RAM size is not ridiculous....
It was not my intent to imply that the OS method is ridiculous. I let Windows manage that.

The point of the post was to highlight that one should not reference Mark to support a position that he is clearly not in favor of. Mark might even agree that having the OS use a simple ratio as a starting point is fine. He might have made the comment about the programmers reading the magazines as a jest. Either way, I've heard him repeatedly say not to set it to a ratio of RAM if you are going to manage the setting your self.


I'm not a Mark groupie, but he does seem to one of the few people willing to make detailed posts/talks/videos on subjects like this. I don't understand most of it.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
A few days ago, I set Process Monitor to show all access to the pagefile... then just let it run. I was really surprised to see how seldom it is accessed. If you opt to try that, set Process Monitor to use a Backing File. I'm running Process Monitor like that right now. I cannot seem to find an action that causes the file to be used.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Hi all, what should my page file be? I have Win 7 64 bit pro and 32gb of ram, its currently set to auto manage page file for all drives, I have 3 internal hard drives and 2 external. I wanna get the most out of my ram as I use a lot of music software that is ram hungry. thanks all.
 

My Computer My Computer

At a glance

windows 64bit professionalintelo icore i532gbgeforce gt520
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
windows 64bit professional
CPU
intelo icore i5
Motherboard
intel dh67cl
Memory
32gb
Graphics Card(s)
geforce gt520
Ditto

I must agree with the others since I posted that -- considering the cost of RAM and HDD space is so low -- it is meaningless to restrict the pagefile in any manual way. We are no longer in XP-Days. I know a lot of people clung to XP through Windows 7's stardom (I didn't, but can sympathize with those who did)...

Indeed, for anyone to follow with the same query: Just leave it alone. Microsoft knows what their OS needs at any given time far more than you do. Whatever performance gains you think you'll have are easily trumped by any trouble the OS may have at any given time that an incorrectly managed pagefile may cause.

If you still want to do something, follow Mark's advice as I noted in my previous post on this thread, but truly, it's not something you need to waste time bothering with. Enjoy your machine already!

The best performance increase you'll provide your machine is going to be maxing out the RAM (16GB for Home, 32GB for Pro+ [with appropriate Motherboard]), purchasing an SSD (as low as $100 for quality 250GB...probably less as I'm writing this, but I haven't been in the market in the last month or so), and installing Windows 10 (which provides relatively cool system management functions at the expense of some admin conveniences...Home or Pro doesn't matter unless you're actually planning on using the network features -- like backing up computers over the network or ultimately setting up a server -- or are going to try your hand at Hyper-V or using BitLocker; even with Pro, the Automatic Updates are only delayed if you want...but you can not opt out).

Windows XP days are pretty much over. Embrace the new world of computing, since you don't really have a choice if you're sticking with Windows.

Be well, all.
 

My Computer My Computer

At a glance

Windows 7 Home Premium x64Athlon X2 4200+3GB DDR2nVidia 9400GT, 128-bit 1GB DDR2
Computer Manufacturer/Model Number
Modded Gateway GT5034
OS
Windows 7 Home Premium x64
CPU
Athlon X2 4200+
Memory
3GB DDR2
Graphics Card(s)
nVidia 9400GT, 128-bit 1GB DDR2
Sound Card
SB Audigy 2 LS
Monitor(s) Displays
40" Sony Bravia 2
Hard Drives
500GB Seagate Barricuda 7200.11 (System)
750GB Seagate Barricuda 7200.12 (Data)
~~~
The best performance increase you'll provide your machine is going to be maxing out the RAM (16GB for Home, 32GB for Pro+ [with appropriate Motherboard]),
~~~
I'll caution that more RAM consumes more power and creates more heat. Laptop batteries and fans need to handle this. Desktops would probably already handle the cooling - but the run time while on battery backup during a power outage will be a bit shorter with more RAM.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Hmmm

~~~
The best performance increase you'll provide your machine is going to be maxing out the RAM (16GB for Home, 32GB for Pro+ [with appropriate Motherboard]),
~~~
I'll caution that more RAM consumes more power and creates more heat. Laptop batteries and fans need to handle this. Desktops would probably already handle the cooling - but the run time while on battery backup during a power outage will be a bit shorter with more RAM.

I hadn't considered that...fair point.

Surely, that should be countered a bit by the move to SSD, but that's a fair point. Given the post wasn't about power saving as much as performance improvements via pagefile modification, that fact wasn't as much on my mind. I also don't think that someone still considering their pagefile as an important point of performance is even considering the additional amperage required by more NANDs.

Regardless, again, that is a fair point!

As with all things in Life, there are surely tradeoffs. For me, I would rather have the memory than be concerned with the power consumption. Although I don't really use my laptop on the go too much. I take it with me, but I am normally going somewhere with access to electricity and wi-fi.

You make me want to do some informal testing by purchasing an 8GB kit for my laptop to see what impact my 16GB has. Hmmmmmmmm
 

My Computer My Computer

At a glance

Windows 7 Home Premium x64Athlon X2 4200+3GB DDR2nVidia 9400GT, 128-bit 1GB DDR2
Computer Manufacturer/Model Number
Modded Gateway GT5034
OS
Windows 7 Home Premium x64
CPU
Athlon X2 4200+
Memory
3GB DDR2
Graphics Card(s)
nVidia 9400GT, 128-bit 1GB DDR2
Sound Card
SB Audigy 2 LS
Monitor(s) Displays
40" Sony Bravia 2
Hard Drives
500GB Seagate Barricuda 7200.11 (System)
750GB Seagate Barricuda 7200.12 (Data)
Samsung 850 1TB SSD
about 0.4W idle
about 3Watts read/write

Seagate Mobile 1TB HDD
about 0.45W idle
about 1.6W seek

I don't know if seek is comparable to read/write.

Just two that I picked.
Your mileage may vary.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Samsung 850 1TB SSD
about 0.4W idle
about 3Watts read/write

Seagate Mobile 1TB HDD
about 0.45W idle
about 1.6W seek

I don't know if seek is comparable to read/write.

Just two that I picked.
Your mileage may vary.


Although a respectable challenge, please tell me that you're not trying to promote the idea that an SSDs short seek-time and even shorter write/read time somehow uses more (or even comparable) energy than a spinning platter and moving, magnetic head...

Here's a short discussion about why the numbers seem this way...Power draw of an SSD vs. 2.5" notebook hard drive confusion??? - Ars Technica OpenForum

Of course, if you've switched to SSD on a laptop, you immediately notice the improvement in battery life.

Here's my search term: power consumption ssd vs hdd

Tons of articles addressing this "issue"

I think common sense should win the day. As I said, there's moving parts and such that take longer to accomplish the same task...

...

Something else of note:

If using the least power is more a concern, does it not seem more feasible to use the better performing part as you'll heavy-draw from the power source less and thus keep the battery in a lower performance state than having to constantly draw from the battery for a longer period of time?
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium x64Athlon X2 4200+3GB DDR2nVidia 9400GT, 128-bit 1GB DDR2
Computer Manufacturer/Model Number
Modded Gateway GT5034
OS
Windows 7 Home Premium x64
CPU
Athlon X2 4200+
Memory
3GB DDR2
Graphics Card(s)
nVidia 9400GT, 128-bit 1GB DDR2
Sound Card
SB Audigy 2 LS
Monitor(s) Displays
40" Sony Bravia 2
Hard Drives
500GB Seagate Barricuda 7200.11 (System)
750GB Seagate Barricuda 7200.12 (Data)
Back
Top