• mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days ago

    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.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days 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

    • provectus@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 days ago

      That is pretty cool. Did not know that. Will still be keeping my partition because it works fine for me.