Home_greyopenFATE - openSUSE feature tracking > #312339
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

YaST should warn during install if swap partition is too small for suspending

Feature state

openSUSE Distribution


I made the mistake and installed just 2 GB swap on a laptop with 4 GB ram. I
just forgot to think about suspending the computer will need an suitable swap
partition. Now it's sometimes working an sometimes not...

It would be nice and helpful if YaST would warn the user about that problem during the install process.



icons/user_comment.png R. D. wrote: (7 years ago)

Why not just add a swap file or additional swap partition for reliable suspend post-install now you're done?
If you're over-riding default recommendations, the sane presumption is that you know what you're doing. If this small swap was suggested to you by YaST then, I think that's a bug.

At times for example, I've installed on tight RAM machines, with swap on a small USB stick, if YaST were to nag about every potential issue, over-riding the defaults would result in many annoying warnings that slow install down unecessarily.

icons/user_comment.png H. M. wrote: (6 years ago)

Picking up the "add a swap file idea", I think the most sane solution without involving manual user action would be to just create a swap file if an existing one is too small. This could be handled by the pm-utils/suspend infrastructure. This would also eliminate the use case where systems don't have a swap partition at all, which seems to be more and more common due to large RAM these days.

icons/user_comment.png F. C. wrote: (6 years ago)

not really possible if used by btrfs, since swap on file isn't supported by btrfs

icons/user_comment.png P. B. wrote: (5 years ago)

Speaking of large RAM, if you got 8GB+ RAM, the installer would then tell you that you need a swap even bigger than this. Wasteful for anyone with no intention of hibernating. Again, if you got this partition scheme from "expert custom partitioning" option, I think you get a warning just for selecting custom partitioning. I think that too many warnings would need to be implemented for non-experts venturing in expert mode to make it completely fail-safe.

Last change: 9 months ago
Score: 22
  • Negative: 4
  • Neutral: 0
  • Positive: 26
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint