5 ms·
You can't just chop off the page file. Disabling it entirely or reducing it significantly can and will affect system performance.
by Indyan 14y ago
You can't just chop off the page file. Disabling it entirely or reducing it significantly can and will affect system performance.
- lucian1900 14y agoThat shouldn't be the case. So many linux machines are doing fine with swap disabled. Regardless, there's no reason for hibernation and page file to be different. They can (and should) be the same file.
- ygra 14y agoOh? So where do you put swapped-out pages when you go into hibernation? Or would you first need to defragment your page file contents just to dump RAM contents into it? Or keep a map what pages in the pagefile are swapped out and what are just hibernated RAM and then piece stuff together on wake-up again?
- hackmiester 14y agoLinux can write the suspend-to-disk data to the swap partition, and this comment really made me wonder how...
- richardwhiuk 14y agoYou simply swap out all your memory. There's no technical difference between a hibernated page and a swapped out page - the only difference is that the OS normally prevents certain pages (e.g. kernel pages) from being swapped out to preserve performance.
- freehunter 14y agoYour argument is seriously "Windows should be Linux"?
- stcredzero 14y agoFor many, this was never an argument, but a wish.
- sergiosgc 14y agoYou are almost right. With enough RAM, a system will work perfectly without swap. There is, however, a small performance penalty. Even with enough RAM, Linux will swap out processes, trying to free memory for use as disk cache. On most cases, this yields performance gains, which would be lost if the swap file is disabled.
- stcredzero 14y agoWhat about systems with SSD?
- vvhn 14y agoThe current state of Virtual Memory is RAM + pagefile/swap partition. The hibernate file would be used to restore just the RAM. You still need the additional pagefile/swap partition to completely come back to that state once you wakeup.