swap feels like cheating

    • BCsvenEnglish
      arrow-up
      5
      arrow-down
      2
      ·
      5 months ago
      link
      fedilink

      yeah, in poweshell type Enable-MMAgent -MemoryCompression

      • RustmilianEnglish
        arrow-up
        5
        arrow-down
        0
        ·
        5 months ago
        edit-2
        5 months ago
        link
        fedilink

        That’s not that same. That’s closer to Zswap. “Enable-MMAgent -MemoryCompression” enables compressing inactive memory pages in RAM. Zram is 1 or more compressed block devices in RAM that can store a much larger variety of data.

        • BCsvenEnglish
          arrow-up
          1
          arrow-down
          0
          ·
          5 months ago
          link
          fedilink

          Yeah, I remember using ramdrive.sys in the DOS days to make a drive letter in memory to speed up our CAD software. My point was windows has similar tools for memory compression and drives, just that it is not as easily tinkeres with like Linux.

      • BCsvenEnglish
        arrow-up
        3
        arrow-down
        2
        ·
        5 months ago
        link
        fedilink

        And the next question, can you make a RAM drive? Yes ImDisk. Even DOS had ramdrive.sys

        • RustmilianEnglish
          arrow-up
          6
          arrow-down
          0
          ·
          5 months ago
          edit-2
          5 months ago
          link
          fedilink

          Zram offers way more flexibility and versatility compared to ImDisk.
          Zram can be used for swap space or as a general-purpose RAM disk. Unlike a traditional RAM drive, Zram can compress data using a nice hand full of algorithms, notably Zstd; allowing it to store more information within the same RAM capacity leading to faster I/O and efficient memory usage with minimal CPU usage; & LZO-RLE; offering the fastest compression and decompression speeds leading to faster data swapping between compressed and uncompressed states, potentially improving overall system performance. Also, ImDisk afaik only offers NTFS compression for RAM drives which is well pretty damn slow for this particular use comparatively.
          Additionally, Zram persistence can be configured with writeback devices. ImDisk typically doesn’t offer persistence.
          ramdrive.sys isn’t even worth talking about, it never had any kind of compression let alone anything else I mentioned previously.

          • BCsvenEnglish
            arrow-up
            2
            arrow-down
            0
            ·
            5 months ago
            edit-2
            5 months ago
            link
            fedilink

            These things exist in windows (or as 3 party tool like RAWcopy etc for writeback) its just their OS is not setup to make tinkering a simple matter like in Linux. You don’t have to convince me as I’m already a Linux household since Windows10 came out. But the post was claiming Linux was superior because of SwapWindows has this, so the meme is a bad one

    • jrgdEnglish
      arrow-up
      3
      arrow-down
      0
      ·
      5 months ago
      link
      fedilink

      Windows does have memory compression, though you can’t really change the algorithm or how aggressive it is. AFAIK it is just a toggle of on or off.

      • RustmilianEnglish
        arrow-up
        4
        arrow-down
        0
        ·
        5 months ago
        edit-2
        5 months ago
        link
        fedilink

        Zram is very different. What Windows has is closer to Zswap.