Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] 32GB RAM and Swap
Date: Sat, 02 May 2020 08:53:18
Message-Id: a4e06b43-e4cd-99b2-e147-01a2de05c103@gmail.com
In Reply to: Re: [gentoo-user] 32GB RAM and Swap by Wols Lists
1 Wols Lists wrote:
2 > On 01/05/20 21:29, Dale wrote:
3 >> It gets really slow to respond when it uses swap but it beats crashing.
4 >> Just set swapiness to a low number. I think mine is set to 10.
5 >>
6 >> Given the cheapness of hard drives, I'm not sure why having several
7 >> gigabytes of swap space is of much concern. I have the same amount of
8 >> ram as you and I have a 12GB swap space. I use LVM so I can grow it if
9 >> needed or just add another swap space. I might add, I've seen times
10 >> where it gets used.
11 > That first paragraph is why too much swap space is bad - if an app goes
12 > rogue it can kill system response and make regaining control of the
13 > system a nightmare.
14 >
15 > Accidentally or on purpose, if a system runs out of ram and starts
16 > thrashing, you're in big trouble if it's an app eating memory like no
17 > tomorrow.
18 >
19 > Cheers,
20 > Wol
21 >
22 > .
23 >
24
25
26 That's why I set swapiness to a low number.  I don't want it to use swap
27 unless it is to prevent a crash.  If I set it to a higher number, it
28 wants to use swap even when there is memory available.  Once it starts
29 using swap, it gets slow.  The more it uses, the worse it gets. 
30 However, it beats it rebooting without umounting partitions and such. 
31 If nothing else, it may give me time to use the alt-sys sequence. 
32
33 I'm maxed out on memory at the moment but wish I could get and afford
34 64GBs, in a way.  Still, I'd have a swap partition. 
35
36 Dale
37
38 :-)  :-)

Replies

Subject Author
Re: [gentoo-user] 32GB RAM and Swap Michael <confabulate@××××××××.com>