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

5
votes
1answer
216 views

What is swap partition

I read that the swap partition must have the double size of your RAM, that is optional to install, that is for hibernation mode only, several technical information that tells me what to do. I am using ...
0
votes
0answers
16 views

swap\pagefile of 2 levels

Lets assume I want to assign 2GB to swap(linux)/pagefile(windows) on SSD, and 16GB more on HDD. Is that possible to use the space on SSD as level 1 of virtual memory, and the space on HDD as level 2 ? ...
0
votes
1answer
12 views

make linux stop using swap

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?
0
votes
0answers
36 views

Mavericks isn't compressing memory

Specs: Mac OS X 10.9.5 | Macbook Pro Mid-2012 15" | 4GB RAM So recently I've been driving my machine to the limit with lots of bioinformatics work and didn't give it much rest. This afternoon it said ...
-1
votes
1answer
60 views

How can I use a flash drive to increase my virtual memory?

My computer has 8gb of physical memory. I'm running some memory intensive processes that quickly eat up that 8gb. When the physical memory runs out, it starts using the virtual memory and I see ...
0
votes
2answers
39 views

How to realocate space from the Swap partition to the ext4 'normal' partition in Ubuntu?

My Linux is running in a VM for which I allocated half of the physical amount of RAM (32 div 2) and 20 GB of disk space. I can see the structure of my disks. The 'linux swap' partition took 16GB. ...
0
votes
1answer
94 views

How to swap Fn and Ctrl keys on Lenovo L540

I recently got a new computer and the Fn/Ctrl keys are driving me crazy. Can anyone tell me the proper way to swap Function Fn and Control Ctrl keys on Lenovo L540?
0
votes
0answers
33 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, ...
0
votes
0answers
19 views

Know which is the biggest matrix that can be computed in MATLAB

I mainly use MATLAB for solving linear problems such as Ax = b and the eigenvalue eig/eigs one. I noticed in my current configuration (OS X, i7 2,3GHz, 16GB RAM) that I can compute without using swap ...
-1
votes
3answers
59 views

What is the swap file for?

I don't get it why is that the more RAM memory you have, the larger the swap file is. Shouldn't it be the other way around? I was under the impression that HDD space is used when there isn't enough ...
1
vote
1answer
14 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
2answers
75 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
0
votes
3answers
89 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 ...
1
vote
2answers
84 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
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
0answers
93 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 ...
0
votes
0answers
129 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 ...
0
votes
1answer
107 views

Why does my swap partition not appear in GParted (runnning Linux Mint in VMWare)?

I'm running Linux Mint 17 in VMWare. htop reports that I have a swap of size 8187MB: http://postimg.org/image/a54es37wd/ I'd like to increase this but GParted doesn't show any swap partition: ...
2
votes
1answer
47 views

Pick which swap partition to use for Suspend to Disk

Is there anyway in Linux to pick which swap partition to use for Suspend to Disk? I have a setup with 2 swap partitions, one on an SSD and one on a HDD. I want the swap partition on the HDD to be used ...
0
votes
0answers
68 views

Linux Has Become Very Slow Dealing With Large Data

Last year I bought a computer, for around $1,800, so it is relatively high-end. When I first got it I was particularly pleased at how quick it dealt with large MySQL queries, imports and exports. But ...
0
votes
1answer
252 views

why do i get swapping even if i set vm.swappiness to 0?

I have a couple centos 6.5 x64 servers with 64GB ram running lots of kvm vps's. some of these servers have no swap usage at all and some do. I've set swappiness to zero. However some still swap even ...
0
votes
0answers
37 views

Does zswap compress pages, that written to swap device?

Does zswap compress pages, that written to swap device? Is it eligible to reduce swap IO?
0
votes
2answers
331 views

Increase Performance by utilizing RAM instead of swap (Windows 8) [duplicate]

My computer is pretty fast, but I feel it may be getting slowed down by putting things in swap which would do better in RAM. I have 16 GB of ram, and even in conditions where only around 3 GB is used, ...
0
votes
1answer
107 views

I want to increase the swappiness in my windows 7

as I have 60% RAM usage every time. I have already increased Virtual Memory (Increased Swap Size) but want to increase swappiness too. see my RAM usage:
0
votes
1answer
83 views

Move swap partition

How can I move swap (sda5) partition in my Debian 7 from main SSD disk to second HDD? lsblk output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 931.5G 0 disk ├─sdb1 8:17 0 ...
1
vote
1answer
64 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 ...
2
votes
2answers
258 views

Can I use Nand flash as a swap memory in Embedded Linux?

I have 128 MB of Ram in one of my products, which was sufficient when we released first version of the product. But now we added some extra features in it, So this much Ram may cause a problem of OOM. ...
0
votes
0answers
105 views

OS-X how do I figure out is my swap file is enabled?

This may be a strange case, but I used to enable and disable my swap file depending on which apps I wanted to run. (I found that disabling the swap file when I would run Parallels made a difference. ...
2
votes
2answers
109 views

how much swap space is too much on x64 and will cause problems?

Apart from using up too much disk space, how much swap space can you allocate before it will degrade performance or cause problems on an x64 OS? What differences are there between the x64 OSes? I'm ...
0
votes
1answer
42 views

Windows page file

I'm working on some CGI and am running out of RAM as well as page file space. However I have a second drive with a little extra space I could use for swapping. I have one question: If the swap space ...
1
vote
1answer
470 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 ...
0
votes
0answers
230 views

What happens when zRam is overcommitted?

I can put whatever number I want when I set the size of a zRam block device. echo $A_BAJILLION_BYTES > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 9001 /dev/zram0 How much is too much? ...
1
vote
0answers
55 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 ...
0
votes
1answer
174 views

Use swap only for hibernation

I have a swap partition /dev/sda1. It is 2GB in size and i only want to use it for hibernating. My system has 4GB of RAM. When I am low on RAM the kernel starts swapping and I can't even switch to a ...
1
vote
1answer
70 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
51 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 ...
0
votes
1answer
25 views

How to get data shown out of workspace or directly from application?

I'm a new user, because until this moment I used to handle with everything by myself. My problem is complex so I think I chose the right section. Because of some reason I had to use another web ...
0
votes
0answers
171 views

How to verify TRIM/discard on encrypted swap?

I am using an encrypted swap partition via ecryptfs-setup-swap on my Ubuntu 13.04 computer using a SSD. I have manually set up trim for my ext4 root partition (simply by adding the "discard" option ...
0
votes
2answers
943 views

Sharing RAM resources between 2 or more computers

I know there was a somewhat similar question before: How to share CPU or RAM? But, let me just specify it a little more... When Microsoft Windows requires more RAM capacity than available it uses a ...
0
votes
1answer
357 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 ...
0
votes
1answer
142 views

Grub rescue after windows install

Disaster, Please, Help ASAP. I had a dual boot on my pc with windows xp and lubuntu linux. Then recently i had some windows errors and decided to install windows 8 instead of xp. So after i ...
10
votes
1answer
437 views

increase desktop responsiveness on linux while swapping

All GNU/Linux distributions I tested so far have the problem that whenever the ram gets filled and the system begins swapping, the whole desktop and graphical user interface becomes unresponsive as ...
4
votes
2answers
90 views

How to load entire program from pagefile quickly?

Sometimes I do not use some programs with high memory usage (e.g. virtual machine with 2 GB of memory) for several days. When I return to it, its memory is mostly swapped onto HDD. When I try to work ...
5
votes
1answer
2k views

Modify Windows “Swappiness”

Is there a modifiable equivalent of "swappiness" in Windows 7? My system has 8GB of RAM which is more than enough for my day-to-day use. I'd like to modify swap behaviour, what *NIX systems call ...
2
votes
5answers
7k views

Linux: don't create swap partition?

I was wondering since I heard that swap is used when you're out or RAM and and swapping too much is bad, since I have a lot of RAM ( 8GB ).... what if I dont create a swap partition? Also, do I need ...
0
votes
2answers
146 views

Swap is empty on Linux

How can I create or resize the swap memory on a linux device (Amazon Linux AMI). The problem came when I run a program and it gave me that errors: IOError: [Errno 28] No space left on device INFO ...
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
103 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
664 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
1k 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 ...