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
2answers
49 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 ...
-1
votes
0answers
24 views

MySQL Server on windows 2003

I'm running windows 2003 on HP proliant D360 G3 server having MySQL 5.5 I'm having 2 GB ram in it but I can see MySQL is only consuming 200mb ram & around 900mb swap size, why is it so ? My ram ...
0
votes
1answer
74 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 ...
1
vote
3answers
91 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
53 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
146 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
76 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 ...
1
vote
1answer
88 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 ...
1
vote
1answer
105 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, ...
3
votes
1answer
297 views

Why does host swap out VMs when there are 16GB of buffer cache and swappiness = 0? [duplicate]

I have a desktop running Ubuntu Quantal using OpenStack Folsom on an Intel i5 with 32 GB RAM and 2 GB swap. I'm running 7 VMs each sized like a EC2 m1.small, so 1.7 GB RAM each. I'm using KVM. As I ...
2
votes
2answers
120 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
0answers
94 views

Couchbase RAM Usage & Clear cache

I am in a company that is a fan of Couchbase ( Version 1.8.x). Our Couchbase servers always has RAM around 48 GB. Couchbase Total Allocated is 39 GB. Couchbase In Use around ~ 15-29GB . Note ...
1
vote
1answer
49 views

Is there a way to free swap?

After using vmware player with some virtual machine, it seems like my swap stays quite occupied and it doesn't changes unless i reboot it. However, regularly swap is not used much by other ...
1
vote
2answers
104 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 ...
11
votes
3answers
881 views

How to disable swap files in ESXi?

We are running a few Solaris / Linux VMs on ESXi that contain very sensitive encrypted data that eventually get decrypted as required in memory. Everything is fine, except for the ESXi swap files ...
1
vote
1answer
129 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
60 views

Swap files in Cloud Infrastructures

At our company we set up an OpenStack Cloud and are currently creating internal guidelines for creation of OS templates / images. One controversial topic was if we should provide swap inside the VM ...
1
vote
0answers
94 views

Limiting memory usage and mimimizing swap thrashing on Unix / Linux

I have a few machines that I machine that I use for running large numbers of jobs where I try to limit the number of jobs so as not to exceed the available RAM of the machine. Occasionally I ...
0
votes
1answer
235 views

How much RAM do I need to run a forum using Nginx, Gunicorn, Django?

I started an ec2 instance (micro) to test the amount of memory I have available to run a website but I was expecting having a bit more. So my question would be: How much RAM do I need to run a site ...
1
vote
2answers
92 views

How can I determine the method of this DDoS attack?

My server went down earlier - looks like a DDoS. A spike in traffic to around 13mbit, the swap goes from idle to maxed in about 5 minutes, and server stops responding. I would like to protect ...
0
votes
1answer
76 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.
4
votes
1answer
56 views

Is it sensible to use SLC swap as a RAM substitute on a VM host?

I have a few oldish servers running virtual machines but they are limited to 16GB RAM and that limits the number of VMs I can run and the options for RDS. I've added a RAID1 array of two Intel 311s: ...
0
votes
1answer
404 views

Very high Magento/Apache memory usage even without visitors (are we fooled by our hosting company?)

I am no server guy and we have issues with our speed so I come here asking for advise. We have a VPS with 2 cores and 2gb of RAM at a Magento specialized hosting company. Over the course of the last ...
0
votes
0answers
45 views

How do I configure a swap partition using swapspace

I finally have the swapspace project installed and running (via init.d). The purpose is to have a dynamically re-sizing swap partition. I'm clueless however on how to use it. It has good ...
1
vote
1answer
81 views

Swap space maxing out - JVM dying

I have a server running 3 WordPress instances, MySql, Apache and the play framework 2.0 on 64m initial & max heap. If I increase the max heap of the JVM that play is running in even by 16m I see ...
0
votes
1answer
57 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 ...
3
votes
2answers
223 views

How is htop “Swp” calculated?

When I run htop (on OS X 10.6.8), I see something like this : 1 [||||||| 20.0%] Tasks: 70 total, 0 running 2 [||| 7.2%] Load average: 1.11 ...
1
vote
1answer
648 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
478 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
1answer
148 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 ...
2
votes
2answers
902 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
225 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?
2
votes
2answers
657 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 ...
0
votes
1answer
363 views

My server is running out of memory, despite having all swap free

I am using Debian 6 (Squeeze). The server has 4gb of memory in it, and 8gb of swap. I'm starting to get memory alloc errors at high application load times, but from top command: Mem: 4055944k ...
4
votes
1answer
69 views

How to lock a process in RAM (make it unswapable)

Is there a way to instruct the kernel (Linux kernel) to never swap a certain process that has already been started?
0
votes
1answer
133 views

CentOS - Convert swap memory to regular?

Take a look at this screenshot that I took after doing free -m: http://gyazo.com/aa54d264956e56acb99024e2374de0c0.png?1340387738 I notice that I have a ton of swap memory not being used, could I ...
1
vote
2answers
261 views

Maximum swap file size

I'm doing some file processing that seems to require an enormous swap file: even 20Gb isn't enough. What's the theoretical maximum? Running swapon on a 1Tb file resulted in: swapon: ...
-4
votes
1answer
65 views

How to control the memory usage of a swap partiotion? [closed]

Thats pretty much the quesiton: how can I control the memory usage of each swap partiotion, say /etc/sa5?
4
votes
2answers
1k views

How do I enable swap file on my server?

I've followed this but when I run:- #swapon /swapfile1 I get::- swapon: /swapfile1: swapon failed: Operation not permitted The system is extremely slow with 1GB of RAM trying to run ...
0
votes
4answers
117 views

On a virtual Linux system where storage is on network what's the point of the swap file? [closed]

The Linux servers are running on some VMWare ESX systems (guessing, I'm just user). These systems don't have the disks directly attached: they perform everything on a virtual disk that is actually a ...
0
votes
3answers
426 views

With Xen, when is Swap used?

I have a 512MB Xen VPS with 1024MB Swap. When I SSH into it and type "free -m", it shows I have around 50MB free memory. I had recently downgraded from a 1024MB plan because I didn't need the ...
0
votes
1answer
241 views

LVM cannot detect my swap or '/' volume group but why is the swap still present

i have a server (hp x86 blade running OEL/RHEL5) that has a faulty lvm filter configured in lvm.conf filter = ["a|^/dev/emcpower.*|", "r/.*/"] we also use cciss devices so there should have been an ...
1
vote
3answers
355 views

I/O rate and CPU Eating up Server making terribly slow site

My server (Ubuntu 10.04 Lucid LAMP Stack) on linode (1024MB ram, 40 GB storage, 400 GB Transfer) is loading terribly slow. My site (WordPress) is relatively small (1.5 Gigs of mysql) and gets around ...
3
votes
1answer
117 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 ...
3
votes
2answers
996 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
263 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
909 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). ...
3
votes
5answers
609 views

What happens if you run out of RAM and swap?

Running MySQL on a box with 32 gigs of RAM. Swap is 99% full, and there is about 200 MB of RAM free. MySQL is the culprit of course. What happens when both RAM and swap are completely filled? Thanks! ...
2
votes
1answer
286 views

Apache is not using SWAP and it's reporting page allocation failure

Check the logs: httpd: page allocation failure. order:4, mode:0xd0 Call Trace: [<ffffffff8000f696>] __alloc_pages+0x2ef/0x308 [<ffffffff80017a40>] cache_grow+0x139/0x3c7 ...
1
vote
2answers
149 views

swap partition alignment: is there any benefit?

On some of my Linux servers, the swap partition is misaligned. I understand how partition alignment affects performance on mounted file systems with 4k block sizes, but I am unsure if the same ...

1 2 3 4