3
votes
1answer
75 views

When is swap triggered or how to calculate swap_tendency?

I'm trying to use Redis for production services and trying to avoiding swapping, which is bad for performance. I had learn that swap is triggered by swap_tendency which is depending on ...
1
vote
1answer
156 views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
0
votes
1answer
37 views

HDD indicator blinks when I run out of memory, but I have no swap configured [duplicate]

I'm running Arch Linux, with 8 GB memory and no swap defined. Sometimes it ran out of memory, then my system get a little bit stuck, and I can see the HDD indicator blinking. Then I restart X, which ...
0
votes
1answer
69 views

Could the Kernel stack of a process be empty, when a process is swapped out to a disk?

I am just curious to know whether the Kernel stack could be empty when a process is swapped out to a disk or not?
10
votes
6answers
2k views

Can Linux “run out of RAM”?

I saw several posts around the web of people apparently complaining about a hosted VPS unexpectedly killing processes because they used too much RAM. How is this possible? I thought all modern OS' ...
15
votes
2answers
7k views

Why is swappiness set to 60 by default?

I just read some stuff about swappiness on Linux. I don't understand why the default is set to 60. According to me this parameter should be set to 10 in order to reduce swap. Swap is on my hard ...
0
votes
2answers
399 views

swap partition and its laws

I remember for choice of swap partition, we should use (swap > 2xRAM) at least.Of course it deprecated , because max of computer's ram is very high. kernel support it. My question: i remember each ...
19
votes
3answers
3k views

What does the vm.swappiness parameter really control?

Per the kernel documentation: This control is used to define how aggressive the kernel will swap memory pages. Higher values will increase aggressiveness, lower values decrease the amount of swap. ...
5
votes
2answers
5k views

Cleancache vs zram?

I have an old laptop here with only 512 MB of RAM. Since a few kernel releases, I am using zram to convert 256 MB of it to a compressed ramdisk which is then used as swap. This has proved to be very ...
7
votes
3answers
494 views

Why does it makes sense to cache swap?

It sounds quite counter-productive to me to cache pages that are swapped out. If you swap pages in, what is the advantage to first cache them in memory, only to have to than move them to the right ...
5
votes
3answers
1k views

How can I tweak the kernel for total swap out?

I would like to deploy the following swapping policy: By default all pages in memory should also be in swap space. When a page in memory is changed (i.e. dirty), the page should be written out as ...
25
votes
12answers
3k views

How can I tweak my Linux desktop to be more responsive?

I have the experience that Linux works fine until the physical memory is exhausted. As soon as swap space is used the performance is severely degraded and the GUI becomes unresponsive. This problem ...