Credit to @ryanc@infosec.exchange

I just did the graphic

you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 3 weeks ago* (4 children)

Then what is the setup if my computer only has 4GB of memory for daily driving? Just curious because swap partitions are what I normally do on limited resource machines.

  • source
  • hideshow 4 child comments
  • [–] 6 points 3 weeks ago (2 children)

    Dunno how well zswap handles at that size, but the point is that is compresses swap into RAM, so it would use a max of 819.2M for a total of 2457.6M of swap space. If you need more, then by all means, use a swap file or partition lol.

    Actually linux easily supports multiple and tiered swap mounts, so you could even go zswap + ssd swap + hdd swap, or a cheapo "burn at your own risk" usb flash swap lol.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 weeks ago

    so it would use a max of 819.2M for a total of 2457.6M of swap space.

    calling it total is a bit of a stretch. that's the best case scenario, when the contents compress well.

    also, zswap might not be a good idea on that system. if it only has 4 GB RAM, it likely has a CPU tht is slower and has only a couple cores, and the modern web is cpu heavy enough as it is

  • source
  • parent