• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Virtual memory with large RAM

  • Thread starter Thread starter Deleted member 50521
  • Start date Start date
I'm surprised that Windows didn't try to create a 256GB page file lol, as it usually creates one of twice the RAM size by default.

I've been running 16GB RAM without a page file (other than the minimal one Windows creates anyway) since 2011 and I've never once come close to running out of RAM. With 128GB you're probably set for life.
 
After a couple weeks of no pagefile I went back to having one. Too often the low-memory warning triggered which was annoying at best or at worst Windows randomly closed something. The game clients I run commit a lot of memory up front so even though my usage tops out at 12GB, the committed amount is usually 18GB. On my 16GB system that means having a 2GB+ pagefile. Without a pagefile I was around 9GB actual usage and 15GB+ committed before Windows was like, "No, stop!".
 
After a couple weeks of no pagefile I went back to having one. Too often the low-memory warning triggered which was annoying at best or at worst Windows randomly closed something. The game clients I run commit a lot of memory up front so even though my usage tops out at 12GB, the committed amount is usually 18GB. On my 16GB system that means having a 2GB+ pagefile. Without a pagefile I was around 9GB actual usage and 15GB+ committed before Windows was like, "No, stop!".
That's interesting as I've got the same amount of memory as you and haven't encountered these problems. Which games are you running? I have a feeling I'm not running those ones.

It's also inevitable that as things progress, that 16GB will start to get eaten into and more will be needed.
 
That's interesting as I've got the same amount of memory as you and haven't encountered these problems. Which games are you running? I have a feeling I'm not running those ones.

It's also inevitable that as things progress, that 16GB will start to get eaten into and more will be needed.

Sorry, meant to say "multiple clients at once" in the earlier post. I'll commonly have 3 Lord of the Rings clients going, which has never been a problem with a pagefile and is only sometimes a problem without one. Depends on how many other things I leave running, which could even be another game. Black Desert Online has a low resource mode when minimized to tray so that your character, your workers, etc, keep active in-game. It doesn't play well alongside the new Doom, but has no problem when also running LOTRO or Starcraft II (was recently on sale so I'm finally getting around to it).
 
Had my first crash since coming up to 128GB today. I turned off page file, assuming I would never run out RAM. During my work the genome assembler took a spike up to 122GB RAM usage and before I realized it showed me the blue screen, I lost about 500GB of work in progress. So lesson learned. No matter how big your RAM is, DO NOT TURN OFF the page file!:mad:

At last voice of reason... learned the hard way. You should gospel it.
 
i've been manually setting my page file to 2GB since the XP days with no issues, 24GB of ram these days.
 
I learned over the yrs not totally disabled the pagefile bcs some Microsoft programs ain't really happy if u do, read that Office and so on still wants it enabled so i set it to like 1024mb or smth like that and it's fine.

Last friday I reinstalled Windows 10 Pro on my rig but I let it at auto with 16gigs of ram I don't need it a lot.
 
When i shut off my pagefile Windows started screaming at me when i used 11/16GB. 2GB pagefile fixed that.
 
  • Like
Reactions: xvi
I point the page file path to my largest hard drive instead of my SSD. Windows happily set up a 256GB file immediately.
 
  • Like
Reactions: xvi
I don't know about Windows methods, but at one time, Linux needed swap (page file) to enable on-demand paging of read-only binaries from disk. They didn't actually get put in swap -- BUT if you disabled swap, then it was always loaded into ram, thus pressuring RAM even further. Not sure how it is now. Anyway, my takeaway is that I always leave at least 4GB for page file / swap. If I get that deep into it, my machine is probably crawling anyway.

Shouldn't blue screen when you run out of ram, a process should be killed, ideally ... OOM can be tricky though, apparently.
 
i have been running without a page file for the last ten years.. most of them on a win XP system with only 4 gigs of ram.. 4 gigs was a lot back then..

i am now on a system with 32 gigs of ram with the page file turned off..

basically once windows actually starts to use its swap file its time to buy some more of the real stuff..

windows and its swap file is a relic of the past..

trog
 
i have been running without a page file for the last ten years.. most of them on a win XP system with only 4 gigs of ram.. 4 gigs was a lot back then..

i am now on a system with 32 gigs of ram with the page file turned off..

basically once windows actually starts to use its swap file its time to buy some more of the real stuff..

windows and its swap file is a relic of the past..

trog
Not everyone is elitest in ignorance as you are. Majority of us would rather not waste money and let things be as they are.
 
Usig 16GB ram, and 3Gb of pagefile, set on HDD instead of SSD (or should i put it back on SSD). Issues occurred when i tried disabling pagefile so i just put it back
 
I use 1024mb page file on asrocks xfast ram disk software. In my opinion any quality ramdisk program thats the best use for it.

Never any issues.
 
Usig 16GB ram, and 3Gb of pagefile, set on HDD instead of SSD (or should i put it back on SSD). Issues occurred when i tried disabling pagefile so i just put it back

Samsung suggests leaving it on your SSD
 
I always move the pagefile off my main ssd. I have an old 60gb ssd that I dedicate to swap duty.
 
i have been running without a page file for the last ten years.. most of them on a win XP system with only 4 gigs of ram.. 4 gigs was a lot back then..

i am now on a system with 32 gigs of ram with the page file turned off..

basically once windows actually starts to use its swap file its time to buy some more of the real stuff..

windows and its swap file is a relic of the past..

trog


In case you missed it, I can only put up to 128GB of RAM on X99, and it is already full of that.
 
I point the page file path to my largest hard drive instead of my SSD. Windows happily set up a 256GB file immediately.
This is defo the best way.
 
For what i do, gaming and work on microsoft access it doesnt matter
 
The following thoughts have been on my mind for quite some time,

I've read Geoff Chappell's blog and atm am about halfway through Windows Internals 6th by Russunovich, and it's brilliant, I really recommend it.
Mark used to piss Microsoft right off so I have great respect for him.

Just to set the record straight, a pagefile is "not required" in Windows and never has been. Regarding applications which "need" a pagefile, applications don't know even the pagefile exists.

^This is true. You will find the above in Mark R's book so feel free to look it up.


Below is mostly opinion, but with some truths thrown in.
Due to events which have happened over the last few years, and some personal observations I've concluded MS are not being totally honest with us neither are Intel. And AMD has been getting the short end.


Many MSDN blogs and TN blogs are tailored to suit Microsoft interests, and tbh - Intel.

The reality:
https://www.raymond.cc/blog/make-windows-7-and-vista-32-bit-x86-support-more-than-4gb-memory/
https://blogs.msdn.microsoft.com/oldnewthing/20090706-00/?p=17623/
https://blogs.msdn.microsoft.com/oldnewthing/20040822-00/?p=38093/
http://www.geoffchappell.com/notes/windows/license/memory.htm


******

PAE and the PF is designed for x86 32 systems with 2GB sliced of for the kernel and a total of 2GB or less left for everything else. Or any platform with barely any ram. Like all Intel until around ~2008.
AMD64 and IA64 platforms can both support up to 2TB of RAM and likely more expert MS hasn't tested past 2TB.

TBh I don't understand the point of a PF because if you can map section objects from a hard drive what is the difference between that and a pagefile? Why use one, you're mapping the same pages twice.
Maybe someone else who knows WMM can throw in 2c?

Also, has anyone ever been able to make sense of "Windows Memory Limitations" on MSDN?
I've been in the industry for nearly 20 years and even I don't understand them. Can you?

An example:
https://msdn.microsoft.com/en-nz/library/windows/desktop/aa366778(v=vs.85).aspx
If those are MS Technical References the authors need to find a new line of work.


Wasn't till I read Geoff's Chappel's blog cited above I realised hey, I'm really not stupid after all!
Geoff said it years ago; the MS articles on memory limits and PAE are deliberately ambiguous.


Why can't MSDN seem to make it clear?
Capture_zpszcahw3ny.jpg%7Eoriginal







During 2004-2008 Intel did not have a single chipset which could handle over 4GB, except Xeon which was specifically designed for servers and astronomically expensive. In 2004 AMD released Athlon64 which was both cheaper than Xeon and could support about as much RAM as you could throw at it. At the same time XP users found they could install 8GB or RAM on their shiny new nForce4 board and the OS would use it.
This is because up until then XP had always been shipped with the PAE kernel enabled, the Client and Server versions of XP are exactly the same, except for the PAE kernel, it ships with both.

Obviously this did not sit well with Microsoft, because hell if end users could now access all that RAM on XP why would why anyone bother upgrading to Vista? Or XP Enterprise/Server versions.
It also did not sit well with Intel who at the time were busy paying of OEM vendors like Dell and HP in attempt to destroy AMD for good.

Consequently along came SP2, low and behold after updating end users running XP Client on Xeon or AMD64 could no longer use over 4GB even though 10 mins before they had 6-8GB installed.
MS eventually made some vague comments that disabling PAE was to "prevent crashes from buggy drivers which expect 64 bit addresses" and in the clients best interest.
The curious part was although MS were concerned by this, at the same time they were busy promoting 64bit Vista as the second coming of Christ. No, no, nothing contradictory aboiut that.

Another point I'd like to make is regarding the 2008 "Pushing windows memory limits" Technet blog, which I'm convinced (I hope) Russunovich didn't write since it has Alex Ionescu's name on the meminfo screenshot.


*****
There is a paragraph about halfway down the page with a screenshot of meminfo and a claim along the lines of "look see in 64bit Vista all my 4GB of RAM shows up".

Directly below it for comparison is another meminfo screenshot with "I bought a gaming system with 2GB of VRAM but because it came with 32bit Vista I have only 2-5 or 3.5GB of RAM available." Whatever it was.


I'm sorry, but that claim is bullshit.

The "Boutique Gaming system" with "32bit Vista" is in fact an Intel 945 laptop with onboard 8400 GPU and only supports 4GB RAM maximum.
Capture_zpsneh9irmy.jpg%7Eoriginal


In the top "Vista 64" screenshot the command prompt line CLEARLY STATES AMD64.

It's an AMD64 chipset with remapping, obviously it will support over 4GB. The extra 500MB RAM has nothing whatsoever to do with the OS. Is this misleading the public? You decide.

I posted a comment on Technet last week questioning the screenshot, and it was promptly deleted.
Some time later all the "Anonymous" spam posts appeared, which you will see below the main article.



P.S: Russunovich never claimed "the PF shouldn't be disabled no matter how much RAM is installed" he said "it can be disabled but it's not recommended".
That was written nearly 10years ago in 2008.
What he didn't - or probably couldn't - say was "it's not recommended on x86 IA32 systems which have sweet FA ram available.

Windows Internals 6th Edition states Windows can run without a pagefile and the key to performance is physical memory. You have to read between the lines sometimes,
I think with 2TB available we can assume it's safe. but ofc check support with your vendor. :p


Thanks, I'm interested in any comments. :) Please no flaming. :D
 
Last edited:
my understanding of all this is very simple.. it all started off many years ago and was based on the premise that no machine would have enough ram.. back then this was basically true..

to get around this something called "virtual memory" was created.. virtual memory is a mixture of real ram and hard disk space.. to windows its all the same.. the only snag being that storage drive space is massively slower to read and write from than ram..

windows for obvious reasons will use its ram memory first then it will resort to what used to be called its swap file.. when it does this the entire system slows down to crawl but at least keeps going..

now most windows machines do have enough ram and and the original premise that no machine can have enough ram is history.. quite why this isnt common knowledge i havnt a clue.. it should be..

when as in most cases a machine has enough real memory (ram) the whole virtual memory thing is redundant.. there is no need for it..

trog
 
my understanding of all this is very simple.. it all started off many years ago and was based on the premise that no machine would have enough ram.. back then this was basically true..

to get around this something called "virtual memory" was created.. virtual memory is a mixture of real ram and hard disk space.. to windows its all the same.. the only snag being that storage drive space is massively slower to read and write from than ram..

windows for obvious reasons will use its ram memory first then it will resort to what used to be called its swap file.. when it does this the entire system slows down to crawl but at least keeps going..

now most windows machines do have enough ram and and the original premise that no machine can have enough ram is history.. quite why this isnt common knowledge i havnt a clue.. it should be..

when as in most cases a machine has enough real memory (ram) the whole virtual memory thing is redundant.. there is no need for it..

trog

On a side note, the AMD64 screenshot above also appears in Internals 6th, but with one notable difference:

The image is cropped to remove the "AMD64" line. lol

I hope Russunovich didn't do that.
https://azure.microsoft.com/en-gb/solutions/digital-marketing/
 
Last edited:
well... for gaming 32gb and virtual mem of and registry tweak disable virtualitzation. enought for windows 7 and 2008 r2. 64 on more moder S.O.

online continued gaming (no logoff) 64gb for win7 and 2008 r2. win 8.1 and up really don't know exatly when but always stops an app ¿¿128//256?? I never has such ram quantity for playing.. don't know
 
I have 32 GB ram and 32 GB swap (about 6 GB of it is on a ssd (this one has a high priority so is the first one to get used), the rest on a normal hard drive). I also have zswap enabled (lz4 compression z3fold alocator (which means it can write up to 3 pages of ram to 1 swap page if they compress well enough)) and both swap partitions are encrypted. The only time I've seen it hit the swap heavily is when running a dedupe on a huge btrfs raid array.

edit:
the dedupe was using close to 20 gb, chromium with a few hundred tabs another 10 gb, handbrake transcoding a few videos a gb or so, random shit running in the background a few more gb, and a few virtual machines (including one in which I was playing nfs underground) were taking another 10gb or so. Surprisingly the system didn't feel slow...
 
Last edited:
Back
Top