Questions tagged [swapping]

22 questions
17
votes
1 answer

deleting linux cached ram

I have a webserver that has 8GB of ram and is running a pretty intensive php site (1 site) that does file manipulation, graphing, emailing, forums, you name it. The environment is far from static which leads me to believe that very little could be…
Patrick R
  • 2,925
  • 1
  • 18
  • 27
8
votes
4 answers

When is swap moved back to physical memory?

When is swap moved back to physical memory in Linux? Is it only on demand, ie. when it's needed? Or is swap slowly transfered to physical memory when the computer is not on high load?
Ztyx
  • 1,365
  • 3
  • 13
  • 27
5
votes
1 answer

Swapfile mount (/etc/fstab): "swap swap" or "none swap"

There seems to be conflicting information on how to mount a swapfile. swap swap: none swap: both: Both ways work. What is the official recommendation and how does each way affect swapping?
Gaia
  • 1,777
  • 4
  • 32
  • 58
5
votes
4 answers

mdadm: Swapping out small hard drives for bigger ones in a RAID5, How to partition?

So I got the gist of swapping out smaller hard drivers for bigger ones in an MDADM RAID5: Fail and remove one drive. mdadm -f /dev/md0 /dev/sdd1 mdadm -r /dev/md0 /dev/sdd1 Shutdown, swap the hard drive, partition and add back to array mdadm --add…
JD Frias
  • 153
  • 1
  • 1
  • 7
4
votes
1 answer

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?
MyFault
  • 893
  • 3
  • 14
  • 35
2
votes
5 answers

A button to set all processes to on-hold for Linux?

When Linux starts swapping you're basically doomed. Very soon the system won't react to any input any more, but happily swap on until the end of days... Can you think of a command that holds all processes whatsoever, thus (and while) allowing you to…
1
vote
1 answer

Remove swap completely or set swappiness to 0?

In managing a server with 512GB of RAM I encountered a process that keeps consuming swap until it hits 100% of the swap space then stops consuming more (6GB of swap) but keeps working fine (albeit, when a request enters the process, it takes a long…
Gizmo
  • 279
  • 2
  • 11
1
vote
1 answer

Database files and the system swap space on the same disk?

Why is it problematic to configure the database files and the system swap space on the same disk? What can happen?
1
vote
1 answer

How do I set the default memory.swappiness for all the systemd cgroups?

In CentOS 7 how do I set the default memory.swappiness for all the systemd cgroups? I can do it per cgroup via the ControlGroupAttribute option, but I would like to override the default of 60 for all the cgroups.
Jeff Kubina
  • 397
  • 1
  • 3
  • 12
1
vote
2 answers

Linux swapping blocks system (freeze)

I have a problem with my Debian Servers. We run 4 different server which all have Intel CPUs and 128GB of RAM. Two of them run Wheezy, two of them run Jessie. We run a Java software on those systems which is heavily using memory and could eat up all…
mr.simonski
  • 225
  • 3
  • 12
1
vote
1 answer

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 maximize memory usage for the single process I care…
EGr
  • 575
  • 3
  • 12
  • 29
1
vote
2 answers

Swapping IP addresses between two domain controllers

On our VMWare ESXi environment is a single domain controller (Windows Server 2008R2) installed. Now I have to upgrade it to a new server (Windows Server 2012R2) which should has the same IP. Many applications (no reliable list of applications…
MaxMix
  • 189
  • 2
  • 4
  • 11
1
vote
7 answers

My server is swapping, how can I fix it?

I am using slicehost.com 256MB hosting for my site. Unfortunately it is swapping almost all the time. When I type in console free i get something like: total used free shared buffers cached Mem: 251140 …
mgPePe
  • 225
  • 1
  • 3
  • 7
1
vote
3 answers

Amazon EC2 swap file

I have created 14GB swap file in Amazon EC2 server but the swap file which I created is not being used by the server. The status is showing like this: $ free -m total used free shared buffers cached Mem: …
sathishkumar
  • 71
  • 2
  • 2
  • 6
1
vote
1 answer

Is the memory which is transferred to swap due to swappiness still cached in the physical memory?

Is the memory which is transferred to swap due to swappiness still cached in the physical memory (until it is invalidated there)?
Ztyx
  • 1,365
  • 3
  • 13
  • 27
1
2