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
116 views

even if we have enough RAM space, why OS will use SWAP memory? [duplicate]

from the above pic, you can see we have 3191 RAM free, but at the same swap is also using about 661 bytes. why it is occurring ? can any give a glance regarding this. Thanks
1
vote
2answers
797 views

How to create Swap in Fedora?

I am new about swap and filesystem. Now I encounter a problem: 2G ext4 disk /dev/sda7 # Want to be used as swap in fedora 24G ext4 disk /dev/sda8 # My fedora is built on it without Swap As ...
1
vote
2answers
155 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
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
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
670 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
1answer
182 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
280 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
79 views

What does it mean to have a swap partition mounted at /dev/null?

I ran swapon -s on a VPS that I’m using and discovered that there’s a swap partition pointing at /dev/null. # swapon -s Filename Type Size Used Priority /dev/null partition ...
1
vote
1answer
43 views

swap file vs partition

I needed some more swap for something I'm doing so I set up a swap file rather than editing partitions. Are there any disadvantages to using a swap file instead of a swap partition? My OS is ...
1
vote
1answer
28 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
121 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
586 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
844 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
278 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
719 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
736 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
18 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
170 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
1answer
465 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
626 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
147 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
490 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
649 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
167 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
0answers
15 views

vim leaves a swapfile after crash with unknown owner

I am running Cygwin on windows. Several times now I've had a swap file left behind from vim after a crash, but it can't be recovered or deleted. "ls -l" shows this: -rw-r----- 1 Unknown+User ...
1
vote
3answers
60 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
82 views

Ubuntu swap not mounted half of the time

I have about 8 different ubuntu systems using different versions of ubuntu/lubuntu/kubuntu/mythbuntu/etc. Some are physical machines, some are virtual. The issue I always have is that upon booting up, ...
1
vote
0answers
210 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
0answers
387 views

What is the exact difference between the parameters (pgpgin, pswpin) and (pswpout, pgpgout) in /proc/vmstat?

Please note that this question is specific to linux only. And by swap space, I mean the dedicated swap partition. I did google a bit on this, and found these definitions: Paging refers to writing ...
1
vote
1answer
82 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
653 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
63 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
79 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
55 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
308 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
2answers
167 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
58 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
323 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
486 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
238 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
368 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
241 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 ...