Swap space is a virtual memory of RAM. It is used when the amount of RAM is full. Swap space can be a dedicated swap partition, a swap file, or a combination of swap partitions and swap files.

learn more… | top users | synonyms

1
vote
5answers
2k views

Linux - Move partition from back of disk to the front for performance

Hard drives have faster performance at the beginning of the platter (see zone bit recording). According to an answer to "What is the purpose of multiple swap files?", you should put your swap ...
0
votes
1answer
104 views

Swap size LIMITED to RAM size

I've created a swap file of 4.3GB. Made it a swap file with mkswap and then mounted it at boot. Now... if I have done a free -m of my system I got: total used free ...
2
votes
1answer
731 views

Why does swapon take ages when enabeling a swap file?

I've created a swap file with dd if=/dev/zero of=swap.img bs=1024k count=4k mkswap swap.img swapon swap.img While this works, the swapon command takes ages (approx 10min) to finish. Enabling the ...
1
vote
2answers
2k views

How to activate swap on Linux? “swapon -a” doesn't seem to work?

My computer has quite some memory (6GB) which is enough for most of what I do. A while back I was messing with my swap, turning it on and off with sudo swapon -a and sudo swapoff -a. In then end I ...
1
vote
1answer
116 views

Swap and Root: same partition

I have 3 partitions, and I can't delete any of them. (Recovery, SYSTEM, C:), and I need to install GNU/Linux. How can I have swap and root on the same partition?
7
votes
1answer
950 views

How can I encrypt the swap file under Windows 7?

Mac OS X has the ability to use "secure virtual memory", meaning that anything from RAM that is swapped out to disk is encrypted. This improves security by making sure no passwords / keys are ever ...
1
vote
4answers
247 views

Why is my system swapping if there is free RAM available?

I have a KVM host running several virtual machines. The hardware is comprised of 24 cores w/ 40G of ram. This is the output of the free command: total used free ...
1
vote
1answer
1k views

Can't enable swapping in mac os x 10.8.3

some time ago a disabled swap. I need to enable it now and i was not managed to do it with help of sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist & reboot ...
1
vote
1answer
297 views

On Centos 6.3, why do several swap measuring methods return different results?

I have a production system running centos 6.3 with 96 Gb RAM and swap of 2 Gb. The intention is that there is enough RAM on the box so that no processes should get swapped. Over the last week or so ...
12
votes
2answers
249 views

Is it possible to hint Windows to bring a process completely out of swap

Is it possible to hint the Windows virtual-memory-manager to bring a particular process out of swap? The situation I often find myself in is normally using about 50% of my RAM for all the normal ...
7
votes
2answers
2k views

Does the 4 GB RAM limit on 32-bit systems also affect the swap space?

It is well known that 32-bit systems can only handle 4 GB as maximum amount of RAM. Under Linux, does this limit also apply to swap partitions? If my RAM + swap exceeds 4 GB, will it be fully used? ...
2
votes
1answer
125 views

Linux swap robustness and/or mirroring - kernel 3.2

i have 8x 2TB disks in raid6 with mdadm and I decided to add a little "slack" partition to each drive just in case a replacement drive is not exactly the same size of the drives i now use. The purpose ...
3
votes
1answer
2k views

Windows 8 pagefile on usb FLASH

Not duplicate :) Windows 8 hides usb flash drives in the list of virtual memory drive list. The picture taken when I installed 2 usb flash drives but they are not in the list. Any body knows the ...
9
votes
3answers
224 views

Swapfile on different drive

Is it worth to spend money on a small capacity HDD (~5-20 GB, very cheap though) to use it as swapping area for the OS? I do believe it will increase the OS performance , or maybe SSD (still ~5-20 ...
1
vote
2answers
783 views

Is it possible to mount a swap partition into a directory?

I want to have a look inside the swap partition of an external linux drive. How can I mount it as a regular file system directory? I tried mounting it via mount -o loop,offset=35556433920 -t ...
4
votes
1answer
172 views

What happens when you try to hibernate but there is not enough swap available?

I have a Linux box with a swap partition of size RAM + x. Suppose more than x of the swap is already in use. Now I try to hibernate. Will the kernel randomly kill sleeping and/or not sleeping ...
2
votes
1answer
273 views

Should I use the openSUSE installer to encrypt /swap until ecryptfs is updated to work with systemd?

I recently installed openSUSE 12.3. I didn't use any partition encryption in the installer. Immediately after the install was complete, I installed ecryptfs-utils and ran ecryptfs-migrate-user -u ...
1
vote
1answer
157 views

Is ecryptfs-setup-swap persistent?

I have what I think is a quick question: Is running ecryptfs-setup-swap on a system that didn't have home-directory or swap encryption enabled when it was installed persistent? The man page at ...
3
votes
1answer
191 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my ...
19
votes
2answers
2k views

Linux Mint doesn't boot after creating a swap partition

When I was creating my Linux hard drive, I skipped creating a swap partition, thinking that 4GB would be enough RAM. Now, I think I do need a swap partition. I asked some people on IRC how to do this, ...
2
votes
3answers
4k views

Swapon failed: Invalid argument on a Linux system with Btrfs filesystem

What's wrong with this sequence of operation, running on a Debian Squeeze system with a Btrfs filesystem? $ dd if=/dev/zero of=swapfile2 bs=1024 count=524288 $ sudo mkswap swapfile2 $ sudo chown ...
6
votes
4answers
4k views

What happens when linux OS out of RAM and no swap

What happens when linux OS is out of RAM and no swap is available?
0
votes
3answers
3k views

How can I find out the size of a swap partition?

What are the sizes of the following swap partitions? root@pc:~# swapon -s -v Filename Type Size Used Priority /dev/sda5 ...
-1
votes
1answer
516 views

set up permanent ramdisk in ubuntu to not using ram when is the ramdisk empty

My laptop running Ubuntu 12.04 has 8GB RAM. I added following record to /etc/fstab tmpfs /media/ramdisk tmpfs defaults,noatime,mode=1777 0 0 What exactly does it mean? I have tested that I can ...
1
vote
2answers
164 views

Turn off swap for single program. Windows 8

Can I turn off using swap for single program? Visual Studio for example. Or set high priority of using memory by this program?
0
votes
4answers
124 views

Partitioning a Linux based system

I am using Linux Mandriva OS. During installation my friend suggested 2GB for the swap partition and the remainder as the root partition. What is the use of providing a separate space for root? ...
0
votes
1answer
83 views

Can I temporarily swap out my new MacBook hard drive with the old one?

I recently upgraded my standard hd to an ssd. There are some files on the old one that I still need to access. Can I simply swap the current one for the old one temporarily? Just to email off some ...
2
votes
2answers
471 views

Too Much Swapping, even though RAM is ~75% Empty

I have a VPS with 9GB RAM, 300GB HDD, 3 GB Swap, 7 Cores. The OS is CentOS 5.7 Final. I have postgres9.0 running on my machine, with proper tuning done (at least by book/wiki of PostgreSQL). What ...
1
vote
1answer
436 views

How to create an encrypted swap partition in Debian 6?

I am installing Debian and would like to set up the /swap partition as encrypted. I am able to select either encrypted physical device or as swap/swap. Are there any methods to create an encrypted ...
3
votes
1answer
455 views

How do I prevent my computer from freezing when it starts to swap?

I work as a Java programmer, so I often have to run several programs at the same time that consume a lot of memory. When my memory is full and Linux starts swapping, my computer almost completely ...
1
vote
0answers
57 views

possibility of swap space has larger data in it than in my physical memory

Quoting the Deployment Guide from centos.org that is, Swap space in Linux is used when the amount of physical memory (RAM) is full. And that Wikipedia also said that, the term "swap" [is ...
0
votes
2answers
1k views

Why using swap file over a SMB/NFS mounted filesystem is not possible in Linux?

I'd like to use another machine's unused RAM as swapspace for my primary Linux installation. I was just curious about performance of network ramdisks compared to local (slow) mechanical hard disks. ...
4
votes
1answer
278 views

swap rule 1.5 *memory= swap still valid [duplicate]

Possible Duplicate: Why should the size of the swap partition be double of the RAM size? Does the rule of 1.5 *memory= swap still apply in these days where systems can have32 GB of memory. ...
5
votes
1answer
330 views

How can I use a remote machine for swap space?

I have two Linux boxes, one of which doesn't have much RAM or disk space. How would I go about setting up a swap file on the second machine for the first to use?
3
votes
2answers
362 views

More RAM than motherboard supports using ram disk + swap?

I want to put 6GB of RAM in a motherboard that supports 4. I heard something about using the excess RAM as a RAM disk and formatting that partition as SWAP, but that doesn't seen like it will work. I ...
6
votes
1answer
2k views

Confused about Windows 7 64-bit page file with SSD

I followed this advice to get Windows to use more RAM and less paging. To be honest, I'm a total noob to all this page file stuff. I've always just assumed that Windows was using the 8 GB of ram I ...
1
vote
1answer
595 views

Mount /tmp on swap in Linux

I have seen this before ... the /tmp directory mounted on swap space. I am aware something similar can be done using tmpfs, but I don't think that what was being used. I too would like to mount /tmp ...
0
votes
0answers
76 views

Forcing suspended jobs to swap all memory in Ubuntu

Is is possible to suspend a job and force all of its memory to swap? I've got six jobs running, and they're competing with each other for resources. So much gets wasted on system swapping that they ...
0
votes
1answer
2k views

New Ubuntu 12.04 install doesn't have swap working

This is a brand new Ubuntu 12.04 installation on my netbook. During installation I selected to encrypt my home folder. Now I'm trying to set up hibernation, but my swap partition isn't working. ...
3
votes
1answer
3k views

controling tmpfs memory usage

Any way to limit the amount of RAM used by tmpfs wihtout limiting the amount of swap? Most documentations says that tmpfs' size option will limit the total size of the tmpfs partition and later on ...
19
votes
4answers
17k views

Why OS X use swap when there is lots of “inactive memory”?

I am using OS X from few months (Lion and now Mountain Lion). I have 8 GB on my mini and almost daily now it get close to that. On Windows 7 machine with 8 GB I never had that kind of problem. Anyway, ...
2
votes
1answer
694 views

My Ubuntu laptop swap cache to disk freeze my system

My laptop is Thinkpad x220, 4G ram, harddisk is 7200rpm, installed with Ubuntu 12.04, using Unity desktop. When I open eclipse and chrome, they eat about 2G memory. Here is the free -m result: ...
2
votes
2answers
1k views

Linux zram (compcache) + SwapCached

I have a question about zram + swapcached. I know that zram is a compressed swap in memory, but linux use it's own internal SwapCached area to store recent swap pages also in memory. I have a 512MB ...
0
votes
2answers
2k views

How much swap space needed for 4GB RAM [duplicate]

Possible Duplicate: Swap partition size for 4GB RAM For 4GB RAM how much swap space needed ? If I made 8GB as swap space, weather my system become slow ? If so then what is the reason for ...
0
votes
1answer
819 views

How to see whats eating my swap space on linux

I have a unique situation here where a Java app I wrote is choking when it forks and creates some child processes. According to the error logs I'm seeing there is a java.lang.UNIXProcess method ...
1
vote
1answer
580 views

Replace 60GB solid state drive with a higher capacity one [duplicate]

Possible Duplicate: Move smaller hard drive to partition on a larger hard drive restore a smaller hard drive 320GB image to a larger harddrive 1TB I have a 60 GB solid state hard drive on ...
-1
votes
1answer
119 views

RamFS over sshFS as swapspace

Guys I have to computers at office, boxA - 256mb RD-ram with decent cpu boxB - 1.5 gigs of ram with terrible cpu Network cards are 10/100 I plan to sshfs into boxB and mount a ramfs of boxB as ...
1
vote
1answer
145 views

Mount physical disk with swap included

I'm using VirtualBox and a virtual hard disk, formatted as a swap partition, for booting a virtual machine with a USB key. The guest machine is Ubuntu 10.04. I realized that there's no swap partition ...
0
votes
1answer
2k views

Windows 7 Hard fault / Page fault and memory bottleneck

Windows 7 resmon displays 0 hard faults. But perfmon shows pagefault around 60 and perfmon /report tells me my system swaps actively. AFAIK not every page fault is hard fault: page could be stored ...
4
votes
4answers
1k views

'cache swap' filesystem for SSD/HDD combo?

As we all know, Solid State Drives (SSD) are expensive ($/Gb) but they are quick to access. I'm wondering if there exists a sort of software-kernel-level 'cache swap' filesystem technology; the idea ...