Credit to @ryanc@infosec.exchange

I just did the graphic

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 weeks ago

If you don’t actually need the swap, Linux isn’t going to make use of swap.

Eh, yes and no.

It will offload things from RAM into swap in order free up RAM space for disk cache. Which is kind of a weird reversal when you think about it, loading your RAM contents onto disk so that you can load your disk contents onto RAM. But by doing this to idle processes in order to disk cache files you're likely to use soon, the system does become significantly faster and more responsive.

  • source
  • parent