I am suffering from frequent lock-ups of my desktop system (see Memory full, mostly taken by "shared", GUI unresponsive).
Example output of free -m
:
total used free shared buff/cache available
Mem: 15943 2583 3176 9063 10183 3574
Swap: 0 0 0
Why are > 9 GB taken by shared? How do I force this to be less?
Swap: 0 0 0
. It appears he has no swap set up. – DavidO Dec 01 '17 at 07:35/tmp
to tmpfs also, so in theory I could fill my RAM and dive into swap if some process decided to spin out of control writing tempfiles. But in practice that's pretty unlikely, and even if it did happen, I wouldn't much appreciate 32G of temp files ending up on a physical drive either, so memory+swap for /tmp is a reasonable arrangement for me (and performant). – DavidO Dec 02 '17 at 16:48