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)

1
vote
1answer
1k views

Drop_caches doesn't drop caches?

Sometimes I see my swap file is a bit bigger then usual. I tried sync && echo 3 > /proc/sys/vm/drop_caches to no avail. But when I tried swapoff -a it takes a bit longer but the swap file ...
1
vote
1answer
494 views

Is there a way to kick kswapd and make it swap out pages?

Even though I have set swappiness to 100 and enabled swap, nothing is being swapped out. This is probably because I don't have high memory pressure at the moment. For testing purposes though, I want ...
1
vote
1answer
712 views

What is excessive swapping

This post led me to ask that question. Cache contention On a large site, if you are using MyISAM, contention occurs in the database tables when the cache is forced to clear after a node ...
1
vote
1answer
75 views

Why does mouse and keyboard freeze when Linux swaps

I have noticed that under Linux, when there is heavy swapping, the mouse cursor freezes, and even CapsLock or Ctrl+Alt+F1 don't work. The system uses the deadline I/O scheduler but this should not ...
1
vote
1answer
77 views

Fastest and Safest way to increase Swap Space on Scientific Linux

Memory Swap Ratio Company System Today, a monitoring system indicated that one of the systems in the company has run out of memory. Executing htop on this system indicated that the Memory was nearly ...
1
vote
1answer
342 views

Swap partition in LVM?

I was wondering if putting the swap partition into a logical volume group has any drawbacks (e.g. performance), or would it be "just the same" as having it as a separate primary/logical partition? I ...
1
vote
1answer
1k views

Log from oom killer

I'm running a virtual machine at a provider where you pay for everything you use (CPU, memory, disk IO, bandwidth, etc). Currently my machine has 512MB ram and 1GB swap area. The kernel version is ...
1
vote
2answers
740 views

Can linux systems on multiple virtual machines share the same swap partition? [duplicate]

I'm trying to save some disk space between multiple systems and re-using the same swap partition (which seems to be fine). I'm now getting into multiple virtual machines and am thinking of a ...
1
vote
1answer
2k views

Debian hibernate problem PM: Swap header not found

I have Debian 6 2.6.32-5-amd64 on netbook. With pm-utils Sleep works but hibernate fails with error: PM: Swap header not found!. Swap was enabled using ubuntu tutorial after installation - this is ...
1
vote
1answer
1k views

How to re-enable hibernate in Kubuntu 11.10?

After making some changes to my swap space, namely deleting and recreating swap space, my Kubuntu 11.10 has lost hibernate functionality. Although the button has returned, hibernating only appears to ...
1
vote
1answer
61 views

OpenBSD runs out of memory, while not using swap space

I'm working with a fresh install of OpenBSD (5.6 amd64). I'm attempting to build Boost libraries, and quite a few compilations are failing with cc1plus running out of memory errors. I've read ...
1
vote
1answer
45 views

When the RAM is used up, what will happen?

When I ran ImageMagick's convert to convert and combine image files into a pdf file, it will create 10GB temporary dirs and files in /tmp. I am not sure if it did that all the time, or because my ...
1
vote
1answer
102 views

Diagnose high swap usage on AIX

Which would be the best approach to diagnose high SWAP usage on an IBM AIX 6.3 machine? I've already tried with lsps -a and lslv. But also I'm looking for a strong scenario, like using topas. Any ...
1
vote
1answer
51 views

Why do I need mkswap if swap space has been created via fdisk?

I created a partition called /dev/sda3 as a swap partition, and changed the ID to 82 (Linux Swap) via fdisk. If this partition was recognized as a swap partition (seen in the output of fdisk -l and ...
1
vote
1answer
189 views

How to enable swap accounting for memory cgroup in Archlinux?

On my Archlinux box I want to limit some applications to a smaller amount of memory using cgroups. Since I use swap, I need to account memory+swap. How can I enable swap accounting?
1
vote
2answers
118 views

Allocation of Swap in 64 bit UBUNTU 13.04

I have 256GB ssd drive, 32GB DDR RAM, and 1TB HDD. What is the maximum limit of Swap memory that can be set in SSD?
1
vote
1answer
41 views

Is zswap eligible to reduce swap IO?

Does zswap compress pages, that are written to the swap device? Is it eligible to reduce swap IO?
1
vote
2answers
3k views

free / top difference. Does free show virtual memory?

free -m shows me the following in my system: total used free shared buffers cached Mem: 3954 3842 111 0 248 2585 -/+ ...
1
vote
1answer
284 views

Swap Utilization Increase with Oracle Coherence

We are using Oracle Coherence on linux servers. However, we noticed that because of Coherence processes running, often our swap utilization % increases too much, sometimes becoming more than 98%, even ...
1
vote
0answers
13 views

Http taking all swap [closed]

I have a dedicated server running centos&cpanel with 2 GB of ram where I host several websites. All are wordpress + 1 opencart. Every 2 days or so the swap memory get consumed and server load ...
1
vote
0answers
50 views

Does the debian setup with lvm also encrypt the swap partition?

I'm planning a fresh debian install on my notebook and want to have full disk encryption. But I mainly hibernate, which is why I want my swap to be encrypted as well. During the graphical expert ...
1
vote
1answer
148 views

full disk encryption (including swap, possibly plausible deniability as well)

I'm looking for a method to encrypt my laptop including the swap partition. I also read trough older similar questions but mostly the answer included just a what not much of a how. (Currently I'm ...
1
vote
0answers
80 views

Swap appears to not be in use

(I am currently using Ubuntu 14.04 LTS, GNOME environment) tl;dr How can I force more memory swapping (swappiness already at 100)? I have recently been experiencing a lot of system freezes/crashes. ...
1
vote
0answers
95 views

Swap on video ram in a VM

I have a very small VM running in a cloud with only 512 MB ram. I read, it is possible to use the video card as swap as descriped here: Graphics cards contain a lot of very fast RAM, typically ...
1
vote
0answers
110 views

Xeon Phi swap from host's tmpfs

I want to use swap on Xeon Phi (mic0) using RAM from the host On the host: # free -m total used free shared buffers cached Mem: 129022 60312 ...
1
vote
1answer
225 views

Increasing swap space without reinstallation

I'm running Fedora 20, and I forgot to change my swap size allocation during installation. I have 16G of RAM, so I'd like to allocate 32G of swap space. The install created a swap for me, of only ...
1
vote
0answers
16 views

How to ask for a password to mount crypted swap at boot time on Linux Mint 16 with initramfs-tools? [duplicate]

I use encrypted home folders on my notebook, which prevents use of hibernation on standard setup, because - and for a good reason - besides encrypting the home folder with ecryptfs, it reformats the ...
1
vote
1answer
96 views

Copy of full swap file is empty

I use a swap file (/mnt/swap). The swap works right. I need to get an access to the data stored in. When it's full of data in some part (which I can see typing "free" in terminal), I copy the file to ...
0
votes
3answers
691 views

swap partition and its laws

I remember for choice of swap partition, we should use (swap > 2xRAM) at least.Of course it deprecated , because max of computer's ram is very high. kernel support it. My question: i remember each ...
0
votes
3answers
463 views

How much swap space should I use? [closed]

What rules should I follow to determine how much swap space my linux-based computer should have today?
0
votes
1answer
446 views

LinuxMint, unable to set swap partitions to equal priority

I only recently realised that you can specify multiple swap partition, spreading them across drives. Well that's great for me as my desktop system often uses swap space and I have three different ...
0
votes
1answer
152 views

Arch installation and swap partition

to install Arch on a PC I have to make partition of the HDD boot swap / The swap is used by virtual memory, right? What's up if I make a too small or a too big swap partition? Could I have as ...
0
votes
2answers
76 views

Swap not mounting

I have just installed SolydX (Debian based) onto a laptop with the following specs: -Toshiba Tecra A4 -800MHz Centrino CPU -nVidia 6600 GPU -512MB RAM After installing Conky to monitor my system, I ...
0
votes
3answers
4k views

Create swap partition after install

I already have parititon contain data under lvm enviroment with centos 5.8 output of fdisk -l root@server [~]# fdisk -l Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, ...
0
votes
1answer
923 views

What does m represents in VIRT column using TOP command

When we run top command it shows all the processes information. But under VIRT column there is m written against some values what does that m represents, is it MB . If yes then why it is only showing ...
0
votes
1answer
51 views

What is the difference between MAC OS X “Virtual Memory” and Linux/Unix Swap? [duplicate]

I would like to understand the difference of MAC OS X "Virtual Memory" and Linux/Unix Swap. I ask this because I observed that MAC OS X "Virtual Memory" seems to work way more efficient (in desktop ...
0
votes
1answer
62 views

Opening files of size larger than RAM, no swap used.

I found myself asking this question while doing small experiments and reading upon how memory is managed in Linux. I have a 64-bit Centos 6.5 machine with 512M RAM and 1G SWAP. I created a 1GB file ...
0
votes
1answer
71 views

Sanity check/cleanup for swap — essentially mkfs.swap

Occasionally I'll have a system crash or be forced to do a cold reboot. Upon rebooting I will get a kernel crash. Get out a rescue disk, rebuild swap, then everything boots fine. The thing is that I ...
0
votes
1answer
401 views

swappiness and RAM usage

Been going through this topic - http://askubuntu.com/questions/157793/why-is-swap-being-used-even-though-i-have-plenty-of-free-ram. Turned down swappiness to 10 and then to 0 but my installation is ...
0
votes
1answer
107 views

How to migrate files on Linux from HDD to SSD on a VDS

I upgraded my Dedicated Server and I was having problems finding my SSD. I found out how to MOUNT my SSD. I now have my 100 GB HDD and now 20 GB HDD. [root@server /]# mount /dev/xvdb1 /ssd ...
0
votes
1answer
72 views

Something happened to Swap; it is not used by default

I always have to go to gparted and then turn my swap on. The swap space isn't used by default and if I turn the swap on, the swap is not used! How can I make the swap space be used by default at boot? ...
0
votes
1answer
480 views

Swap space not used

I recently installed Debian 6.0.6. Here are the machine's states: CPU - AMD XP 3000+ RAM - 1 Gig HDD - IDE 80 Gig I primarily use this machine for developing toy personal projects. When I run ...
0
votes
1answer
942 views

Zram does not start at start-up

I am using pinguyos 11.10. Pinguyos is a variant of Ubuntu 11.10. I have installed zram like this: sudo add-apt-repository ppa:shnatsel/zram sudo apt-get update sudo apt-get install zramswap-enabler ...
0
votes
0answers
35 views

Detect whether a swap partition is in use by a hibernated system

Is there a way to detect whether a swap partition contains the memory of a hibernated system? More specifically: suppose I have a Linux installation and that I hibernate it. This means that all the ...
0
votes
0answers
30 views

unlimited tmpfs

How to have the advantages of tmpfs and not be limited to its small size? I'm thinking of a shell script that runs as a daemon, monitors RAM and adds more swap files in specified folder, when memory ...
0
votes
0answers
28 views

Is there anything in RHEL 6.5 that would affect I/O speed for something <24K vs >24K?

Generally, transactions for my app of setting and getting data internally are measured in a couple of millis. However, over 24K in size, that time can jump to just over 100 millis. Is there anything ...
0
votes
1answer
196 views

Extending swap on Centos

I recently created a swap file on my centos 6 based VPS using this guide. Now I wanted to extend this swap and I was reading through this guide. However, I think I've created a swap file than a ...
0
votes
1answer
58 views

Is there a way to prevent SWAP from collecting cached data?

Here is the following info: Do I need more swap? No, disk caching only borrows the ram that applications don't currently want. It will not use swap. If applications want more memory, they ...
0
votes
1answer
670 views

How to recover from a boot hang after deleting old swap?

I did a fresh installation of Fedora 20 in the free space of my hard drive after failing to upgrade from the older version. Everything seems to be working fine until I deleted the partition containing ...
0
votes
1answer
41 views

HDD indicator blinks when I run out of memory, but I have no swap configured [duplicate]

I'm running Arch Linux, with 8 GB memory and no swap defined. Sometimes it ran out of memory, then my system get a little bit stuck, and I can see the HDD indicator blinking. Then I restart X, which ...