Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: 32GB RAM and Swap
Date: Sat, 02 May 2020 02:09:32
Message-Id: r8ikog$1fjd$1@ciao.gmane.io
In Reply to: [gentoo-user] 32GB RAM and Swap by Raphael MD
1 On 01/05/2020 22:50, Raphael MD wrote:
2 > Could I turn my Linux swap off.
3 > I have 32 GB of RAM memory, I suppose my system don’t need swap, because
4 > I’vea lot of RAM, is this true?
5
6 I've been on 16GB RAM for about 10 years. I've been using a 4GB swap
7 partition for about 8 years. Two years ago, I disabled swap. This fixed
8 a long standing problem where running applications that I didn't touch
9 for a while would take *ages* to start operating at normal speeds again.
10 Setting the vm.swappiness=10 sysctl didn't help either. Only
11 vm.swappiness=0 got rid of those issues (which basically means disable
12 swap.)
13
14 I don't know how common this problem is in general, but for me it
15 happened a lot because I use virtual machines to do work on Windows 10,
16 Ubuntu and macOS running in Gentoo. This always resulted in applications
17 that I didn't touch for a while getting swapped out even though there
18 was plenty of RAM free. Since I disabled swap, everything stays nice and
19 snappy all the time instead of becoming a sluggish nightmare after a while.