Questions tagged [swap]

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 swap space is the amount of virtual memory available. Linux has two forms of swap space: the swap partition and the swap file.

Filter by
Sorted by
Tagged with
1 vote
0 answers
365 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 ...
user3779430's user avatar
-3 votes
1 answer
256 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 ...
user2081279's user avatar
1 vote
1 answer
790 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 ...
tollboy's user avatar
  • 76
1 vote
3 answers
16k 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 ...
dokaspar's user avatar
  • 185
0 votes
3 answers
502 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 ...
thexacre's user avatar
  • 1,859
2 votes
1 answer
1k 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 ...
lucas's user avatar
  • 200
2 votes
1 answer
1k 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. ...
wharfdale's user avatar
  • 151
0 votes
1 answer
2k 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 ...
pedrommuller's user avatar
0 votes
1 answer
354 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 ...
bux's user avatar
  • 636
0 votes
1 answer
773 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 ...
chipz's user avatar
  • 119
1 vote
0 answers
67 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: ...
Steve's user avatar
  • 231
6 votes
4 answers
3k 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. ...
igo's user avatar
  • 413
1 vote
2 answers
1k 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 ...
Mehdi Azizi's user avatar
5 votes
1 answer
2k 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 ...
Vinícius Ferrão's user avatar
6 votes
3 answers
21k 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? ...
Nyxynyx's user avatar
  • 1,479
3 votes
2 answers
2k 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 host ...
robue-a7119895's user avatar
2 votes
1 answer
14k 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 ...
user228708's user avatar
0 votes
0 answers
2k 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 ...
etagenklo's user avatar
  • 5,904
0 votes
1 answer
2k 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
user223831's user avatar
-2 votes
1 answer
260 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 ...
Charles's user avatar
  • 41
2 votes
0 answers
260 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 ps_mem....
LetMeSOThat4U's user avatar
1 vote
2 answers
280 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 about ...
Red Balloon's user avatar
-2 votes
3 answers
801 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. ...
Znik's user avatar
  • 348
2 votes
3 answers
6k 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 ...
Jim Miller's user avatar
0 votes
1 answer
360 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 ...
Matt's user avatar
  • 103
2 votes
1 answer
583 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 ...
Patartics Milán's user avatar
1 vote
1 answer
722 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 30-...
trante's user avatar
  • 131
4 votes
3 answers
4k 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 ...
user2970347's user avatar
0 votes
1 answer
313 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 ...
jtnire's user avatar
  • 817
1 vote
2 answers
8k views

KVM under CentOS, swap exhausted, physical memory available

I've had a test CentOS KVM host running for about a week now with 3 CentOS guests. There's 12GB physical RAM with about 7.5GB actually allocated to VMs. These VMs aren't even being used yet as the ...
batfastad's user avatar
  • 466
0 votes
2 answers
375 views

Linux swap, linear write/read

i'm puzzled if linux writes and reads on swap sequentially . Now i'm analizyng pressure on swap partition and it's strange that utilisation is near 90% (util column in iostat ) but throughput is ...
aceqbaceq's user avatar
0 votes
1 answer
430 views

Why the system information message when accessing an Ubuntu server doesn't match free -m?

Each time I SSH into my AWS Ubuntu servers I see a system information message, showing load, memory usage and packages available to install, like this: Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-...
Andres's user avatar
  • 249
0 votes
1 answer
286 views

Transfer used ram to swap and free more physical ram

I have a vps with 256m physical ram and 512m swap space, I am trying to use a software that need more than 256m and less than 512m ram, so it uses swap. The problem is at some moment of the ...
Baraa Al-Tabbaa's user avatar
12 votes
2 answers
21k views

How to find what is using linux swap or what is in the swap?

I have virtual linux (Fedora 17) server with 28GB RAM and 2GB swap. The server is running a MySQL DB that is set up to use most of the RAM. After some time running the server starts to use swap to ...
Radek Hladík's user avatar
14 votes
2 answers
17k views

Ubuntu Server hanging on adding swap

A fresh install of Ubuntu Server is refusing to boot and hanging on "Adding 524284k swap on /dev/mapper/test--vg-swap_1. Priority:-1 extents:1 across:524284k I can get around this by dropping onto ...
Guest1857238673896's user avatar
0 votes
1 answer
151 views

SWAP reducing SSD write speed?

My SolusVM graphs have been showing 8Gb Swap usage even though the RAM is never over 50% used. Is it possible that virtual machines going into swap will reduce the IO of the SSD?
user3180's user avatar
  • 347
11 votes
3 answers
4k views

Background discard on swap partitions on Linux + SSD

Problem I want to enable background TRIM operations on a swap partition within a SSD disk on Linux. According to several articles, e.g. this one, the kernel detects this configuration and ...
santisaez's user avatar
  • 201
2 votes
2 answers
5k views

Moving a process to and from swap [closed]

I've got several server-type processes on my linux server that use up 50MB of RAM. They are not constantly being used, and I'd like to be able to run more instances than my RAM capacity allows. I want ...
Daniel S's user avatar
  • 415
9 votes
3 answers
8k views

How can I create a swap partition on Amazon EC2 with ephemeral storage?

This is the output of df -k: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 10317860 7059008 2734732 73% / none 847584 0 ...
Pandora's user avatar
  • 145
10 votes
2 answers
7k views

Is there ever a reason to use tmpfs instead of or in addition to zRAM?

I'm thinking about using zRam on my server. From what I've read about zRam, it apparently does everything tmpfs does and more. Once zRAM is working, is there any reason to keep tmpfs around? Is there ...
David Cary's user avatar
-7 votes
1 answer
108 views

Am I having too much swap? [closed]

Am I having too much swap space if my server is a 8GB physical ram and I would like to set my swap to 16GB. I am planning to use this server for shared hosting would like know.
Jose Vasquez's user avatar
1 vote
1 answer
730 views

Why is /proc/meminfo reporting misleading SwapTotal after suspends

Consider this: [skrat@apex geri]$ cat /proc/meminfo | grep SwapTotal SwapTotal: 18438120 kB [skrat@apex geri]$ swapon -s Filename Type Size Used ...
skrat's user avatar
  • 515
0 votes
2 answers
455 views

How do I resize full root or swap partitions in RAID?

It all began a couple weeks ago: When I try to use vi I get "E297: Write error in swap file $ echo "test" > test produces -bash: echo: write error: No space left on device My bash history is ...
Luciano's user avatar
  • 173
0 votes
1 answer
968 views

Should I create a 8 GB swap file on my amazon image?

I have an Amazon image with 1 root image, 1 image that I uses for websites and is only using 25%, and 1 image "unused" So I thought... maybe I can use that unused image for a linux swap file. Since ...
edelwater's user avatar
  • 487
7 votes
3 answers
28k views

What is the danger in having a fully used SWAP in an Ubuntu server?

One of my Ubuntu servers' swap partition is full. What are the dangers and/or performance ramifications of this situation?
Itai Ganot's user avatar
  • 10.8k
1 vote
1 answer
478 views

Server crash when creating a swapfile on a running machine (CentOS Linux)

I created a swap file with root on a running server, using swapfile creation guides which I found on the net (http://blog.serverbuddies.com/adding-additional-swap-space-to-your-linux-server/m Create ...
giorgio79's user avatar
  • 1,877
1 vote
2 answers
1k views

e2fsck on a low-memory machine: can I get more out of scratch_files or swap?

I am running CentOS 6 on a 32-bit machine with 1 GB of RAM. I have a 1TB external HDD that I am trying to run e2fsck on. It runs for about an hour and a half and then fails with Error storing ...
WinnieNicklaus's user avatar
-1 votes
2 answers
1k views

Server with high consumption of physical memory; swap is not being used [duplicate]

Please, I need a help. I have a Linux that has the following scenario of RAM memory consumption: root@cpro15623 [~]# free -m total used free shared buffers cached ...
Marcelo Juventino's user avatar
1 vote
1 answer
6k views

How much space is in a Solaris /tmp filesystem?

On Solaris, the /tmp filesystem is a filesystem of type "tmpfs". It's implemented in the kernel by allocated space from the virtual memory pool. That means allocation interacts with the available RAM ...
Chris Quenelle's user avatar
1 vote
1 answer
512 views

CentOS webserver memory overflow - cannot log in

Few days ago, my CentOS 6.2 webserver with ISPconfig 3 went down to the extent I wan't able to log in via SSH nor using a console. The console was full of messages "out of memory, killing process, ...
Jan Svab's user avatar
  • 113

1 2 3
4
5
7