Do you have a swap partition?
Do I need a swap partition?
I do but I don't think I've ever seen it being used, so I really should merge it back into its neighbours. Gparted can do that, right?
On a laptop with 4gb of ram I do because with out it completely locks up as soon as it gets to 4gb and needs a reboot.
On 16gb desktop no I do not
It's just in case you use up your RAM.
>>57883885
No.
No.
hacker rule #1: friends don't let friend use swap
Nope, I even set /tmp to live in memory (ye olde Solaris way) and /var/tmp/portage too.
>>57883885
If you want to use hibernation, your session will need to get copied from RAM to disk. Then you wish you have enough swap space. As a rule of thumb, make swap about as large as your RAM but only if you decide to keep resource intensive applications running while hibernating. Otherwise, just close them and then hibernate doesn't require swap space to equal your RAM.
>>57884147
How?
>>57884219
Not him but I think by making a tmpfs for it in fstab.
$ grep tmpfs /etc/fstab
none /tmp tmpfs size=8192M,nr_inodes=1M 0 0
>>57883885
Yes, as a failsafe. Swappiness is set to 0
Depends on how much ram you have, really
>>57884339
Thanks. I just read up on swappiness.
>https://askubuntu.com/questions/103915/how-do-i-configure-swappiness
Mine wasn't even set in /etc/sysctl.conf so I set mine to a sane 60. I will check next time my ram consumption boosts.
2GB RAM laptop.
Made a small 95MB one to make the numbers line up nicer.
>>57883885
>Do you have a swap partition?
Yes
>Do I need a swap partition?
maybe not, i have it just in case but rarely exceed 8gb/16gb of used RAM. Also you need it if you want to fully hibernate.
I also imagine that having swap on another HDD/SSD and actually using it would be fine but slow, so if you have a trash/small hdd laying around you can set it up for swap.
>>57883885
>2016
>using swap partition
I actually don't have a swap partition. It's fine.
>>57884216
>Then you wish you have enough swap space
Does linux only copy ram to swap when hibernating? Windows does it on the same drive/partition the OS was installed.
>>57885515
Windows does the same, it just doesn't show that it does. That's why when you enable hibernation it says it needs to put some hard drive space aside.
>>57885515
windows uses swap files which can be used on Linux as well
>>57885574
But I must have a self made swap partition in linux for hibernate to work, correct?
>needing swap
>not having 128gb of RAM instead
poorfag detected
>>57883885
Doesn't hurt to have at least 8GB of Swap just in case.
Never used swap, also never used suspend either
1970 called, they want their /swap partition back.
God damn UNIX-likes are shit. That includes NT, the fucking VMS-wannabe.
>>57885515
>Does linux only copy ram to swap when hibernating?
You can setup this with swappines.