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

0
votes
1answer
33 views

Linux swap slowing my system?

Can swap really slow the system because it uses the hard-disk as a RAM unit ? I have Fedora 24 (Gnome) here with 8 gigabytes of swap and 6 gigabytes of ram , but i am noticing a very bad conditional ...
2
votes
1answer
12 views

swapoff failed: Invalid argument

I recently found that every time I shutdown/reboot my machine, there will be an logged error which says swapoff failed: Invalid argument. Jul 22 21:09:02 Frederick-Kubuntu systemd[1]: Stopping Update ...
7
votes
2answers
2k 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 ...
3
votes
1answer
291 views

Is it safe to share a swap partition with more than one Linux OS?

I have one swap partition, and 3 installed Linux OSes. So I'm just wondering, are there any safety risks or potential problems that can come about as a result of having all 3 OSes use this partition? ...
0
votes
0answers
12 views

Cannot Find ~/.profile, Only ~/.profile.swp (OSX)

I am in the process of installing Homebrew, but, when I go to edit ~/.profile, I am finding that only the binary file ~/.profile.swp exists. I have been reading about swap files and trying to better ...
0
votes
0answers
23 views

OOM kills and swappiness for IoT devices with eMMC and SD storage?

I experience an occasional Out-of-Memory (OOM) kill from the compiler on BeagleBoards, CubieTrucks, etc. They are IoT devices, powered by ARM, generally have 512 MB to 2 GB of RAM, and use 4 or 8 GB ...
3
votes
2answers
2k views

How to use compcache for Linux 3.2 (Debian Wheezy)

How do I set up and configure compcache for Debian Wheezy (3.2 kernel). As far as I can understand compcache is now in the kernel and is not to be found in the debian repo either. Compcache should be ...
1
vote
0answers
46 views

Linux Mint Swap partition

I've recently installed Linux Mint as a secondary OS to my laptop which already had Win 10 installed. I could only add one partition for Linux Mint and install Linux Mint without the swap partition ...
1
vote
0answers
28 views

How to control when and how much Ubuntu uses swap memory?

I am running Ubuntu 14.04 guest virtual box on Windows 7 host. Recently, following instructions here, I created a 7GB swap on my Ubuntu guest which has been running super-slow on 3.6GB RAM with no ...
6
votes
3answers
14k 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 root:...
1
vote
2answers
164 views

What is faster: Intel's Optane SSD or RAM?

Time ago here was a question about speed comparison between SSD and RAM. So, RAM was much faster. It's ok. But Intel announced huge speed update with Optane SSD's. So, and probably we should try to ...
4
votes
2answers
4k 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 ...
0
votes
0answers
24 views

Why swap isn't in use ennough on my system

I have Debian GNU/Linux 8.4 (jessie). I have this output of free: olga@olgacomp:~$ free -h total used free shared buffers cached Mem: 2.0G 1.9G ...
7
votes
4answers
4k views

Why should the size of the swap partition be double of the RAM size?

Why is it recommended that the swap partition size be double that of the RAM size? Specifically, why would I need to store data stored in the RAM twice??
3
votes
2answers
3k views

Any performance gain by putting Windows Pagefile.sys onto an Software RAID-0 Striped Volume?

I have a workstation class laptop running 64bit Windows-7 with 8GB-RAM (expandable to 16GB) and Dual SATA2 7200rpm disks. I know my system will be making heavy use of the pagefile since I will be ...
1
vote
1answer
2k 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 ...
0
votes
4answers
6k views

Windows 7 Virtual Memory Optimization - ReadyBoost vs. Flash Swap vs. RAM Disk?

At first i thought ReadyBoost means having swap file allocated to flash drive which is wrong because ReadyBoost serves as additional storage for swap file or should i say it mirrors swap file on hard ...
2
votes
3answers
5k 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 ...
2
votes
2answers
44 views

What happens if you just unplug swap drive from running system?

I'm running heavily leaking apps on server which have already swapped out about 60gb of garbage in their over 100 days uptime. At the point when I've run out of swap for the first time (32gb) I ...
1
vote
1answer
150 views

How to create swapfile on ssd disk with btrfs

I have SSD with btrfs, I tried creating a swapfile like: dd if=/dev/zero of=swapfile01 bs=1M count=10240 mkswap swapfile01 chmod 600 swapfile01 swapon swapfile01 In dmesg I see [238434.731654] ...
0
votes
0answers
14 views

Swap mounts according to fstab, but with priority other than expected

My /etc/fstab looks like this: UUID=881b584c-9e25-41e6-b3f7-31753ba63188 swap swap defaults 0 0 UUID=d29ab744-5520-42fb-9b61-8eb582a66005 / ext4 ...
0
votes
1answer
1k views

dell xps 13, is it possible to swap ctrl and fn keys in bios?

This question was marked as a duplicate to a question about how to remap keys in the OS. This is not related to my question. Although most keys can easily be remapped in this way the fn key is ...
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 ...
33
votes
2answers
9k views

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers?

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers? (If it does so at all). Background: Throughout a semi intense seminar I was taking notes in an unnamed/unsaved MacVim buffer ...
1
vote
1answer
50 views

Linux swapping too much

My Linux (Mint 17.2) computer has 4 GB of RAM and 8 GB of swap partition. I have swappiness set to 10 instead of default 60 and it works perfectly, sadly only for some time from start up. When I ...
0
votes
0answers
36 views

How to check Paging Memory on swap for Windows, via command line?

On Windows operating systems, we use the Resource Monitor to check the memory paging for my server. I need to check it via command line so I can put in my standard script to check and create text ...
3
votes
2answers
3k 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 ...
0
votes
0answers
10 views

Proc filesystem: Diskstats

Heey i was looking through /proc/diskstats And noticed something "odd" in my eyes. As you guys can see i have a lot of ram devices. Could someone explain why there are so many of them? According to ...
0
votes
0answers
58 views

Swapping to increase cache?

I am using a server with 128 GB RAM. While running some job I see frequent swap usage. The out put from top top - 05:14:51 up 16:52, 2 users, load average: 3.99, 5.16, 5.37 Tasks: 760 total, 1 ...
0
votes
0answers
153 views

Is it possible to create a swap file for a Linux guest VM managed by Vagrant?

In my Vagrantfile I have the following provider defined: Excerpt from Vagrantfile: config.vm.provider :virtualbox do |vb| vb.gui = false vb.customize ["modifyvm", :id, "--memory", "4096"] end ...
79
votes
12answers
54k views

Should I keep my swap file on an SSD drive?

I'm considering getting an SSD drive to run as the primary OS partition. As I understand, this should provide a substantial improvement in performance. My question is this: Should I leave the swap ...
1
vote
2answers
394 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
0answers
94 views

What kswapd is doing when there is no swap

The top look like this: KiB Mem : 3989652 total, 30976 free, 1480440 used, 2478236 buff/cache KiB Swap: 0 total, 0 free, 0 used. 2276236 avail Mem PID USER PR NI ...
6
votes
6answers
3k views

Should I use a SSD or HDD for “swap” on an old computer

Introduction Let's imagine some environment where the speed is not a factor. In my case I am using a really old computer for a "server" with a lot of stupid things ( personal lab ). It is more ...
3
votes
0answers
86 views

How to load entire process memory from swap quickly (linux)?

I run a bunch of CPU-hungry processes in parallel, they normally use a few GB of memory each. From time to time they allocate large amount of memory too (say 150-250GB). Usually at most one of the ...
1
vote
1answer
35 views

Swap operations and boot are much slower in Windows than in Mac OS

I have a MacBook Pro 15" Late 2011, where I have installed Windows 7 and Mac OS Lion in dual boot. I have disabled Windows Pagefile because I have installed 16 GB RAM. I cannot figure out why ...
0
votes
0answers
20 views

Monitor Linux per-runtime swap statistics

I've recently upgraded a low-end notebook from HDD to SSD, and, since there's only 700MB of RAM and no option of upgrading, I need to use that SSD as a swap drive, too. Since SSDs have a limited ...
1
vote
1answer
58 views

Does dual boot linux need two swap partitions?

My harddrive is partitioned as follows. I used GParted to gather this info. /dev/sda1 ---- ext4 ---- Ubuntu /dev/sda2 ---- extended ---> /dev/sda5 ---- ext4 ---- Kali ---> /dev/sda6 ---- linux-...
0
votes
0answers
33 views

how does a process know it's pages have been swapped out?

Let's assume I have several processes running, a1 and a2. a2 takes so much space that physical pages belonging to a1 start to get swapped out. a1's page table has to be modified to reflect this. how a ...
1
vote
1answer
880 views

Mount: unknown filesystem type 'swap'

I'm running vanilla Debian Jessie and I need to enable swap file. It works fine when I use swapon /var/swap.img but I'm unable to make it mount with fstab at boot time. The following entry in fstab: ...
1
vote
1answer
56 views

Is it possible to manually send programs to virtual memory in windows?

If you have many open programs and your machine is going too high on memory/cpu utilization you might want to close a program without loosing its state (sending it to virtual memory) and then resume ...
0
votes
1answer
49 views

How to tweak Windows swapping priority (if there is some?)

Sometimes I open a program that allocates too much memory - i.e. computer has 0.5 gb free ram, and an application requests 1gb. In this case, it will start swapping so it can fulfill the request. ...
3
votes
1answer
3k views

How permanently change Linux swap disk priority

I’m using two swap disks. Changing the order they are in in /etc/fstab and using pri in fstab doesn’t seem to have any effect. This is what it looks like in the /etc/fstab: #swap on other disk UUID=...
0
votes
0answers
33 views

How to clear swap used on CentOS?

top is showing very high swap used. Which is causing nagios to throw alerts. I've tried running swapoff -a && swapon -a sync; echo 3 > /proc/sys/vm/drop_caches but it doesn't clear the ...
0
votes
0answers
217 views

How make Fedora load every thing that was in RAM before hibernation into RAM again after wake up?

I use systemctl hibernate to hibernate my (Fedora 22) system. After reboot, It doesn't load everything into memory (Lot of memory stays on the swap) even though I have more then enough RAM for it. ...
0
votes
0answers
44 views

How to tell how much swap a Windows process actually uses?

In Windows 8.1 x64, I'm running a VBox machine that is configued to use 5200MB RAM. The host OS has 16GB of RAM, however often the other open programs add up and fill up the memory. My theory is that ...
1
vote
1answer
67 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 Unknown+...
1
vote
2answers
331 views

Move swapped data to memory on a Mac?

I want to move the swapped content to my RAM. I currently have 6800/16384MB RAM and 241/1024MB of swap used. In Linux one could execute this command to disable and enable the swap to force move the ...
8
votes
4answers
5k views

How to enable linux swap partition?

I've got a swap partition, but the System Monitor in Linux Mint says, 'Swap not available'. I guess I've forgot to set 'Use as: swap' on install. How to fix this?
0
votes
0answers
160 views

How to Logically Swap Fn and CTRL keys in Lenovo E40-80 i5 Laptop?

How to Logically Swap Fn and CTRL keys in Lenovo E40-80 i5 Laptop? As Physical swap is not possible due to key size difference. I have tried the possible methods like looking at BIOS, as suggested by ...