Ubuntu Forums Archive Viewer

SSD and Swap for Hibernate

Archived thread 1105297 from System76 Support. Markdown source: System76_Support/thread_1105297_SSD_and_Swap_for_Hibernate.md

Original URL About this archive
#1

Would System76 computers with SSD's include a swap partition to enable hibernation? A lot of people worry about the limited write capabilities on SSD's and consequently do not include a swap partition. In fact, even netbooks with more than 30gb SSD's do not include swap. Seems a little silly to me. What do you guys think?

Thanks guys.

#2

We definitely include swap partitions on them now.

#3

Thanks T.A. That's what I assumed. Seems silly not to allow hibernation! :P

#4

Can't you specify a file within your filesystem as a hibernate file, without swapping to it? That way you could have hibernation, but not be concerned about the extra frequent writes to the drive.

That said, I don't think there's really much concern. SSDs do have a technical limitation on the number of writes, but unless you're writing to them constantly day in and day out, the computer will become pretty outdated before the drive becomes unusable.

#5

AusIV4 said: Can't you specify a file within your filesystem as a hibernate file, without swapping to it? That way you could have hibernation, but not be concerned about the extra frequent writes to the drive.

That said, I don't think there's really much concern. SSDs do have a technical limitation on the number of writes, but unless you're writing to them constantly day in and day out, the computer will become pretty outdated before the drive becomes unusable.

If you have lots of memory I don't think swap gets used much except for hibernation. I use the program "top" a lot and it usually shows 0 swap usage. Does anyone know for sure???

jdb

#6

jdb,

That's correct. It's primarily for hibernation. Suspend is more popular on notebooks, though, since it is significantly faster than hibernation.

So it could be that less emphasis is being put on hibernation by some oem's, and more is being put on suspend.