4 ms·
This Ubuntu version has also replaced Unix/Linux's ancient swap partition with a swap file. The net effect should be to make Ubuntu a bit faster in situations w
by rwmj 10y ago
This Ubuntu version has also replaced Unix/Linux's ancient swap partition with a swap file. The net effect should be to make Ubuntu a bit faster in situations where the system is overburdened with applications and has to resort to using drive space in place of memory.
There are reasons a swap file might be preferable to a partition, or maybe to get rid of swap altogether, but it's not this.
- pilif 10y agoactually, do you know why they changed this? I thought that a partition was always superior to a file (aside of the usability issues).
- dom0 10y ago> I thought that a partition was always superior to a file (aside of the usability issues). Pretty sure you've answered your own question there.
- jakobdabo 10y agoFile-based swap will always be a bit slower because of the additional file system layer and possible fragmentation of the file.
- rwmj 10y agoThe release notes don't say why, but I'm going to go for flexibility. Swap to a file is slightly slower than swap to a partition, but if you're in a situation where you're swapping, then you've lost the performance battle already.
- majewsky 10y agoI would also guess flexibility. It's certainly a nice property to be able to resize the swap without having to move partitions around or deal with LVM.
- mcguire 10y agoI was just about to ask this. I've never heard that claim before.
- stock_toaster 10y agoMaybe so trim works for swap on SSDs?