Tag Info

Hot answers tagged


First, use parted -l to check it is indeed a swap partition. Second, run sudo mkswap /dev/sda3 (or whatever your swap partition is..) to create a swap partition. Do make sure it's the right one! Third, use blkid to get a UUID for it. Fourth, sudo vi /etc/fstab (or whatever editor you prefer to vi!) & enter the UUID - there should be a line similar to ...


Depending on what they are doing, Computers with large amounts of memory, such as yours, can get into difficulties when the amount of free memory (resident as opposed to swap) becomes very low. Sometimes (not sure for your situation) things can be improved by increasing the minimum amount of memory kept free, or /proc/sys/vm/min_free_kbytes. Think of it as ...


To find out if your processes have been killed by the OOM killer you can inspect the result of this command: sudo egrep -ri 'killed process' /var/log/ | grep -v auth.log If this is the case you might want to look at the article about taiming the OOM Killer. http://lwn.net/Articles/317814/


No, you do not need a swap file or partition as long as You are not going to hibernate. You do not use RAM heavy apps such as virtualizaion or audio - video editing or burning DVD. For "standard" desktop tasks (web browsing, email, text editing) with a single user you do not need swap. With 4 gb and the type of apps I listed, I never even use swap. It ...


It actually doesn't matter. As long as you don't need to move Ubuntu or Windows, you're fine. Just add it where you have free space. :)


When setting up encrypted swap like this, you cannot use the "by-uuid" method as above, since the swap partition will be reformated with a random key every time your computer boots, and the UUID will change every time this happens. The correct way to do this is to use another persistent method, for instance the "by-id" or the "by-path" method. If you list ...

Only top voted, non community-wiki answers of a minimum length are eligible