[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Do you have a swap partition? Do I need a swap partition?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 26
Thread images: 3

File: 1455728280457.png (16KB, 259x224px) Image search: [Google]
1455728280457.png
16KB, 259x224px
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.
>>
File: 1427019808991.jpg.jpg (4MB, 10000x10000px) Image search: [Google]
1427019808991.jpg.jpg
4MB, 10000x10000px
>>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?
>>
File: HBOmGBd.jpg (41KB, 600x338px) Image search: [Google]
HBOmGBd.jpg
41KB, 600x338px
>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.
Thread posts: 26
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.