1
vote
2answers
49 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
0answers
23 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
25 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
2
votes
0answers
69 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
votes
3answers
36 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
285 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
45 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 ...
0
votes
2answers
54 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 ...
7
votes
2answers
3k 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 mysql db that is set up to use most of the RAM. After some time running the server starts to use swap to swap ...
0
votes
2answers
184 views

Moving a process to and from swap [closed]

I've got serveral processes (game servers) 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 ...
3
votes
2answers
1k views

How can I create a swap partion 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 ...
1
vote
0answers
119 views

Why is /proc/meminfo reporting misleading SwapTotal

Consider this: [skrat@apex geri]$ cat /proc/meminfo | grep SwapTotal SwapTotal: 18438120 kB [skrat@apex geri]$ swapon -s Filename Type Size Used ...
1
vote
3answers
344 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?
1
vote
1answer
165 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 ...
1
vote
1answer
292 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 ...
-1
votes
2answers
120 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 ...
2
votes
2answers
271 views

Linux process swap usage is greater than the overall system swap usage

I have a strange problem that when I run top command it shows that some processes are using around 1.5GB of swap space but then the overall usage of the system swap is way to less to something around ...
1
vote
2answers
285 views

Ubuntu: forcing processes into swap, or into RAM

I am now solving the following problem on Ubuntu: Is it possible to specify if one process should run only in the RAM (i.e. is not allowed to swap) or reversely only in the swap part? I mean that the ...
1
vote
1answer
198 views

How to instruct linux not to swap out hot pages of mmaped files?

I have a server where I run worker processes that mmap serveral rather big read-only "dictionary" files (~8GB total). Tests showed that they actively access only around ~1GB worth of the pages in ...
0
votes
1answer
92 views

how do OS deal with dirty page if there is no swap space [closed]

As in text books OS will move dirty pages to swap space based on LRU algorithm and make space for new process in RAM. But how do OS do this if there is no swap.
0
votes
1answer
74 views

how can I tell if there is a cpu trashing on my linux machine

I want to write a script that will kill my processes when my machine is doing "too much" swapping of process memory from disk to memory. What is the best way to determine that? I saw top has %wa and ...
2
votes
1answer
1k views

Using tmpfs + a very large swap partition for /tmp instead of a regular filesystem?

I have Linux server and I have a spare 500GB disk partition. I wanted to format it and use it for /tmp. The server occasionally runs some large data processing tasks so it can happen that /tmp will ...
1
vote
2answers
1k views

Should I use swap in KVM guest?

Now I'm trying to create KVM templates with CentOS and I'm not sure should I create swap partition on guest OS or not. In future it will be lot's of small VPS with 256-1024Mb RAM and if swap partition ...
4
votes
2answers
228 views

How to read `top`. Process list says processes have swap but overview says no swap is being used

I am using top to monitor my server. The swap row reads Swap: 1044220k total, 0k used, 1044220k free, 148544k cached I have hit O p to sort by swap. PID USER PR NI VIRT RES ...
3
votes
2answers
3k views

Linux cached memory: Over 85% of cached memory and using swap

I read about Linux and cachd memory at linuxatemyram but there is something that doesn't make sense to me, if the server have even a low load, instead of freeing some cached memory it starts using ...
3
votes
3answers
359 views

Disadvantages of a large swap partition

I'm aware that there is a huge performance decrease when using swap memory, but if you have wasted hard drive space is there any disadvantages to having (hopefully not using) a large swap partition?
3
votes
2answers
1k views

Why is my KVM, RHEL6.2 server swapping?

I have a RHEL6.2 server that I'm using to run KVM virtual machines. The server itself has 16 GB of RAM. I want to see the biggest VM I can run on it and not let the qemu-kvm process swap. The VM ...
3
votes
1answer
164 views

Force process pages to get unswapped

I started 4 processes doing heavy computations. The machine has 4 full cores, and each process is single-threaded, so they don't compete for CPU. However I realized that they require more memory than ...
7
votes
2answers
2k views

Ubuntu Linux: Process swap memory and memory usage

My Ubuntu eats more memory than the task manager is showing: sudo ps -e --format rss | awk 'BEGIN{c=0} {c+=$1} END{print c/1024}' 2750.29 free -m total used free ...
5
votes
1answer
310 views

Mysterious swap usage on EC2

We're in the middle of a project to move our infrastructure from a co-lo situation into Amazon EC2 and we've noticed some weird memory characteristics of the processes in our setup. Without going into ...
1
vote
1answer
1k views

Centos server not using SWAP properly and getting OOM

Recently I've been having some serious memory issues with my server. Just the other day, my server became completely unresponsive, and oom-killer started killing services at random (httpd, php, etc). ...
2
votes
1answer
611 views

Server refuses to use swap partition

We are running a server with 23 cores (cpuinfo shows 22 as the highest process number) and 66 Gig RAM. The development team here is running some apps, which hogs memory. I have observered that: 1. ...
2
votes
1answer
4k views

How to free swap without rebooting (to avoid hourly alert emails)?

I get alert emails whenever swap usage is at 100%. In my case, swap usage doesn't reduce later on (even though memory is free) so I get an alert email every hour. How can I reduce swap usage without ...
10
votes
8answers
8k views

Should I completely turn off swap for linux webserver?

Recently my friend told me that it is a good idea to turn off swap on linux webservers with enough memory. My server has 12 GB and currently uses 4GB (not counting cache and buffers) under peak load. ...
6
votes
3answers
12k views

How to increase swap size?

Recently, I put more ram into my server and now I have got a total of 24GB of RAM. Originally, I setup the OS to have a 2GB swap size. /dev/sdc1 1 281 2257101 82 Linux ...
0
votes
3answers
198 views

Socket and Swap Space

I have a system that is running out of memory and has a lot of open connections. but my swap space is not being used up that much. Can socket/socket file descriptors use swap space? This is for a ...
2
votes
1answer
256 views

Ubuntu Swap on EC2 with an EBS root

Running Ubuntu 11.04(natty) on an EC2 micro instance. Setup 1gb swap file at /mnt/swap. Works fine until I reboot and then the swap is not active. I can activate it manually using swapon -a, but my ...
4
votes
1answer
7k views

why is kswapd using high CPU on an idle system?

I have an idle Linux centOS system and yet kswapd is using 100% cpu. All I have running is a single bash session with top running.... I have 32G RAM and yet kswapd is constantly using 100% cpu for ...
5
votes
3answers
15k views

How do I tell what process is causing kswapd to be in use?

I see kswapd using 100% CPU... how can I tell on which process's behalf kswapd is being used so much?
8
votes
3answers
3k views

How to create a randomly keyed, encrypted swap partition, referring to it “by-uuid”, on Debian?

It is sensible that if you have any sort of block device encryption implemented on your GNU/Linux system, to encrypt your swap partition too, as any decrypted data may be written in cleartext at any ...
1
vote
1answer
166 views

Reasonable memory limit alarm for 2GB machine running RHEL5 OS

We have a bunch of servers with the below configuration: Dual Core single processor 2GHz with 1 MB Cache. Swap is enabled with 1GB limit Memory - 2GB OS - RHEL5.3 64bit One of our alarms is ...
1
vote
6answers
3k views

What and why is my swap space used under linux

on my linux system I get these stats from top: Tasks: 155 total, 1 running, 153 sleeping, 0 stopped, 1 zombie Cpu(s): 1.5%us, 0.3%sy, 0.0%ni, 97.4%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st Mem: ...
1
vote
2answers
1k views

memory leak? RHEL 5.5. RSS show ok, almost no free memory left, swap used heavily

i encounter a very instresting problem, and it seems that some physical may disapper quietly. i am very puzzled, so if anyone could give some help, I would be very appreciated. here is my top show: ...
3
votes
5answers
782 views

How to prevent going to SWAP?

We have a critical application which uses pretty much of our RAM memory. At most time the application stays in RAM, however there are some situation (e.g. when some other applications and deamons ...
0
votes
4answers
3k views

linux redhat 5.4 - swap while memory is still available

This server is swapping using 100% (15G swap disk) while it still has 30G free, I've been looking arround but can't figure why this is happening, my understanding was not to use swap if memory is ...
3
votes
2answers
661 views

Linux: Where to put the swap file

Are there any conventions on where to put swap files on Linux? I usually just create them in /var/swapfile, but that seems a bit too high up in the hierarchy.
2
votes
2answers
586 views

Resizing swap partition (RHEL 5.x)

Following is how parted print looks like: (parted) print Model: VMware Virtual disk (scsi) Disk /dev/sda: 26.8GB Sector size ...
0
votes
2answers
355 views

Linux swap partition not recognized on reboot

When I reboot my Linux server the swap space reads 0 in top. I am running a vanilla install of CentOS 5.2 /etc/fstab looks fine from what I can tell /dev/VolGroup00/LogVol01 swap swap defaults 0 0 ...
3
votes
3answers
719 views

Identifying a process that leaks memory

On a linux server (Ubuntu Lucid), my used swap keeps growing by the hour on a server, and I'm having a hard time identifying which process is growing in swap. What tool can I use to monitor this?
2
votes
1answer
110 views

suspend process if number of hard page faults surpasses a given amount per second

Is there a way in linux to send a signal or otherwise install an handler to be called when a process surpasses a given rate of hard page faults per second? A simple sigstop would avoid many ...