Samcake to Selfhosted@lemmy.worldEnglish • 1 year agoHow much swap?message-square56fedilinkarrow-up137arrow-down11file-text
arrow-up136arrow-down1message-squareHow much swap?Samcake to Selfhosted@lemmy.worldEnglish • 1 year agomessage-square56fedilinkfile-text
minus-squarez3bralinkfedilinkEnglish22•1 year agoDon’t even bother with a SWAP partition. Create an empty file on your / partition so you can grow/shrink it as needed. did if=/dev/zero of=/SWAP bs=1024m count=4 mkswap /SWAP swapon /SWAP
minus-square@mygreatlimbo@lemmy.worldlinkfedilinkEnglish5•1 year agoNot a golden rule. For example btrfs has limited support for swapfiles.
minus-squarez3bralinkfedilinkEnglish1•1 year agoOf course there’s no golden rule. But I’ve found this one to be pretty useful ! Didn’t know about btrfs limitations though, thanks for the hint!
minus-square@float@feddit.delinkfedilinkEnglish5•edit-21 year agoThis is the way! There’s a catch with swap files on encrypted disks and hibernation but that’s quite a special case. Edit: forgot to mention zswap, the compressed version of swap.
Don’t even bother with a SWAP partition. Create an empty file on your / partition so you can grow/shrink it as needed.
did if=/dev/zero of=/SWAP bs=1024m count=4 mkswap /SWAP swapon /SWAP
Not a golden rule. For example btrfs has limited support for swapfiles.
Of course there’s no golden rule. But I’ve found this one to be pretty useful ! Didn’t know about btrfs limitations though, thanks for the hint!
This is the way! There’s a catch with swap files on encrypted disks and hibernation but that’s quite a special case. Edit: forgot to mention zswap, the compressed version of swap.