
Carlos E. R. schrieb am 10.07.20 um 14:16:
On 10/07/2020 12.42, Joerg Schilling wrote:
Jan Engelhardt <jengelh@inai.de> wrote:
In other words: if you have files that lay around in /tmp. this just eats up swap.
Yes you are right, it is anonmem. But for those without swap configured, it is equal to RAM.
It is recommended to have a swap that is 2x the size of the RAM.
No, it is not. Not in Linux. That reccomendation came from Windows.
Where is that recommendation documented?
I'm quite sure I read that in the manuals of SLES 9. SAP referred to the "2 times RAM" rule, saying that you should follow it generally, but do not make swap bigger that 20 GB. So all my old SAP hosts (that have been virtualised > 10 years ago) still have a 20 GB swap partition, while the newer SAP HANA hosts have 1 or 2 GB swap. If a HANA host starts to swap to disk, you should get out a shovel and dig your tomb :) --