Unix systems, and other Unix-like operating systems, use the term "swap" to describe both the act of moving memory pages between RAM and disk, and the region of a disk the pages are stored on. In some of those systems, it is common to use a separate whole partition of a hard disk for swapping. These ...

learn more… | top users | synonyms

47
votes
5answers
71k views

How do I add a swap partition after system installation?

I did not opt for a swap partition during Ubuntu installation. Later I freed up some space, and made a swap partition. Now after booting up I am manually opening gparted and right-clicking the swap ...
126
votes
18answers
86k views

I have 16GB RAM. Do I need 32GB swap?

I read many places that the rule of thumb for swap space is to double the amount of physical RAM. However, 32 GB does seem a LOT. Do I need that much? Do I need it at all with this high amount of ...
38
votes
3answers
52k views

How to increase swap space?

I have, by default, 250MB of swap space in Ubuntu, and I want to expand it to a larger size. I need 800MB, which I think will be enough to open several applications without having to hit the current ...
110
votes
1answer
212k views

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
23
votes
2answers
35k views

What to do about “the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present”?

While booting Ubuntu 12.04, the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present is showing. What is this? Is this is an error?
3
votes
2answers
5k views

How to recover data from NTFS partition that was made into a Swap partition?

I have extremely important stuff on my windows partition which during the ubuntu 10.10 installation,when it said that I should create something called swap space, I selected it to be a swap space ...
84
votes
5answers
52k views

Why is swap being used even though I have plenty of free RAM?

I thought the whole essence of swap was to act as a temporary storage safety net when RAM was full but my swap partition is constantly being used even though I sometimes have as much as 3GB free RAM. ...
10
votes
2answers
19k views

Adding a new swap file. How to edit fstab to enable swap after reboot?

I've deleted my existing swap partition due to some partitioning problem. I don't have a swap space now so I've created a swap file with: dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 Here's ...
25
votes
5answers
25k views

Why most people recommend to reduce swappiness to 10-20?

I have seen in several site which recommend to reduce swappiness to 10-20 for better performance. http://community.linuxmint.com/tutorial/view/998 ...
27
votes
4answers
5k views

Importance of Swap Partition

What is the purpose of a swap partition? How do I know I have just enough swap partition? Not too much/little. My Ubuntu PC is used for typical stuff: Web (email, facebook, etc.) Some movies ...
13
votes
3answers
12k views

Check if partition is encrypted

How do I check if a partition is encrypted? In particular I would like to know how I check if /home and swap is encrypted.
22
votes
5answers
9k views

Does it make sense to create swap partitions for new installations nowadways?

For a desktop installation in a new and shiny laptop (let's say 16gb ram and ssd hd), does it make sense to have a swap partition?
6
votes
1answer
2k views

what is SWAP and how large a swap partition should I create? [duplicate]

I have a system with 4gb of RAM and Intel i5 processor. I want to know how much memory I should allocate to SWAP. Will allocating more memory help increase the system performance. In the past i have ...
15
votes
5answers
11k views

Swap not working on clean 14.04 install using encrypted home

Update 3: I decided to reinstall the system from scratch to remove any old cruft lying around since I had been experiencing some other issues after the upgrade aswell. Howver, this issue persisted. ...
10
votes
5answers
11k views

How to permanently enable compressed ram swap? What version to use?

EDIT: In precise there's now zram-config. It's an upstart job compressing up to half of your ram spread over $(number of CPU cores) swap devices. It didn't allways start at boot but issuing sudo ...
30
votes
2answers
37k views

Is it safe to turn swap off permanently?

My system was getting slower, especially when I use browsers like Firefox / Chromium and Virtual Machines. I noticed that I've got at least 3.2 GB of free RAM (using Gnome system monitor) and there ...
11
votes
1answer
9k views

How do I setup an encrypted swap file?

When I installed Ubuntu, I setup an encrypted home partition. Now I have come to an issue where I am running out of memory because I haven't setup swap. How can I setup an encrypted swap file? A ...
8
votes
3answers
15k views

How to disable cryptswap?

How can I disable cryptswap? I would like an unencrypted swap like before. This is on an ubuntu 9.10 system.
8
votes
4answers
47k views

How to decide on Swap size [duplicate]

Possible Duplicate: I have 16GB RAM. Do I need 32GB swap? I wanted to just confirm how much the size of Swap partition should be. Lots of places tell that the swap size should be twice the ...
6
votes
3answers
8k views

How do increase the swap size of my Wubi installation?

I have installed Ubuntu using the Wubi installer. So I have the default swap size of only 256MB. I have 1GB of RAM, so many times the system stars crying demanding more swap. I have read the Swap FAQ, ...
9
votes
4answers
20k views

Using usbdrive as ram in ubuntu

In windows it is possible to use usb flash drive as a virtual ram. I wonder if it is possible to do so in ubuntu? If it is, how could one do it? [Edit]: I mean Ready boost equivallent for ubuntu. I ...
3
votes
2answers
3k views

Sharing swap space between Windows and Ubuntu

This Linux Swap Space Mini-HOWTO describes how to share swap space between Windows and Linux. **Do these instructions still apply to Ubuntu in 2011? How should I modify the steps for Ubuntu? Is ...
5
votes
1answer
2k views

How do I enable hibernation on Wubi?

I installed Ubuntu on my Windows 7 Sager laptop using Wubi. Hibernate (i.e. suspend to disc) is not an option from the power icon, only suspend, shutdown, etc. Hibernate is also not an option from my ...
1
vote
2answers
2k views

Why are there multiple (6) swap partitions after Ubuntu clean install?

After several multiple clean re-installations of Ubuntu 11.10 x86 from the original 11.04 on my Lenovo S12 (Intel Atom) laptop, I find I have six swap partitions. The original 11.04 had only one. I ...
10
votes
4answers
11k views

Is my Swap (cryptswap) partition working properly?

I have a feeling it's not. I'm running Ubuntu 11.10 on a Toshiba Satellite L305-S5944 Laptop. Says I have 1.8 GiB of Ram (thought I had 2). When I look at the Resources tab in the System Monitor ...
4
votes
4answers
5k views

Swap partition not recognized (The disk drive with UUID=… is not ready yet or not present)

I think I had an encrypted swap partition, because I chose to encrypt my home directory during the installation. I believe that's what the line with /dev/mapper/cryptswap1 ... in my /etc/fstab is all ...
10
votes
2answers
8k views

“Swap not available” - I must manually “swapon” after every reboot

I am on Ubuntu 12.04, Thinkpad Edge 13, encrypted home. A message in the System Monitor tells me that swap is "not available". I can get it back using the swapon option in gparted (I thought I could ...
6
votes
4answers
19k views

Do we still need swap partitions on desktop?

I have read this question, but it was asked in the context of servers not desktops or notebooks. If a good amount of RAM is installed on a notebook, say 8 GB, do we still need a swap space?
5
votes
4answers
5k views

Unsafe swap space detected

So I had a Ubuntu 13.04 installation and I had encrypted my hard drive while I was doing installation. I was playing around and mistakenly deleted all the partitions, now I downloaded lUbuntu 13.10 ...
5
votes
3answers
10k views

How to delete a second swap partition safely?

First of all I've tried to install Ubuntu , but something went wrong and the installation was interrupted. Then I tried to install again , and it was installed successfully. And there was another ...
2
votes
2answers
1k views

Sharing of swap partiton between linux systems?

I have a laptop on which I have installed Ubuntu 12.04 and Windows Now just for learning purposes I am going to install Backtrack OS on it. My laptop has 4 GB of RAM so according to the ...
4
votes
2answers
4k views

Encrypted Swap Partition for 14.04

How can I produce an encrypted Swap Partition for 14.04 ? All the advices I saw here are for versions <14.04 and do not work for me. I tried a lot but nothing lasted longer than a reboot. Is there ...
3
votes
2answers
12k views

What is the safest way to remove a swap partition?

I am running Ubuntu 12.04 on a 64-bit HP laptop with a 16 GB flash drive. I do not have a working hard drive right now. When I installed Ubuntu, I created a 2 GB swap partition on sdb1. I have since ...
73
votes
7answers
81k views

How to empty swap if there is free RAM?

When I open a RAM-intensive app (VirtualBox set at 2GB of RAM), some swap space is generally used, depending on what else I have open at the time. However, when I quit that last application, the 2GB ...
25
votes
5answers
7k views

With an SSD, do I need to change my swappiness to increase SSD life?

I encountered this article which includes the following suggestion: Swap and swappiness I kept my swap partition on the old HDD. Swap on the SSD would be faster, but would also shorten the ...
11
votes
6answers
3k views

Do we need Swap partition on a LAMP server?

Do we need actually swap partition on the ubuntu-server with LAMP? I think I don't need it, but better to know for sure if it will not cause some unpredicted behaviour. Actually my thoughts were: ...
13
votes
4answers
10k views

How big should I make my swap partition?

I'm (re)installing Ubuntu on my Toshiba NB100 netbook (Intel Atom, 120GB HD, 2GB RAM). Already have a partition I call "Stuff" with all my media and docs. Will be deleting the one I had Win7 on ...
12
votes
6answers
29k views

How do I find out if I have a swap partition on my hard drive?

I used the 12.04 live cd to install Ubuntu over my Windows 7 partition and deleted everything so I just have Ubuntu on my laptop. But since during the installer I chose the simple "erase entire disk" ...
7
votes
4answers
10k views

Is having the 'swap' partition at the 'beginning' better than at the 'end'?

I recently installed Ubuntu 11.04 onto a RAID0(stripe) device using the alternate installation disc and manually partitioned the HDs ext4 and swap partitions; during this process, I was reading in a ...
6
votes
1answer
4k views

How do I restore a swap partition I accidentally deleted?

I accidentally deleted my swap partition via gparted. (I'm still logged in the system so restoring should be easier) Can someone help me please? I'm not sure how to configure it because the Ubuntu ...
6
votes
2answers
5k views

Hibernate to a swap file

I have configured a new Ubuntu 10.10 installation in a Notebook to use a swap file, instead of using a swap partition. For default is not possible to get Ubuntu to hibernate using a swap file, so i ...
4
votes
2answers
3k views

How to use a compressed ramdisk (ramzswap)? Huge speed gain

Since I don't use my laptop's CD-drive I want to put a small (8 GB) SSD into the CD-drive slot (I'll use a caddy similar to this one). I want to use compressed btrfs on the SSD and put all the data on ...
6
votes
1answer
4k views

How do I get Ubuntu 12.04 to recognize encrypted swap partition so that I can hibernate?

I just installed Ubuntu 12.04 and used gparted to erase and enlarge my swap partition. When I rebooted, gparted said that the file partition for the swap was unknown. Gparted doesn't let me change ...
4
votes
2answers
5k views

Is it possible reduce swap memory size?

The matter is that my computer has 3Gb of memory ram. Therefore i think that i don't need too much swap memory size, and i really need free space in the hard disk. sorry by my English
3
votes
2answers
10k views

Do I need swap with new SSD?

Am about to upgrade to new SSD and thinking through partition migration process. Will I need SWAP with an SSD? I have 8GB RAM and an i5 processor.
3
votes
4answers
6k views

How do I add more swap easily so that I can hibernate my laptop?

I installed Natty on my laptop with default options. I guess it created a swap partition equal to the size of my RAM. Every time I try to hibernate I get the "not enough swap" message, which is ...
12
votes
4answers
20k views

Put swap on SSD or HDD?

New installation coming up. 120gb SSD for OS and HOME and 1tb HDD for storage. 16gb of ram which means 16gb of swap if I recall correctly. SSD space is too valuable for a swap partition right? If my ...
2
votes
2answers
948 views

Lost Swap Partition

I set up a new Ubuntu Partition a few days ago. Yesterday I installed the Kubuntu-Desktop to replace the Unity thing. Since I installed the new desktop the Linux-Swap partition won't work anymore and ...
2
votes
2answers
4k views

What is a “Swap Area”?

So I noticed this question has not been asked directly; What is this "Swap Area" people keep referring to when it comes to installing Ubuntu?
2
votes
1answer
2k views

Encrypted home partition + encrypted swap + working hibernate

I would like to set up disk encryption on Ubuntu 13.10 such that I have plain / encrypted /home partition encrypted swap partition working hibernation and resume As these requirements suggest, ...