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

-1
votes
1answer
51 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
98 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
31 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
54 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 ...
0
votes
0answers
66 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
39 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
42 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
33 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 ...
-1
votes
3answers
112 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? ...
0
votes
3answers
351 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
194 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
40 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
26 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
44 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 ...
1
vote
3answers
277 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
86 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
59 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 ...
0
votes
0answers
152 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
63 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
64 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
0answers
154 views

understand FreeBSD vmstat output about meory

My Dell PowerEdge server has 24GB memory and 6GB swap. It has some VirtualBox vms (virtual machines), one vm is assigned 10GB memory and no swap. Right now the vm is slow, the vm's vmstat output is: ...
0
votes
1answer
95 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
483 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
146 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
53 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
122 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 ...
1
vote
1answer
85 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
224 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
732 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
90 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
132 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 ...
1
vote
0answers
47 views

Why is my server using swap even though there is lots of RAM available? [duplicate]

My server has 24 cores, 16 GB RAM, and 8 SSDs on raid 0 (I think). I've noticed it is now using a low of swap space, even though there is plenty of RAM available. load average: 2.70, 2.54, 2.50 Mem: ...
0
votes
1answer
307 views

How to enable swap with salt stack?

How can I create and enable permanent 1GB swap file with salt stack that will work after reboot? salt.states.mount.swap does not allow to define swap size. Furthermore I need to define swappiness. ...
0
votes
2answers
136 views

plenty of ram but still swapping

this is graph of my server ram you can see in graph that every time I restart mysqld, swap becomes zero. But increases over time. If i put innodb buffer pool in large size swap rises faster and if I ...
5
votes
1answer
549 views

BIND 9.10 constantly killed on FreeBSD 10.0 with out of swap space

In one of our slave DNS servers BIND, version bind910-9.10.0P2_3, constantly get killed with the following message in /var/log/messages: Jul 30 01:00:10 cinnabar kernel: pid 602 (named), uid 53, was ...
5
votes
3answers
6k views

How to increase swap space on a live server [duplicate]

On Ubuntu 14.04, the swap file has to be increased as the memory and swap usage are reaching 100% usage. On a live production server, can the swap be increased with minimal disruption to the service? ...
2
votes
2answers
300 views

Swap memory exhausting server even site has small visitors

I have CentOs 6.5 running on a 32bit VPS host. It is running only php-fpm, nginx, and mysql. I have a site that gets on average 20 visitors per day, but I am recently getting this message from my ...
0
votes
1answer
5k views

puppet logical conditions- “onlyif” and “unless” not working

I have written the following code and this works fine if swap is not in place, but once swap is created and if the script is executed again, it leads to error. I tried adding conditions using onlyif ...
0
votes
0answers
332 views

swapoff running forever on LVM volume

I'm currently trying to resize my swapspace on a Proxmox VE server with LVM volumes, as I'm running out of space for LVM snapshots and the swapspace is fairly oversized: root@rb-srv-gus:~# free -m ...
0
votes
1answer
221 views

lvresize: command not found - RedHat

No search results on google for this. So i am really confused now. I am trying to increase the swap space and lvresize says command not found. Please Help !! using RedHat 64bit
-3
votes
1answer
184 views

Improve LAMP performance Ubuntu 12.0.4 [closed]

cpu 1.3% mem 476/490MB swap 347/511mb tasks: 43, 29 thr; 1 running load average: 0.10 0.08 0.06 via htop:<br> /usr/sbin/apache2 -k start (listed 8x @ 8.1% mem each) /usr/sbin/mysqld (listed ...
2
votes
0answers
209 views

Linux (Debian 7 x64) swapping activity despite lots of free memory

Yes, I have reduced vm.swappiness a lot: % sysctl -a | grep swap vm.swappiness = 1 Memory is mostly free: % cat /proc/meminfo | head MemTotal: 8070592 kB MemFree: 2619580 kB ...
1
vote
2answers
93 views

Why is my server swapping at all?

Munin shows ram that is doing nothing most of the time. But swapping still happens. Quite regularly actually, bogging down the hdd. Or am I seeing the ram graph in the wrong way? How would I go ...
-1
votes
3answers
107 views

Linux makes cache for swap. what for?

It looks like joke: swapfile on "ramdysk" in 64bits system? I look into file: /proc/meminfo and made some investigation. Look for line: SwapCached: nnnnn kB . One is what I don't understand. ...
0
votes
3answers
2k views

Is there any reason to NOT have a swap file on CentOS (DigitalOcean)

I'm running a site on DigitalOcean with CentOS 6.5. As has been noted elsewhere, DigitalOcean servers are by default configured without any sort of swap, and I'm wondering if I should add one. I ...
0
votes
1answer
201 views

Debian 6 - Linux 2.6.32-5-amd64 - Samba server with 32GB swap - how should i reuse it?

today i have the mission to tuning a Debian samba file server, previously i never ever touched it. RAM = 16GB SWAP = 32GB first of i ran a parted -l and a free -h and i saw one 3TB hdd: /dev/sda ...
2
votes
1answer
237 views

My Ubuntu VPS is not using available swap, even if OOM. What to do?

I recently added 1 GB of swap to my Ubuntu virtual private server to prevent MySQL crashes on RAM overloading. I followed this tutorial. I use htop to monitor resources. When I use loadimpact to test ...
1
vote
1answer
403 views

Server failure in minutes due to high httpd-apache use (attack or bug)

In the last week suddenly I get errors for my server. I try to access my website I get 503 errors. When I check top and other things I see these: 60-65 httpd (apache) processes. (Normally I have ...
3
votes
2answers
406 views

How can I keep important VMs in memory without disabling swap?

VM Host -> Xenon E5-2440 w/ 48G mem... Everything runs CentOS6.5 (2.6.32-431) I have 4 guest VMs running each w/ 2G of memory. Their disk images are local files. The host machine is also running a ...
0
votes
1answer
156 views

OpenVZ vSwap Host Configuration

I wish to allocate vSwap memory to my OpenVZ containers. Where does OpenVz get the vSwap memory from? If the host were to run out of physical RAM, would the host start to use its own normal swap ...