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

    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.

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 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
        2
        ·
        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
        3
        ·
        8 days ago

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

    • muhyb@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 days ago

      Eh, it’s fine. That’s what I do with 4 GB RAM as well. However even though I set 8 GB swap on that machine I noticed it’s hardly using the half of it at most. (Using Void Linux)