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
2answers
111 views

When is swap memory useful? Why do we need to set it to twice the amount of RAM? [duplicate]

I know that memory will be swapped whenever RAM usage is high. And I read that we need to set swap to be twice of the amount of RAM. But why? How will it shift from RAM to swap? If we do not have swap ...
1
vote
1answer
1k views

What is the difference between swap entries in fstab?

I've been looking around and seen two different things ways to declare swap in fstab. I've seen something like the line below: UUID=UUID-HERE none swap sw 0 0 and UUID=UUID-HERE none swap swap 0 ...
1
vote
3answers
639 views

Will increasing swap partition size increase the memory that can be used by a program?

I have a program that requires a lot of memory. So much that the malloc fails as the system goes out of memory. I don't care if the overhead for swapping pages in and out of the disk is too high - I ...
1
vote
2answers
3k views

Why won't Ubuntu use swap?

I'm running 32-bit Ubuntu 10.04 on a 4-core AMD Phenom machine with 4GB of RAM. With normal use (a dozen or so Chrome tabs, 1 VirtualBox machine, 2 or 3 instances of QtCreator, ) the memory will ...
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 ...
1
vote
1answer
177 views

What does the messsage "Adding *k swap on …' mean?

I have the following message in the syslog on some machines: Adding 8385920k swap on /dev/sda3. Priority:-112957 extents:1 across:8385920k What does it mean? Is it a problem? And why is this ...
1
vote
1answer
273 views

What type of data is stored in the swap partition?

When a page fault occurs, the system must fetch the page from disk. Does this mean that there is a page table stored on the hard drive for every running process (to fetch the page from)? If yes, ...
1
vote
3answers
3k views

How to stop swap process in OS X?

How would I prevent OS X even looking for a swap file? I killed the swap file on my MBP. This is dead easy: just change the default swap file location so the system can't find it (goto ...
1
vote
1answer
23 views

How can I change the amount of data copied back into RAM when resuming in Linux?

Normally when I shut down my computer I hibernate. On the next boot I then resume. My problem is, that it seems that Linux just copies the least amount of data that is needed back into ram, because ...
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?
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
vote
1answer
62 views

Additional swap created on a new partition gets removed on reboot

I have created a new swap volume using logical volume management tool on RHEL. Suppose the volume is /dev/rootvg/swap2 I did mkswamp /dev/rootvg/swap2 and then swapon /dev/rootvg/swap2 when listing ...
1
vote
1answer
769 views

Linux Virtual Memory/Swap isn't being used

I think my virtual memory is not configured correctly on my MintLinux machine. I opened up a new IDE, IntelliJ IDEA, and my whole system appeared to freeze. I tried to TTL to the console but that did ...
1
vote
4answers
275 views

SSDNow100VS2 Page File (Windows 7) [duplicate]

Possible Duplicates: How to control RAM / swap usage Should I keep my swap file on an SSD drive? I just put an SSDNow100VS2 into my laptop, with Windows 7 Ultimate 64, and 4GB of ram. I'm ...
1
vote
3answers
699 views

Memory and SWAP in Ubuntu

When I go to the system monitor in Ubuntu, about 75% of the Memory is used and 45% of Swap is used. Why is the Swap used even when Memory is available? Doesn't Linux move data from Swap to Memory?
1
vote
1answer
716 views

linux swap disk priority

Let's say you have two swap disks, set up like this: swap1: priority = -1 swap2: priority = -2 Is this going to be any different from the following setup? swap1: priority = 47 swap2: priority = 10 ...
1
vote
1answer
17 views

Bind Solaris 10 swap file

I have created an Oracle swap file to enhance my swap space. I have to do this for a Oracle Client installation. After creating swap file i Run the swap command to specify the additional swap space ...
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 ...
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 ...
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 ...
1
vote
1answer
460 views

Do Linux swap partitions need to be cloned?

I'm in the process of cloning my hard disk in order to test some unstable software. One of the partitions is Linux-swap. From my understanding, it can be used by the os as additional ram. So this ...
1
vote
1answer
645 views

Page file on a separate partition in Windows

I have recently rebuilt my computer (Windows 7 Pro 32bit), and am in the process of paritioning my hard drive. My question is, is it beneficial to make a separate partition for the page file, rather ...
1
vote
1answer
159 views

How can I get vim to set an ACL on its swap files?

I use vim on an OS X Snow Leopard Server machine. A number of the directories I work in have ACLs (so that various groups of users can access them over AFP) that are inherited. For some reason, when ...
1
vote
3answers
3k views

tweak windows 7 virtual memory and cache / caching settings

im on windows 7 64 bit, with 4gb of memory whenever i copy or deal with a big ammount of data, windows swaps out everything from memory to the virtual memory swapfile, to make room to data cache. ...
1
vote
3answers
40 views

Move swap contents back to the RAM once there's free memory

So I understand that swap mem is used when computer runs out of space on ram. Once there is available space in the memory how can I move contents of swap to ram so taht it doesn't slow me down?
1
vote
0answers
144 views

Should the CPU usage go up to 100% when swap happens on Linux

I had been running a demo system on Linux with the following kernel: 2.6.32-400.1.1.el5uek #1 SMP Mon Jun 25 20:25:08 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux And as soon as swap happens, the CPU ...
1
vote
1answer
74 views

When memory is swapped to disk, and later RAM is freed, does the memory get swapped back into RAM?

I'm guessing the answer depends on the OS. In this case, it is VMware ESXi. I created a low memory condition by migrating several VM's to a host that has memory over-committed. Once page sharing and ...
1
vote
1answer
547 views

Swap performance testing

I understand the general concept of swap memory, but I need to somehow build a program that forces the use of swap memory for performance testing and I don't know where to even begin. Basically, I am ...
1
vote
0answers
59 views

Is my swap space being over used in OS X in /private/var/swap?

I'm using Disk Inventory X to look at whats taking up the most disk space on my HD. I understand that private/var/vm/ is where the OS stores items when it goes into hibernate. I have 8GB of ram, but ...
1
vote
1answer
73 views

Windows obstinately shrinking the pagefile

I admit I have rather small free space available on my C:\ drive (only 3-4 GiBs usually, with a 4 GiB pagefile being around), but what really annoys me is this: Windows sometimes does an operation(1) ...
1
vote
1answer
52 views

GRUB recreate a partition before booting a certain OS

I am having a problem of managing the swap areas on my hard drive. Side story: Due to having only a few GiBs free on my C:\ partition, Windows regularly shrinks the pagefile (even though it ...
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 ...
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 ...
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?
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 ...
1
vote
0answers
319 views

Can't move OS X swap file to another folder, it keeps being recreated

So I followed these instructions to the letter ---> Moving the swapfiles to a dedicated partition in Snow Leopard But for some reason, the swap files keep being regenerated in the same folder. I've ...
1
vote
1answer
466 views

mount point for swap not needed

Why do we say that swap partition does not need a mount point? is it because swap is basically for virtual memory access and we don't need to view or access it so there is no need to mount it? or is ...
1
vote
2answers
2k views

Moving Swapfile in Mac OS X Lion

I had previously consulted this thread when using snow leopard to move all swap to an SSD: Moving the swapfiles to a dedicated partition in Snow Leopard The information appears to be out of date at ...
1
vote
1answer
233 views

Linux swap position on hdd

As far as I know hard drives are faster at the beginning of the disk. If this is true, why does Ubuntu put the swap partition to the back of the disk by default?
1
vote
0answers
2k views

How change linux swap disk priority permanently

I'm using two swap disks. Changing the order they are in in /etc/fstab and using "pri" in fstab doesn't have any effect. This is what it looks like /etc/fstab #swap on other disk ...
1
vote
0answers
356 views

improving swapping strategy

I'm finding linux's swapping strategy to be somewhat less than ideal. In general I have a ton of processes running, maybe 40 or more big ones, and only end up using a few regularly. Nonetheless, I ...
1
vote
0answers
235 views

swapping or trashing with vast amounts of unmapped pagecache

I'm using kubuntu jaunty (i386 32bit), kernel 2.6.28-13-generic. I've 4Gb of RAM, of which only 3317Mb are seen by the system (I guess because of the 32bit system). I'm seeing that the pagecache ...
1
vote
1answer
2k views

Would upgrading memory from 4GB to 8GB on my laptop solve swapping issues?

I have a laptop with 4GB of memory with Windows 7 on it and I often experience with Eclipse that it is swapped out to disk. On the net they usually write 4GB of RAM is more than enough for average ...
0
votes
3answers
202 views

What is better to use for big swap as an extension of RAM: SSD or 15k HDD (Cheetah)?

I need to hugely extend RAM in the platform I can't do it. As a temporary solution I want to use swap for it. What is better to use for swap storage - an SSD or 15k HDD like Cheetah? I understand that ...
0
votes
1answer
101 views

Is that true that Windows can eventually address executable files as if they were parts of virtual memory?

I've once read somewhere that Windows can treat programs' executables and DLL files as parts of swap file rather than duplicating their content into pagefile.sys when swapping them out of physical ...
0
votes
3answers
95 views

How to increase swap memory in Windows? [duplicate]

I bought a new system with 4 GB of RAM. I don't know how do I check how much swap memory I have allocated. I know that we can increase RAM physically. I want to increase swap memory on windows. How ...
0
votes
2answers
518 views

sizes of RAM, of virtual memory and of swap for 32-bit OS

If I understand correctly, a 32-bit OS (Ubuntu) can only address 4GiB memory, so RAM with size larger than 4Gib will only be used 4Gib of itself and the rest is a waste. I am now confused about this ...
0
votes
1answer
475 views

I have a Linux swap partition but how do I set it up permanently?

I have a laptop with 2GB RAM and not the funds to buy more RAM. Ever since I installed 64-BIT Mint (MATE desktop), I am using more than 1GB RAM compared to between 170 - 500MB when I was in 32-BIT ...