Page MenuHomeSolus

Suggestion: the installer should create a swap space large enough to support hibernating
Open, LowPublic

Description

The abiity for a system to hibernate during the nighttime or other hours when it's not needed is a very useful feature. Alll of my machines can -- and do -- hibernate. My daily-driver laptop does so at night, for example, and my workstation might hibernate for days at a time, as being retired I don't use it very often anymore.

But I noticed while creating VMs for the 4.4 .ISOs that the installer created a swap partition of less than 1 GB. Those VMs have 4 GB of RAM, so they wouldn't always be able to hibernate, depending on how much RAM was actually in use at the time.

The most common suggestion I've heard for deciding on how much swap space is needed is to make it the size of the machine's RAM. That can still be too little, if some of the swap is already in use at the time, but I'm sure that rarely happens.

I've been told that the installer knows how much RAM is in the target machine, at installation. So if it's going to create a swap partition at all, it should be able to create one that same size.

Event Timeline

EbonJaeger triaged this task as Low priority.EditedJun 28 2023, 7:16 PM
EbonJaeger edited projects, added Installation; removed Lacks Project.
EbonJaeger added a subscriber: EbonJaeger.

Calamares (I believe) can do this, it probably just has to be set up to do so. At the very least, I recall the EndeavourOS Calamares installer has an option for it, or suspend. Something to look in to down the road.