Do i need swap?

Hi !
I ALWAYS setup swap, whichever RAM size. even with an aggressive swappiness, attempting to maximize RAM use, I see suff in my swap.
Here an exemple with a long session, 3 Firefox profiles with lots of tabs, Gimp, Shortwave & pulseeffect :

[meuh@ordi1 ~]$ free
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:          11756        4772        3987         574        2996        6099
Partition d'échange:         255          60         195
[meuh@ordi1 ~]$ 

But, as I don’t know if it’ll be used and what size I should set, I use systemd-swap.
To optimize it, I create a file : /etc/systemd/swap.conf.d/overrides.conf
Where I add to default setup :

swapfc_enabled=1
swapfc_min_count=1
swapfc_chunk_size=512M

In short, it creates a first 512Mo temp swapfile that can be complemented by as many other as needed.

My setup : Sujet: Optimiser la gestion de la RAM et du Swap sous Linux | l'Almanet doLys de nam1962 et ses amis (clic on the flag to have the english translation)

:wink: