Bug 428664

Summary: Installer creates huge swap partition
Product: [KDE Neon] neon Reporter: Clay Weber <clay>
Component: Live/Install imagesAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: clay, jr, nate, neon-bugs, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Clay Weber 2020-11-03 22:10:40 UTC
SUMMARY


STEPS TO REPRODUCE
1. Install Neon using the automatic full disk partitioning option 

 

OBSERVED RESULT
Calamares sets up a 21Gb swap partition on my laptop with 20Gb of ram.


EXPECTED RESULT
Either a swap file, as is done on most Ubuntu variants, or a more sane swap partition size. Unless Neon has hibernation enabled, this is quite overboard.
IIRC Ubuntu have hibernation disabled by default.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE neon
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0
Comment 1 Nate Graham 2020-11-04 18:38:05 UTC
Yes, it does have hibernation, and what's why the swap partition is so big: the swap partition has to be as big or bigger than the amount of RAM on your system. Ubuntu uses a smaller swap partition (a file, actually) because they explicitly don't support hibernation.

Whether or not hibernation is a good default is a different question. Perhaps it should not be, or perhaps there should be an option in the installer. Those would be separate issues that require separate bug reports though. :)
Comment 2 Clay Weber 2020-11-05 02:50:41 UTC
(In reply to Nate Graham from comment #1)
> Yes, it does have hibernation, and what's why the swap partition is so big:
> the swap partition has to be as big or bigger than the amount of RAM on your
> system. Ubuntu uses a smaller swap partition (a file, actually) because they
> explicitly don't support hibernation.
> 
> Whether or not hibernation is a good default is a different question.
> Perhaps it should not be, or perhaps there should be an option in the
> installer. Those would be separate issues that require separate bug reports
> though. :)

Thanks for clearing that up!

But it does bring to the front that Neon is straying a bit from stock Ubuntu base, which many  assume to  have certain characteristics, more so if the user doesn't look at the dialogs fully, expecting the same results as previous installs.

I do not recall noticing this on my previous install some months back, or in virtual machines in recent months. Can I assume this may be a somewhat recent change?