5 ms·
I was surprised to learn that a swap file on hdd is not nearly as fast as a dedicated swap partition at the start of the drive. https://www.vidarholen.net/cont
by koala_man 4y ago
I was surprised to learn that a swap file on hdd is not nearly as fast as a dedicated swap partition at the start of the drive.
https://www.vidarholen.net/contents/blog/?p=1110 https://www.vidarholen.net/contents/blog/?p=1110
- fuzzfactor 4y agoFrom the 1990's there was a perceptible difference in Linux or Windows if you could dedicate one entire secondary HDD to a swap partition. At the beginning of the HDD was where the sectors are most rapidly accessed physically. For SSD there should not be much difference between a separate partition or a file, or whether the reserved sectors the swap occupies are at the beginning of the drive. Should probably be aligned with the block size of the SSD though. Still may be helpful to have a separate SSD for swap besides the drive the OS is on. It would be worth trying but I like a swap file in Linux so I can confine Linux to a single type EXT4 partition right next to my NTFS WIndows partition. With Windows it does work good without a swap file as long as you have plenty of memory left over after Windows and your desired apps are loaded. Handling further data loads within reason.