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

82
votes
7answers
114k 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 ...
64
votes
5answers
82k 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 ...
164
votes
19answers
144k 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 ...
177
votes
1answer
332k views

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
31
votes
2answers
49k 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?
22
votes
1answer
28k 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 ...
3
votes
2answers
6k 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 (...
122
votes
5answers
91k 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. ...
2
votes
3answers
1k views

How much swap should I take for 1-128GB RAM on 14.04 or higher?

I'm going to install 64 bit 14.04 on a Thinkpad T400 with something like 1 to maybe 128GB RAM. How much space should I allocate to the swap partition? And especially: WHY those recommendations for ...
31
votes
6answers
37k 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 https://sites.google.com/site/easylinuxtipsproject/...
31
votes
4answers
7k 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 ...
17
votes
6answers
33k 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?
24
votes
5answers
20k 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. ...
8
votes
1answer
3k 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 ...
14
votes
1answer
15k 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 ...
18
votes
3answers
19k 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
11k 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?
37
votes
2answers
49k 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 ...
8
votes
4answers
10k 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 ...
12
votes
4answers
17k views

Why no swap partitions on SSD drives?

I often read that one should not place swap partitions on a SSD drive, as this may harm the device. Is this true? Can you please explain the reason to me? Because I otherwise would have thought that ...
6
votes
2answers
9k 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?
10
votes
4answers
14k 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 ...
9
votes
3answers
20k 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.
9
votes
3answers
8k 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 ...
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 ...
3
votes
2answers
4k 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
3k 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 ...
11
votes
4answers
72k 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 ...
8
votes
1answer
35k views

How to create swap partition on already installed ubuntu? [duplicate]

Possible Duplicate: Adding swap partition after system installation i have already installed ubuntu 11.04 without any swap partition. Now i want to create swap partition which should be ...
12
votes
4answers
12k 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 ...
5
votes
4answers
7k 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 ...
3
votes
2answers
3k 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 ...
2
votes
2answers
11k views

How can I fix “The creation of swap space in partition #6 of SCSI2 (0,0,0) (sda) failed” while installing Ubuntu?

Edit: Updated my question with screenshots I have a 500 GB built-in hard disk. I have 3 primary partition. C: - 100GB - Primary Partition - Windows 7 installed D: - 150GB - Primary Partition E: - ...
8
votes
2answers
8k 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
5
votes
3answers
12k 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 ...
5
votes
2answers
22k 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 ...
2
votes
1answer
13k views

Creating a swap file or swap partition on the SSD/HDD [closed]

I have Linux Mint 13 LTS which is based on Ubuntu 12.04 LTS. I installed it on my SSD and will use the HDD for data storage only. When installing the OS I skipped making a swap file/partition. The ...
2
votes
2answers
4k views

Can you use an SD card for swap in Ubuntu 12.04?

I had a smallish (4gb) SD card laying around and I was wondering if it's possible or advisable to use it as swap space. Ideally, I'd like to free up some hard drive space by removing the swap on it ...
128
votes
6answers
149k 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 ...
43
votes
3answers
43k views

How can I turn off swap permanently?

Swap makes my system all sluggish and turning it off makes everything smoother. I have 3.5 GB of RAM. I know how to turn swap off by entering sudo swapoff -a in the terminal, but that's just for the ...
19
votes
1answer
20k views

zram vs zswap vs zcache Ultimate guide: when to use which one

What the hell are they? how are they different (I've written my understanding in an answer below) In the Zswap system, when a page is evicted from the zswap to the actual swap is it stored in a ...
33
votes
7answers
58k views

How do I disable swap?

I have some sensitive data in ram that i prefer not to be on disk. How do i disable swap? I have more then enough ram. If ram gets too high i have no problems with processes being terminated. How do I ...
2
votes
1answer
5k views

Install Ubuntu 15.04 with full disk encryption, but without swap partition

I have a laptop with 16GB of RAM, but SSD is only 64GB. I need to install Ubuntu 15.04 with both standard options - "Encrypt the new Ubuntu installation for security" and "Use LVM with the new Ubuntu ...
26
votes
7answers
56k 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" ...
12
votes
6answers
4k 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: ...
9
votes
2answers
8k views

How can I enable zswap?

Ubuntu 13.10's release notes mention that it includes Linux 3.11, which supports something called zswap: Zswap is a lightweight, write-behind compressed cache for swap pages. It takes pages that ...
4
votes
1answer
7k views

How to partition a small SSD alongside an HDD when installing Ubuntu

There is both a HDD and a 24GB SSD in my Ultrabook. I will install Windows (for testing in feature, as its free in university) in the HDD. I need to decide what to do with Ubuntu, as its the system ...
9
votes
4answers
15k 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 ...
8
votes
1answer
2k views

Why is swappiness=10 recommended?

A value of swappiness=10 is recommended in Ubuntu's SwapFaq. Why is a value of 10 is recommended rather than swappiness=0? Are there any pros of 10 or cons of zero?