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

32
votes
5answers
35k 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 ...
95
votes
18answers
44k 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 ...
19
votes
2answers
24k 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 ...
55
votes
1answer
93k views

How do I configure swappiness?

I need Step by Step, simple and easy way to configure swappiness.
8
votes
2answers
10k 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 ...
8
votes
1answer
8k 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?
20
votes
4answers
3k 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 ...
3
votes
2answers
4k 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 ...
55
votes
5answers
22k 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. ...
22
votes
2answers
22k 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 ...
10
votes
4answers
8k 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 ...
21
votes
5answers
7k 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?
7
votes
2answers
6k 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.
5
votes
3answers
7k 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, ...
5
votes
1answer
1k views

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

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 ...
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 ...
14
votes
3answers
12k 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 ...
6
votes
3answers
10k 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.
4
votes
3answers
8k 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 ...
20
votes
4answers
991 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 ...
27
votes
8answers
31k 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 ...
13
votes
4answers
7k 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 ...
6
votes
2answers
4k 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 ...
7
votes
2answers
4k 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 ...
5
votes
1answer
3k 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
4answers
6k 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 ...
3
votes
2answers
8k 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
11k 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
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 ...
1
vote
2answers
3k 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
2
votes
2answers
139 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
2k 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 ...
2
votes
2answers
2k views

How to recover data from formatted swap?

I am using Ubuntu 12.04. I have 4 partitions of hard disk. 1st of 43 GB contains Windows 7, 2nd (43 GB) and 3rd (32 GB) contained valuable data and 4th of 42GB contains Ubuntu. Now, while installing ...
0
votes
1answer
1k views

How to set swap in /etc/initramfs-tools/conf.d/resume if I have two swap partitons?

I have two swap partitions in fstab : /dev/sda8 none swap sw,pri=1 0 0 /dev/sdb8 none swap sw,pri=1 0 0 How to set swap in ...
15
votes
5answers
16k views

How do I use zRam?

I installed zRam as described on webupd8.org. I installed it from the terminal. Is that all I have to do or do I have to do some configuration or something? Does the zram-enabler do everything by ...
10
votes
4answers
2k 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: ...
11
votes
3answers
2k views

Is the swap partition encrypted?

Selecting the encryption option at install time to encrypt the home partition. Does this enable encryption of the swap partition or is the swap partition unencrypted. If the swap partition is ...
9
votes
6answers
3k views

Swap shoots to 100% after a couple of hours of usage

For some reason or another, my swap usage will peak to 100% capacity after a couple hours of usage. My interface will then freeze, after which I have to wait 20 minutes time to be able to even move ...
6
votes
4answers
20k 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 ...
5
votes
1answer
2k 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 ...
3
votes
2answers
3k views

Should swap and RAID-1 mix?

I have a box with a small RAID-1 array being used for swap space. I only did this since I was setting up mirrors for every other partition in the system. Today I read this question and it prompted ...
3
votes
3answers
3k views

Deleting Unused Swaps Partions

Good evening everyone , I got a little issue with Swap Partitions. Due to some issues after installing Ubuntu first time, I reinstalled it and now I have 3 Swaps. Here is sudo fdisk -l result Disk ...
2
votes
2answers
2k views

Changing swappiness in sysctl.conf doesn't work for me

I'm using 12.04 LTS and can sudo sysctl to set swappiness to 10, but adding vm.swappiness=10 to sysctl.conf doesn't work for me - after I reboot, swappiness still reports 60 (default) I'd like to be ...
1
vote
2answers
889 views

partitioning suggestions

Today i am going to install a clean ubuntu 12.04 . Right now i am running windows 7 home premium 64 bit. I am going to dual boot ubuntu. Also i am using a 120 gb ssd. My question is can you help me to ...
6
votes
2answers
458 views

How to configure how much RAM usage should to start swapping on Ubuntu

I always notice that Ubuntu start using swap, as soon as the RAM usage is around 60-70%. How to configure it so it should wait so RAM usage became 80-90%. And is there a way to empty the swap, as soon ...
3
votes
2answers
1k views

How do I create a swap partition for hibernation?

While installing Ubuntu 11.10 a months ago I had not allotted any swap space, I now came to know that there would be no Hibernate option without Swap space. Is it possible to do it Now?, What if the ...
1
vote
1answer
635 views

Unable to resume from hibernation on boot- restarts instead of resuming

After fiddling around a lot with Rhythmbox and Banshee one day, I had to xkill them and logout a few times, and I think I remember seeing some error message asking for the keyring. I entered my ...