Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory(RAM) and the ...

learn more… | top users | synonyms

0
votes
0answers
34 views

Linux process resident + buffers + cache + free less than total

We are using Ubuntu 12.04 on real hardware: $ uname -a Linux test-precise-03 3.13.0-85-generic #129~precise1-Ubuntu SMP Fri Mar 18 17:38:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux And are unable to ...
0
votes
2answers
22 views

Are there any risks I'm not considering for when a swap partition fails?

I'm planning to setup 4 drives in a raid10 configuration, but putting separate swap partitions on each (no raid), and letting the kernel do something similar to raid0. When/if one of the drive fails ...
2
votes
0answers
58 views

Linux swap partition not mounted by systemd on boot after dist-upgrade

Recently, I performed a dist-upgrade from Debian Wheezy to Jessie. The upgrade was performed without any error but after the upgrade the swap partition was no longer mounted/activated. The mentioned ...
1
vote
0answers
61 views

Linux swapping blocks system (freeze)

I have a problem with my Debian Servers. We run 4 different server which all have Intel CPUs and 128GB of RAM. Two of them run Wheezy, two of them run Jessie. We run a Java software on those systems ...
14
votes
5answers
2k views

How to get the Linux OOM killer to not kill my process?

How do I get the Linux OOM killer to not kill my processes when physical memory is low but there is plenty of swap space? I have disabled OOM killing and overcommit with sysctl ...
0
votes
0answers
58 views

Swap partition not mounted on boot

I'm having issues with a fresh SLES12 install and swap not mounting. It's a DL360 G6 server with P410 and 2x 146GB drives in RAID1. The single /dev/sda has MBR with sda1 for swap and sda2 for ext4 ...
0
votes
2answers
31 views

Why takes CLEARING swap soo long?

Why is moving from RAM to swap fast and from swap to RAM very slow? When I run program that needs more memory that is available, I see that the RAM is prety quickly "cleaned" by moving unsused (=the ...
1
vote
1answer
44 views

Linux hibernate: how to specify a swap partition to store data if I have two?

We can specify the swap partition to load data from when recovering from a systemd hibernation using kernel argument resume=/dev/xxx. However, I didn't find any command-line or kernel argument to ...
1
vote
2answers
54 views

Implications of increasing physical ram of VM

I have a Centos7 VM running under VMware and I'm considering increasing virtual memory in the Centos VM. Currently my VM has 8GB of virtual memory, 6GB of swap and using 0 swap right now. I am ...
0
votes
0answers
24 views

mixed storage types for swap

My shop utilizes mixed storage types for swap. We have limited fast virtual ram drives and more abundant cheaper slower disk space, all on the same system. I can prioritize the order in which the ...
0
votes
1answer
31 views

New Swap Drive - Linux Hangs during Boot

An application checked the swap space during install and required it to be the same amount as ram. So i added a new disk (Server is a VM) and done the following: swapoff /dev/mapper/ol-swap vgcreate ...
3
votes
1answer
176 views

Docker using huge amount of swap memory on Ubuntu 15.04, why?

I am suffering from excessive memory usage, currently amounting to ~940 MB physical and ~1 GB swap memory, on my Ubuntu 15.04 x64 Docker (1.9.1-cs2, build 4ade326) host. According to top, Docker is ...
1
vote
1answer
97 views

Centos clear swap usage

I got nagios monitoring and it is picking up high swap usage on a specific server. The user is using some application which triggers the high swap. Even after they quit the application, top still ...
2
votes
2answers
291 views

Linux swap not used, even when OS run out of memory

The swap is at low usage, and the OS sometime run out of memory and start scarifying processes swapon -s Filename Type Size Used Priority /dev/vda1 ...
2
votes
0answers
122 views

Ubuntu Server 15.10, process not being allowed to use all physical memory, kswapd0 using 100% CPU

I have a 24-core server with 64G of DRAM, and it's running Ubuntu Server 15.10. I am getting some strange behavior with respect to swapping and physical memory use. I never had this trouble until I ...
1
vote
2answers
439 views

Linux Swap used is higher than total [duplicate]

I found a bizare think on my server. The swap used is significantly higher than the total swap. free -m total used free shared buffers cached Mem: 1869 ...
2
votes
0answers
419 views

Avoiding swap on ElastiCache Redis

We have been having ongoing trouble with our ElastiCache Redis instance swapping. Amazon seems to have some crude internal monitoring in place which notices swap usage spikes and simply restarts the ...
1
vote
2answers
57 views

Server using swap with plenty resources left

I have a Centos 7 with a swap of 256 MB. I have at least 1GB o free RAM memory all the time and my CPU never gets over 60% of usage. But anytime I check the swap use it's using about 200 MB! My ...
0
votes
1answer
120 views

KVM hypervisor swap

I've had my first CentOS 7 KVM host setup for about a year now, it is a dual quad-core machine with 32GB of physical memory. I have a dozen VM's running with a total allocated memory of 23GB. This ...
4
votes
2answers
457 views

Is it safe to store a swap-file on the Temporary Disk on Azure?

I've got a virtual Linux server running on Microsoft Azure. The machine has a disk /dev/sdb1 mounted to /mnt. This folder contains a file DATALOSS_WARNING_README.txt with the following content: ...
-1
votes
1answer
91 views

Is there a way to make /tmp mounted as tmpfs to use only swap? [closed]

I have a swap of 64 GB SSD. So is there a way to make /tmp mounted as tmpfs to use swap alone and not use RAM?
1
vote
1answer
3k views

“Lack of free swap space” on Windows Server

I have several Windows Server 2012 Virtual Machines, which are monitored by zabbix 2.4. The zabbix throws "Lack of free swap space" for some VMs, but there are disk and memory free on these machines, ...
0
votes
0answers
55 views

CentOS file size (file lost after download if bigger than 2 gb)

I have a problem with I download file with my server and upload on my server. It's a server, centos 64 bit 16gb ram x cpu 4 core x2. If I try to download for example test file, if test file is lower ...
1
vote
1answer
162 views

How can I maximize the memory usage of a single Windows process?

I have a system with a large amount of memory. Right now, to prevent a single application from paging, I've disable the paging file completely. The issue that I'm running into is that I cannot ...
1
vote
0answers
507 views

ATOP: vmcom / vmlim -> SWP is red

in ATOP I'm getting a red alert like this: vmcom 76.3G | vmlim 49.8G This is a value that is attached to the "SWP" (so "SWAP" is meant?)-line. What does this mean and what can I do against it?
-2
votes
1answer
80 views

Increasing swap on RAM-limited VPS used for calculations [closed]

I'm using a VPS for some computationally heavy tasks but not to host a publicly-facing website. The author of the application I'm using recommends running the jar with 8GB of RAM, but adding those ...
0
votes
0answers
184 views

mysql swap file crash on freebsd

I have a low memory VPS that mysql and the swap file crash out every morning at exactly 0300. There are no cronjobs on the system that have been configured. The server is a basic LAMP development ...
0
votes
1answer
35 views

What happens when the swap folder on your harddrive is full? [closed]

So this is an "what if" question. It may not happen that often, but I am just curious what happens if it would exactly happen. So in short a computer needs space somewhere to store different thinks ...
-2
votes
3answers
184 views

how to check how much memory take process

As all know in Linux machines we have RAM memory and swap memory. My first question is: What the reason that the swap memory is increasing – because high level of RAM usage or something else? ...
4
votes
3answers
3k views

kswapd often uses 100% CPU when swap is in use

Most of the time when my computer starts to need swap, I see a massive spike in CPU usage (kswapd0 is consistently using 99%-100% CPU). According to top, the time is spent in sy (system/kernel) not wa ...
5
votes
3answers
602 views

Swap being used when RAM is almost half free

Today I noticed that I found the following thing: As you can see the RAM is almost half-free and the usage of swap space is very high. From my textbook knowledge, I used to think that Linux OS ...
2
votes
1answer
44 views

How do you know when server memory needs to be increased?

I have a VPS running a few websites for clients. Running free -h shows the following: ~$ free -h total used free shared buffers cached Mem: 994M ...
0
votes
0answers
30 views

Using instance storage for swap on Redhat 5 running in AWS?

I'm running a Redhat 5.11 server in AWS. I can configure swap to use instance storage (/dev/sdc), but every time the server restarts I have to reconfigure the swap. Adding an entry to fstab doesn't ...
0
votes
1answer
55 views

Trouble with SWAP on AWS

I created an AWS m3.large instance. It comes with a single 32GB SSD. During the creation process, I added a second drive for the system. I picked the second drive for the system: xvda1 and the ...
2
votes
3answers
2k views

Best way to disable swap in linux

I am running a custom compiled 3.18.9 kernel and I am wondering about the best way to disable swap on the system. I also use init if it makes a difference. Is it enough to comment or remove the swap ...
1
vote
0answers
147 views

(mysqld), uid 88 inumber 281675 on /: filesystem full

I created a swap file that was a little to big. So I deleted it. The swap file is gone, but the free space is never reallocated. I have rebooted, fdisk is no help, not sure where to go from here. The ...
1
vote
1answer
158 views

Forcing a user to use swap space after certain memory usage (using limits.conf?)

I have a backend app that is being used internally by developers hosted on our server, however, the app unfortunately requires the use of Passenger and Ruby, both of which are very memory-hungry. I ...
1
vote
0answers
245 views

Docker memory swap account broken in ubuntu 14.04.2

I'm using ubuntu 14.04.2 . I saw that recently swap support was broken, maybe with a recent kernel upgrade? On a fresh install: cat /etc/default/grub: ...
1
vote
0answers
69 views

How to copy locked swap files in ESXi?

Based on this question : How to disable swap files in ESXi?. The main answer states that it is possible to extract data from the swap files (for exemple using strings) so I tried to make a simple ...
-3
votes
1answer
95 views

Does swap on 32-bit OS with 4 GB make sense? [closed]

Does having swap space makes sense if I have a 32 bit OS (Linux) and 4 GB RAM already? As it would have to be addressable with a 32 bit address, which are already all "used up" by the RAM, would ...
0
votes
1answer
175 views

Get rid of \040(deleted) swap

By mistake one of our admin on a production machine, deleted the swap file from the system. Without swapping it off. Now we are getting this. /swapfile3\040(deleted) file ...
0
votes
1answer
2k views

Solaris: how to list swap space per process?

On Solaris, how can I find out how much swap space a given process is occupying? Or even better, how can I list all running processes sorted by swap space usage? I'm asking this particulary for ...
0
votes
3answers
241 views

Why wouldn't I want to enable swap?

I recently had an issue where a rogue process caused some ec2 instances to run out of memory and crash. It probably shouldn't have been an issue, except I was using t2.small instances which are pretty ...
1
vote
0answers
70 views

make linux kernel read swap back into memory [closed]

Occasionally, I run a script that uses the majority of the 16GB of physical memory on my workstation. The kernel then swaps out the rest to swap partitions on multiple disks. After the script is ...
1
vote
1answer
289 views

How do I increase the swap size on a xen guest machine using xm?

I'm attempting to increase the amount of swap on a xen guest machine. At first I thought it'd be similar to increasing the hard drive space, which I do like this: cd /srv/xen/domains/$host/ xm ...
2
votes
1answer
144 views

Swap 99% but regular memory fine

I have a 1GB VPS server. I setup 1GB of swap ram too a few weeks ago and quite often it's hitting 99% whilst the regular memory is usually 40% - 60%. Most of my sites on the server run fine and fast. ...
0
votes
1answer
332 views

how to swap VM disks in azure?

I've have recreated a virtual machine in azure, when I did it azure assigned an OS disk to the VM which is normal and obvious, and I have a disk from my previous virtual machine. for now I got two ...
1
vote
1answer
1k views

Ubuntu Server 14.04LTS Swappiness for server with 16GB memory

(don't worry I'm not asking what my setting should be, asking for the theory behind some conflicting advice I've read) My application is one that is lightweight and not under much load, but needs to ...
0
votes
1answer
108 views

Run app only in swap [closed]

I've a very low priority level program who consume large of memory. I need to free RAM for other programs. My objective is to kill -STOP <pid> this process and ```kill -CONT when i need it. But ...
-1
votes
1answer
198 views

Swapfile on SSD and Memory Speed Comparison [closed]

I'm running Ubuntu on Digitalocean's instance that using ssd as their disk, and I'm using swapfile to help memory does the job. What I wanna know is, how can we compare speed between ram and the ...