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)

3
votes
1answer
920 views

Command for swap info in HPUX itanium and HPUX PARISC?

I need to get commands for swap information in HPUX (both Itanium and PARISC) somebody please help.
3
votes
1answer
880 views

Solaris swap allocation with mlocked shared memory

I'm having a hard time understanding how Solaris 10 x86 swap allocations work in the presence of mlocked share memory. I wrote a small program that: Gets a 1G SHM segment (shmget) Attaches it to ...
3
votes
1answer
493 views

What are the advantages of swap on a raid-1 (mirror) device?

What are the advantages of swap on a raid-1 (mirror) device? (in a server environment running linux) I mean, you can just use multiple disk devices in linux for swap. And with swap devices that have ...
3
votes
2answers
39 views

What does it mean exactly when a processes “Time” has stopped in top?

I'll be looking into why we're getting critical swap alerts, and I'll find something like: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 14683 user1 30 10 16.0g 772m ...
3
votes
2answers
494 views

Java process, swap (/proc Solaris10) memory highly utilized

How can I analyze high swap memory utilization of Solaris 10 for Java processes?
3
votes
1answer
70 views

When is swap triggered or how to calculate swap_tendency?

I'm trying to use Redis for production services and trying to avoiding swapping, which is bad for performance. I had learn that swap is triggered by swap_tendency which is depending on ...
3
votes
1answer
434 views

How to stop waking all attached drives on reboot / deactivating swap?

A fresh install of Debian 6.0.6 for a system has 13 SATA drives attached. 12 refurbished WD-10EARS drives are yet unpartitioned. 1 WD1500BLFS drive is configured for OS and swap. Swap partition is ...
3
votes
1answer
295 views

Is there an in-memory compressed swap facility (like Compcache) for FreeBSD?

Is there anything like CompCache for FreeBSD?
3
votes
0answers
359 views

zram swap instability

I use Mint 13 Maya with mainline kernel 3.6.3 for Ubuntu Quantal on my Asus P53E Notebook. I use zram swap that comes with the package zram-config. I've noticed that using it the system to hangs at ...
2
votes
2answers
493 views

Does changing of the swappiness need a reboot?

If I configure the swappiness value to another, from ex.: 60 to 0, then I always need to reboot the machine to the changes to take effect? Even when modifying with: sysctl -w vm.swappiness=0
2
votes
2answers
180 views

Out of Swap - What happens?

On my debian VM machine with 512MB RAM and 348MB Swap, what will happen if i open a 1GB file in an editor and get out of memory? Will it crash the system? Or if not, how will linux handle this? ...
2
votes
2answers
71 views

Tool to force use FILE instead of RAM

I'm wondering why there is no such tool like ram2swap, similar to cpulimit in parts. E.g. There is program daemon.bin. Let's create temporary swap file ( 1 Gb ): % dd if=/dev/zero of=tmp.swap ...
2
votes
2answers
658 views

swapoff fails when overcommit_memory==2

I've disabled memory overcommitting by setting overcommit_memory=2. Now when I tried to swapoff, I get this error: swapoff: /dev/sda5: swapoff failed: Cannot allocate memory But I in fact have 0 ...
2
votes
1answer
384 views

Can't add swap file on solaris

I'm trying to add a swap file on Solaris 10. I have already created a 2GB file swap.file. Then, I add a swap file with the command: swap -a /swap.file which shows an error: /swap.file: size is ...
2
votes
1answer
744 views

KVM and swap problem

So I have a problem, I'm managing a server and the swap partition is way too small at the moment. The machine runs KVM with about 24 VM's on it. The problem is that some of them are rather inactive so ...
2
votes
1answer
1k views

Process Monitoring on Solaris

$ prstat -t NPROC USERNAME SWAP RSS MEMORY TIME CPU 164 oracle 5446M 5445M 8.3% 13:47:50 1.6% 52 root 576M 728M 1.1% 42:29:50 1.0% 1 noaccess 300M 273M 0.4% 0:20:54 0.0% ...
2
votes
2answers
482 views

Does mkswap check that a partition is a swap partition before formatting it?

I checked the man page for mkswap and was left confused whether mkswap tests whether a partition is of type 82 before formatting it. Background: I am using Ubuntu 11.04, and I had just set up my swap ...
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 ...
2
votes
2answers
401 views

Is it a bad idea to not have a swap partition on an embedded linux setup?

I have a small embedded linux kernel and file system created via buildroot that is installed onto a compact flash drive running on an x86 board. I am using an initramfs (due to power loss concerns) ...
2
votes
2answers
1k views

Does swap need to be on a contiguous LVM logical volume

I am setting up a machine to run a number of virtual machines. I am using a single HDD with a boot partition and an LVM partition. I read on the Arch wiki that logcial volumes which will be used for ...
2
votes
1answer
1k views

Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?

After reading a lot about why newer 4096 byte physical block hard drives should be partitioned taking care of alignment (Linux on 4KB-sector disks: Practical advice, What is partition alignment and ...
2
votes
2answers
230 views

How to reuse Physical memory in the absence of swapping?

How can I reuse physical memory in the absence of swapping?
2
votes
1answer
51 views

Can a VM swap to host main memory.?

While my developer machine has a lot of memory, my vmware VM is 32 bit only and needs some swap space. Can I make it to swap into the host memory? If so, is it possible to use compressed swap space ...
2
votes
2answers
87 views

Swap separation for multiple distributions [duplicate]

I have 3 Linux distributions on my machine (Ubuntu, Arch and Fedora). I allocated half the RAM size (3GB) as swap for each of them. (I have realized that having 3 distributions is not of much use to ...
2
votes
1answer
165 views

Can I remount as readonly if there's a swap image in use?

When am playing with my Android phone (CyanogenMod 10.1 with kernel 3.0.78), I found this: A script in /etc/init.d/99system.swap.sh It remount /system as rw, and creates an image file in ...
2
votes
1answer
490 views

Dual-booting Windows 7 and Mint 14 with “something else” option

I would like to do a dual boot of Windows 7 and Mint 14 on my Acer netbook which already has Windows 7 Pro 64-bit installed on an 1 TB hard drive. I have already shrunk the Windows 7 partition to ...
2
votes
1answer
588 views

tmpfs and vm.swappiness

I have started tuning a bit Linux VM performance on my system (yes. I know that vm.swappiness=0 will kill kittens but I found 30-40 as much better for me as it improved my latency - probably at cost ...
2
votes
2answers
2k views

How do I configure systemd to activate an encrypted swap file?

My previous question produced the commands to add an encrypted swap file: # One-time setup: fallocate -l 4G /root/swapfile.crypt chmod 600 /root/swapfile.crypt # On every boot: loop=$(losetup -f) ...
2
votes
1answer
1k views

Mysql / swap space full

I have MySQL Ver 14.12 Distrib 5.0.45 server running on Multiflex Intel Blade having 8G of RAM & 8 x Intel(R) Xeon(R) CPU E5410 @ 2.33GHz. The problems I am facing are: For the last 3-4 days ...
2
votes
2answers
73 views

Linux-swap on reboot

I'm wondering what actually happens to a Linux-swap partition reboot. I've been taking a course in computer organization and while installing/partitioning a new drive I became rather curious about ...
2
votes
0answers
115 views

GNU/Linux swapping blocks system

I have used GNU/Linux on systems from 4 MB RAM to 512 GB RAM. When they start swapping, most of the time you can still log in and kill off the offending process - you just have to be 100-1000 times ...
2
votes
1answer
523 views

Which processes swaps memory

I can see swap's total, used, free etc. sizes from top command. But I can't figure out which process uses swap, is it possible to find out swap memory by process? I'm running CentOS 6.3.
1
vote
2answers
198 views

Swap bash script pins htop's memory usage

I deployed a hack to add swap space to a VPS that otherwise didn't allow me to use swapon to create a file. Prior to adding and executing the script, I followed the steps outlined here. and ...
1
vote
2answers
358 views

RAM size and SWAP size

I want to know why the swap partition have to more double size the RAM Size ? for example if the ram installed in machine 64 G.B , the swap have to be 128 G.B ?
1
vote
3answers
2k views

kswapd0 takes 99% to 100% CPU in RHEL 6.3

I have 5 systems on which I have just installed RHEL6. System configuration is CPU-i7 HDD-500 GB RAM-2 GB Swap- 4 GB I have installed the same software's and all the configuration as per old ...
1
vote
2answers
34 views

KVM and Swap space

suppose the following scenario: a host with 2 GiB runs a few guests using KVM. Each guest does usually not need much memory, they are given 256 MiB each and run services that mostly twiddle their ...
1
vote
1answer
42 views

Does asynchronous disk IO affect swap usage?

I have a server application requiring usage of huge memory but can take little time. I therefore thought it should be economical to run it with a big swap and normal ram. I was reading about serving ...
1
vote
1answer
352 views

How to change swap partition from primary to logical?

I was installing Mint on dual boot with Win8 and I accidentally created primary swap partition. Is there any way I can change the partition type from primary to logical? Or do I have to delete those ...
1
vote
1answer
221 views

Turn on Swap after resize /

I resized with lvresize the swap from 4 to 2G and can't turn it on. swapon /dev/VolGroup/lv_swap swapon: /dev/VolGroup/lv_swap: swapon failed: Invalid argument lvdisplay /dev/VolGroup/lv_swap ...
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
456 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
617 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
132 views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
1
vote
1answer
494 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
524 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
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
2answers
39 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
2answers
64 views

Dynamically growing swap file on Debian

I know how to create a swap file and use it as swap. But I have to configure the size of the file beforehand and the space is used on the disk, if the swap is used or not. How do I create a swap that ...
1
vote
1answer
31 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
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 ...