1 |
On 1 May 2020 21:50:02 CEST, Raphael MD <raphaxx@×××××.com> wrote: |
2 |
>Hello! |
3 |
> |
4 |
>Could I turn my Linux swap off. |
5 |
>I have 32 GB of RAM memory, I suppose my system don’t need swap, |
6 |
>because |
7 |
>I’vea lot of RAM, is this true? |
8 |
> |
9 |
>Thanks |
10 |
|
11 |
This question keeps getting asked every time people go past some imaginary large figure of RAM. |
12 |
|
13 |
First time I encountered it was somewhere in the 1990s. A friend had a machine with 64MB ram, a massive amount at that time, and disabled all swap. |
14 |
He was surprised his machine crashed because of memory issues, until I asked what he was running. The list included several memory intensive applications. |
15 |
He never asked that again and adds it to all his machines. |
16 |
|
17 |
My desktop has 32GB and also has some swap. I do regularly see it used and not because of memory leaks like Dale is mentioning, although those do appear on occasion. On my desktop it's mostly because I have a lot of stuff running the whole time. |
18 |
|
19 |
So, yes, you still need swap and always will. Unless you put about 10 times the current magical figure in a desktop. In my view, that would be 320GB for now, and in another 5 years, that would be around 640GB. |
20 |
When you have that level of overkill in a desktop, I will not consider OOM to be likely. |
21 |
|
22 |
|
23 |
-- |
24 |
Joost |
25 |
|
26 |
-- |
27 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |