Swap space is an area of the hard disk that serves as an overflow when the computer memory is full. The memory used by inactive applications is partially written out to disk to make room for other applications and for the disk cache for active files.

learn more… | top users | synonyms (1)

2
votes
3answers
2k views

How is paging managed in the absence of swapping?

How is paging managed in the absence of swapping. If that is the case, how will a page fault be managed? What I meant is, if there is no availability for swapping, then how is Paging managed. I ...
10
votes
1answer
544 views

What happens to data in swap when your computer hibernates?

When a computer goes into hibernation mode, it saves the contents of the RAM into the swap space so that it can resume exactly where it left off when it powers back on. So, what if you are currently ...
4
votes
6answers
7k views

What is the use/meaning of 'swap area' while linux installation?

When i installed ubuntu in my x86 machine, I had to configure some memory as 'swap area'. What is the use of this memory and what is the importance of this memory in linux file systems? How can I ...
9
votes
1answer
7k views

swapon: Operation not permitted

I'm running this as root, obviously. I've created a file called /swap/sw1, by dumping 512 megs of /dev/zero into it. I then ran mkswap, which said: Setting up swapspace version 1, size = 524284 KiB ...
81
votes
7answers
23k views

Why use swap when there is more than enough free space in RAM?

Using swap space instead of RAM can drastically slow down a PC. So why, when I have more than enough RAM available, does my Linux system (Arch) use the swap? Checkout my conky output below: Also, ...
19
votes
3answers
6k views

Why does Linux use a swap partition rather than a file?

It seems to me a swap file is more flexible.
10
votes
1answer
8k views

How to test swap partition

I'm trying to diagnose some random segfaults on a headless server and one thing that seems curious is that they only seem to happen under memory pressure and my swap size will not go above 0. How can ...
8
votes
3answers
546 views

Why does it makes sense to cache swap?

It sounds quite counter-productive to me to cache pages that are swapped out. If you swap pages in, what is the advantage to first cache them in memory, only to have to than move them to the right ...
5
votes
3answers
1k views

How can I tweak the kernel for total swap out?

I would like to deploy the following swapping policy: By default all pages in memory should also be in swap space. When a page in memory is changed (i.e. dirty), the page should be written out as ...
25
votes
12answers
3k views

How can I tweak my Linux desktop to be more responsive?

I have the experience that Linux works fine until the physical memory is exhausted. As soon as swap space is used the performance is severely degraded and the GUI becomes unresponsive. This problem ...