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

2
votes
2answers
29 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
35 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
8 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 ...
1
vote
1answer
32 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
23 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 ...
0
votes
0answers
7 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
37 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
24 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 ...
0
votes
0answers
31 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
73 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
34 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
18 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
43 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 ---- ...
0
votes
0answers
30 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
474 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
41 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
44 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. ...
0
votes
0answers
24 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
206 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
42 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 ...
0
votes
0answers
117 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 ...
1
vote
2answers
225 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 ...
0
votes
1answer
29 views

is it necessary to create swap partition while installing RHEL?

I'm a newbie to RHEL.I've installed RHEL 7 using VMware .but,during the installation ,it asked me to create Swap partition and i created it worth 2GB. please brief me the reasons.what if the swap ...
1
vote
0answers
46 views

How to limit swap usage?

I want my computer to automatically hibernate when the UPS switches to the battery, so I need enough free swap space at any moment. But if I activate the swap partition, even right before the ...
0
votes
1answer
89 views

Permanently increase swap size?

I'm using these commands to increase swap size (on existing swap): dd if=/dev/zero of=/.swapfile bs=1M count=1024 mkswap -v1 /.swapfile swapon /.swapfile It does increase, but after server reboot, ...
1
vote
1answer
36 views

Empty swapfile after using dd

According to many tutorials available on the internet (like for example this one https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 ), to generate a swapfile, i need to ...
0
votes
0answers
36 views

Prevent KDE from swapping

I've realized that my laptop was overheating as a result of lots of I/O, so I searched for the programs who used swap, and I found the following: $ pgrep kwin 13387 $ pgrep plasma-desktop 13424 $ cat ...
0
votes
1answer
953 views

Do I need to worry about over-provisioning? Can swap be used for this purpose if it is not being used?

I am running Linux Mint 17. I'm posting this on Superuser rather than Unix & Linux because this probably isn't a Linux-specific question. I was thinking of buying a SSD but a ~250GB drive will be ...
1
vote
1answer
63 views

Should a Linux Swap partition be on the RAID?

When setting up a new system, if I am planning on mirroring two hard drives, what should I do with the SWAP area? I can think of three things I can do... Do a mirror of the SWAP partition Stripe it ...
1
vote
1answer
52 views

how to check how much memory processes take?

As we know in Linux machines, we have RAM memory and swap memory. My first question is: What is the reason that the swap memory is increasing – because high level of using the RAM memory or ...
1
vote
1answer
713 views

What is swap and how to disable it on Ubuntu/Linux

I've read it many a times online that swappiness should be decreased or disabled. Is it so, what does it do? I have 2GB of Ram, should I disable swappiness?
2
votes
0answers
359 views

Debian extremely slow resume after hibernate

I have a very irritating issue with my Debian 8: resume after hibernate takes from 5 to 10 minutes. During resume time system shows me picture on a display but not respond, cursor are not moving, ...
-1
votes
1answer
1k views

How do I know how much swap is used on Windows 7?

Apparently, as per Commit charge is 100% full but physical memory is just 60% when using no page file and http://brandonlive.com/2010/02/21/measuring-memory-usage-in-windows-7/, the Commit numbers in ...
0
votes
1answer
54 views

What's the total amount of memory and swap a process is using?

http://windows.microsoft.com/en-us/windows/what-task-manager-memory-columns-mean#1TC=windows-7 If I'm reading correctly, there is no way to see how much swap is used by a process. Is this correct, ...
0
votes
1answer
77 views

Can a filled up swap partition cause file locking issues on linux

I have a machine at home running elementary OS 0.2 with very little RAM, the swap is always allmost full (I'll upgrade the RAM as soon as I can.) It has an OpenSSH server set up with public key ...
1
vote
0answers
973 views

Is it possible to make a swap space(partition) in windows 8.1 like linux?

I'm using alot of ram on a daily basis and I know you have swap partitions in linux to help this, is it possible to do in windows 8.1 and if so, how? thanks
0
votes
1answer
94 views

Windows 7 Swapping Threshold

When physical memory jumps to 80%, the RAM starts swapping itself to pagefile. How to increase this 80% threshold to say 90% ? I have 4GB of RAM which means the swapping starts when 3.2GB of RAM is ...
1
vote
0answers
50 views

Is it a bad idea to make a swap partition on a SSD?

Since it has limited amount of read/write cycles, it seems to be a bad choice but I have no solid reasoning on why or why not to use it other than that.
2
votes
0answers
224 views

OpenWRT and USB write cycle limit

Background (feel free to skip) I am currently usin OpenWRT at home. I have an external HDD connected to router's USB port for the network shared storage. Actual transfer speed from the HDD to the ...
0
votes
3answers
510 views

Linux server is running out of memory and swap

I guess there is some memory leakage and memory is not being freed. Is there some good ways to find out which process and why is leaking memory? The only temporary solution is to restart server. But ...
0
votes
1answer
78 views

Where's my RAM disk being stored?

I'm running an Ubuntu VM under Windows 7, within the VM I've allocated a 5GB RAM disk using sudo mount -t tmpfs -o size=5G tmpfs /mnt/gitRAM and then copied files into it. When I then look at conky ...
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 ...
0
votes
1answer
200 views

linux not using swap, but OOM killer is triggered

I've been having this problem for a long time now, and I can't seem to figure it out, basically, my linux (32bit 3.2.6-3.fc16.i686.PAE) system is refusing to use the swap. When I run $ tail ...
1
vote
1answer
65 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 ...
0
votes
1answer
174 views

What’s eating almost all memory and swap in this Linux machine? (not buffers/cached-related)

I have a Linux machine that reports almost all of its memory and swap are in use, yet I can’t identify any processes using a significant amount of memory on the machine. We are running Linux kernel ...
1
vote
1answer
2k views

How do i increase my swap partition size in Ubuntu?

I had a 2 GB RAM before. So When i installed Ubuntu i just gave 2 GB for Swap partition. Now I Had increased my RAM capacity to 4 GB . How can i increase my Swap capacity to run my OS smoothly? Please ...
11
votes
3answers
1k views

Does it matter about the amount of the swap area in Linux system

Does it matter if the amount of a swap area in Linux was set too small (say 1Gb), and the main RAM is 128Gb? Should we always set the amount of swap area to be twice the amount of RAM? UPDATED: Hi, ...
1
vote
1answer
595 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 ...
2
votes
1answer
717 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 ...