Every discussion about pagefile, swap, virtual memory, ssd wear, having exessive ram, etc, seemingly always boils down to "ssd's are cheap, you'll never run out of writes, please turn pagefile back on and stop worrying about it". I know the truth is somewhere in the middle, (and was not 'worrying' in the first place) so just couldn't go along with it.
(I'll simplify while keeping it truthful) I have 32 gb of ram. Disabled pagefile as an experiment. Allocated a 4gb ramdisk for personal use. Under heavy load, memory hungry apps were indeed occasionally crashing, leaving 'low virtual memory' event log entries. Ram usage never exceeded about 75%. From what i could find, lack of continuous allocation seems to be the culprit. So i added a 2gb pagefile on the same ramdisk. Not a single hiccup since.
I feel like i've been gaslit. Am I missing something? I'm not suggesting everyone to start disabling their pagefile/swap, but surely memory management could be better than what we have now? I've not tested on linux yet but have a feeling will see a similar result.
p_ing•2h ago
Don't disable the page file, if you have 32GiB RAM, it's usage will generally be low unless you're doing something 'heavy', at which point if you're regularly doing that, add more RAM. Some applications absolutely require a page file and will not function without one (Adobe Photoshop is or was one of them).
The truth is not in the "middle". The truth is you should ignore people who peddle uninformed advice on the Internet about how to "optimize" your computer when they themselves don't understand the NTVMM.
alex77456•1h ago
Because the common recommendation is "you need at least a few GB swap". We can change the total ram amount to 64 or 128.