You are not logged in.
Hello Arch Community.
I want to install Arch Linux on my Aspire V5-573G Notebook with 8GB RAM and a 120GB 840 Evo SSD from Samsung. So my question is, do I actually need a swap partition / swap file? I read the arch-wiki pages about swap and suspend-to-disk / suspend-to-ram, and the only thing thats obviously profiting from / needing a swap partition is suspend-to-disk, no other things are mentioned in this regard. Is a swap partition in any other way important?
Thanks in advance.
Last edited by Oedner (2013-12-21 12:41:19)
Offline
No.
Offline
Likely not with 8G of RAM.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Most programs won't come near using 8GB of RAM. You should be fine, unless you run dozens of different programs at the same time, with no swap file. Another question to ask is what will happen if you don't have a swap file and run out of memory? In that case the Linux kernel will randomly kill process' until there is enough memory again. Obviously that isn't very stable but that is what it will do. The same thing will happen if you do have RAM + swap and run out of both of those too.
Offline
Another question to ask is what will happen if you don't have a swap file and run out of memory? In that case the Linux kernel will randomly kill process' until there is enough memory again. Obviously that isn't very stable but that is what it will do.
No. The OOM killer is pretty darn tweaked these days and usually(!) kills the actual perpetrator. The alternative—disabling memory overcommitting and answering memory requests with an out-of-memory error—can result in unforeseen problems as well: What if it a system process is trying to allocate a few bytes for some random string, and what if said system process isn't equipped to handle ENOMEM gracefully and crashes, because the default policy on Linux is to overcommit and never answer with out-of-memory errors?
Just trying to play devil's advocate here. I'm not happy with the OOM killer either and I'd rather have a deterministic solution to out-of-memory situations, but I realize that it's probably not an easy problem to solve.
Offline
thanks for all of your input, I'm going without swap then since i only use the notebook for some office work, browsing and watching a movie now and then.
Offline