Hacker News new | past | comments | ask | show | jobs | submit login

You can't just chop off the page file. Disabling it entirely or reducing it significantly can and will affect system performance.



That 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.


You 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.


What about systems with SSD?


Your argument is seriously "Windows should be Linux"?


For many, this was never an argument, but a wish.


Oh? 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?


You 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.


Linux can write the suspend-to-disk data to the swap partition, and this comment really made me wonder how...


The 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: