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

4
votes
1answer
8k 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 ...
6
votes
3answers
21k 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
1answer
617 views

Create swap file on a running Linux machine

Our company web sites have just been moved from a shared host to a VDS, as the hosting company plans on retiring the less than completely reliable shared hosting server(s). The VDS only has 256MB of ...
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 ...
2
votes
2answers
108 views

Tuning windows virtual memory/paging for a specific workload

I have a specific ram-intensive program I run which slows down my entire system for hours after each run - does the Windows NT 6.0/6.1 kernel have any tunables to encourage processes' working sets to ...
1
vote
1answer
178 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 ...
7
votes
2answers
4k views

Why does Windows 2008 use swap before the memory is full?

I administer a Windows 2008 server (well, on Amazon EC2) running IIS and a .NET4 Web app. I got a memory alert the other day and went and looked, and sure enough the process memory had grown over ...
3
votes
1answer
369 views

How does the Windows /3gb switch relate to physical RAM?

I have a 32-bit Windows server with 4 GB of RAM. From reading various articles on the web, I reached the understanding that enabling the /3GB switch in boot.ini would mean that of my 4 GB of RAM, 3 ...
2
votes
6answers
4k 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: ...
0
votes
1answer
836 views

SWAP CRITICAL - 100% free (0 MB out of 0 MB)?

ANy ideas how to address this issue ....I am on ubuntu 10.04 on amazon ec2 here is the image
3
votes
5answers
1k 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
2answers
306 views

swap on dev + but get mount dev + how to swap dev anyway?

when I do the: mkswap /dev/sda3 mkswap: error: /dev/sda3 is mounted; will not make swapspace. how to perfrom mkswap anyway , David
0
votes
1answer
307 views

swap never used, system freezes with high HD action when RAM is short

My system freezes quite often when run out of memory, I have 2GB and using netbeans, chrome, firefox and a few other apps this is consumed completely. Seems to me since I upgraded to ubuntu natty. ...
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 ...
0
votes
3answers
116 views

Paritition an LVM LV

I have an LVM logical volume (LV) and would like to create partitions within this LV to provide an ext3 partition and a swap partition. This LV would then get mounted as a disk to a virtual machine ...
4
votes
2answers
766 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
738 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
413 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 ...
0
votes
3answers
3k views

How does putting swap space on an SSD affect performance?

This is more of a generic question I'm interested in, rather than something I'm planning to use in production. If I got, saym a 40GB SSD drive and allocated the entire drive to be swap space leaving ...
3
votes
3answers
1k 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?
1
vote
1answer
745 views

Problem with setting up partitions - encrypted swap partition won't mount

Here's the layout I have; I'm using Software RAID10, LVM, and Encryption: LVM VG vg0, LV main - 2.0 TB Linux device-mapper (linear) #1 2.0 TB K crypto (vg0-main_crypt) ...
0
votes
4answers
3k views

Server super slow, RAM & Swap 100% used, ClamAV problem?

My Ubuntu 10.04 server is down since this morning. When I restart it, I can use it for a couple of minutes then the RAM and Swap get full, and SSH doesn't answer. It seems ClamAV is part of the ...
2
votes
1answer
112 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 ...
3
votes
4answers
1k views

Running swap on RAID10 or RAID5?

In follow-up to this previous question (and it's excellent answer), I am curious to know if running swap on a RAID5 might not be better than on a RAID10. My thinking is that you might lose a bit on ...
0
votes
1answer
944 views

What do the output values of dstat command mean when monitoring IO?

I am monitoring the IO and SWAP usage of a process in my backup server. I executed dstat -rs 5 and this was an example output: --io/total- ----swap--- read writ| used free 92.0 57.3 |3228k 514M ...
0
votes
2answers
234 views

Moving/Adding Additional Swap Location - Redhat 5

OK, here's what's going on. I've got a RedHat 5 server with a swap partition (/dev/sda3) that's 3GB. For some reason swap memory is still being taken up on / (/dev/sda2), and fills up the drive on ...
3
votes
2answers
689 views

Linux OOM disk I/O. Also: swap, what is it good for?

I'm having problems with the OOM killer on one of my Linux (2.6.37) installs. The computer has 4GB of memory which I sometimes utilize fully. In those cases, I expect the OOM handler to come in and ...
0
votes
2answers
323 views

linux + swap definition

how to decrease the Priority to 1 in place of 2 as described below? swapon -s Filename Type Size Used Priority dev/cciss/c0d0p6 ...
0
votes
1answer
360 views

LINUX + red hat + How to define swap on disk partition: /dev/cciss/c0d0p6

How to define swap (8G usage) on disk partition: /dev/cciss/c0d0p6 ( i have Linux red hat 5.3) for example: in my machine I not have swap definition Swap: 0 0 0 the ...
0
votes
2answers
363 views

Memory is available, but swap gets full over time

On a small VPS of mine, I have enough free memory for the things that are running there (as in the log below), but every once in a while, when I run free -m, I see all the swap is taken up. What ...
10
votes
6answers
9k views

SSD for swap on Ubuntu server

Currently I am reading SSD reviews and I wonder how much exactly I will benefit if I move the 24 GB swap from 7200rpm HDD to SSD. Does anyone implemented swap space on SSD? Is this generally good ...
1
vote
1answer
780 views

Where is the ESX Swap file in ESX 4.1i installed on SD cards?

Where is the ESX swap file located? I have installed ESXi 4.1 on a pair of mirrored SD coards, which came with the Dell server. ESXi runs really quickly, but with no local disks apart from the SD ...
1
vote
1answer
166 views

Exchange 2003 dial-tone with repaired database

After extensive Exchange 2003 DB corruption, we have set a dial-tone as emergency means of service for our users, then began restoring latest back-up to a recovery group, in parallel with fixing the ...
2
votes
1answer
916 views

Too much memory being swapped out, while cache uses it all on Centos 5.4

I've set swappiness on my DB server to zero, but during a large sort operation the swap space used grew even as the cache was still using a lot of memory, and then cache grew but swap was left alone. ...
0
votes
1answer
1k views

AIX swap usage shows ~20%, not even close to maximum load

I got an alarm that my swap usage was up to 80%, which turned to be a fact when I checked topas. The problems I've found were: 1) Looking into a vmstat 5 10, I found lots of PIs with 0 SRs. How's ...
4
votes
3answers
1k views

Do I need SWAP on my server?

I have a particular server : 50GB SSD for the OS (CentOS) , 128GB of RAM and 320GB SSD for MySQL. I'm wondering if I really need SWAP? I often read that 2GB is good even with lots of RAM. This ...
39
votes
4answers
16k views

Why don't EC2 ubuntu images have swap?

I started a couple servers on EC2 and they don't have swap. Am I doing something wrong or is it that the machines just don't have any?
3
votes
3answers
7k views

How do I increase swap memory in debian? [closed]

how to increase swap memory in debian?
1
vote
3answers
625 views

Diagnosing Solaris 8 server memory and swap space usage

Essentially, my question is related to memory allocation for Solaris virtual machines. I am running a couple of old Sun ONE 6 Java web servers on two Solaris 8 virtual machines. I see that there's a ...
1
vote
1answer
550 views

OpenVZ Swap space?

From what I understand with OpenVZ you just increase privvmpages and vmguarpages for the swap memory, and even though the guest shows it as RAM the host will swap it were possible. Am I right here or ...
0
votes
2answers
141 views

PHP APC on 64MB box

I have a small VPS with 64MB RAM. I use it as an internal proxy. I only have one index.php on this server, which has the logic to fetch data from another server using php curl and display to the ...
4
votes
4answers
3k views

Who is using the swap memory and why?

My database server is using 191MB of swap space - but also shows 182MB of free RAM The box is a dedicated MySQL server, running Debian Lenny. How can I determine who and why is filling the swap ...
1
vote
2answers
206 views

I've installed Lighttpd on my VPS, still the webserver relies on swapping

I've lighttpd on Ubuntu 10 on a 256MB RAM VPS. My goal is to completely avoid swapping. I'm running a Drupal webste with some images, shopping cart (no videos.. quite low estimated traffic). So.. ...
5
votes
2answers
4k views

Where should my swap partition/s live when using software RAID1? Performance? LVM?

When I search around for example RAID1 installations, it seems that admins tend to place their swap partition under RAID1. To me, it is more intuitive to have two disks, each with a large partition ...
4
votes
2answers
1k views

Should I turn off swap on AWS EC2?

I'm running a webserver and database server on the same AWS EC2 instance. I know it's a bad idea to have swap for web server, so should I just turn it off? Will it affect the database service (I guess ...
0
votes
2answers
974 views

Which processes are swapped out?

Is there a way to easily find exactly which processes are currently "swapped out" (i.e. currently taking up my swap space). I know that processes are dynamically swapped in and out as needed, but ...
1
vote
1answer
318 views

Diagnose Memory Graph

The monitoring software we use has been flagged a box that serves two apps: Confluence (xms: 1 GB, xmx: 2 GB) JIRA (xms: 1 GB, xmx: 1 GB) These are the only two applications on the box; nothing ...
1
vote
4answers
397 views

How “swappable” are RAID 1 drives?

My lab is considering setting up a server with an attached RAID device for storing our large imaging datasets. (probably a Mac Mini server with attached Promise SmartStor DAS w/ 4 1TB hard drives) ...
1
vote
2answers
119 views

System resets after swap memory is consumed partially

My System resets even if swap memory is consumed partially. What can be the reason for this? How can I can overcome this situation? I am using Suse Linux Enterprise Edition