• Vitaly@feddit.uk
    link
    fedilink
    arrow-up
    4
    ·
    9 days ago

    So there are some benefits to the ram crisis? People actually optimize things because of limited resources.

    • khannie@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 days ago

      When I was in computer science in college back in the 1900s, they told us that the USSR was responsible for some of the best algorithms still in use at the time (both for RAM and CPU usage) because they just had less to work with.

      Guess we’re all in that boat now.

    • Random Dent@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 days ago

      You know it’s getting weird out there when Meta seems to be doing something that’s actually useful.

      • boonhet@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        9 days ago

        They’ve been doing useful engineering things since the start, it’s just that it pales in comparison to all the bad things

      • cantstopthesignal@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        9 days ago

        Whenever big tech companies like Meta do useful things like support Overture Maps Foundation (which is also supported by Microsoft and Amazon) they are doing it to blunt some competitive advantage another tech company has, such as google in this case. They support open source insofar as they can’t monetize whatever they are open sourcing.

    • ayyy@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      9 days ago

      This is still just a bandaid over running 10 copies of chromium for each electron app.

    • Carl [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      That certainly seems to be a genre of article right now.

      Cloudflare frees up 100TB of RAM by shrinking 1.1.1.1’s DNS cache entries

      MSI promises an EXPO ULL-like boost for your existing DDR5 memory

      Microsoft vows to make Windows 11 fly on 8GB RAM amid memory shortage

      • Salty_NZ@aussie.zone
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        9 days ago

        Microsoft vows to make Windows 11 fly on 8GB RAM amid memory shortage

        I feel like they might want to start with something a little simpler, like landing the first humans on Jupiter or making Windows 11 fly on 1024GB RAM.

  • okamiueru@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    9 days ago

    Title is a bit misleading, and I think intentionally, which kinda irks me. It isn’t a 400x speedup of RAM by means of compression. If I understood correctly, it’s 400x speedup compared to disk read for swap.

    Please correct me if I’m wrong here. I’d love some positive news from the IT world that isn’t depressive. (edit: I implied this wasn’t. It is. I’m just not sure of the actual impact)

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      9 days ago

      It’s a little better than your read. The ~400x speedup is in comparison to using ZRAM, which, in very brief terms, compresses memory by creating an in-memory compressed block device and assigning that as your swap space. So your “swap” is actually a compressed chunk of RAM, not on disk.

      This was significantly slower than normal memory access because page faulting when looking up something in memory then fetching from swap was, itself, expensive. Regardless of how fast that swap was. When your swap is on a storage device that overhead is comparatively tiny, but when it’s just another chunk of memory suddenly it’s what you’re spending most of your time on.

      • rockSlayer@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 days ago

        Fuck yea, RAM swap? I bought both my laptop and desktop when RAM was cheap, and got more memory than I needed. I can safely allocate like 12GB to CRAM!

        • vithigar@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          9 days ago

          The win from CRAM is that it is not swap, and operates using mostly normal RAM semantics. If it works as advertised you should be able to allocate most (all?!) of your RAM as CRAM.

    • spicystraw@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 days ago

      Too bad, this isn’t happening as a kernel patch. Adding to that point:

      The key detail is that CRAM is a hardware implementation of compression, meaning the logic is in the memory controller rather than in software, so it’s not a pure software trick like ZRAM. However, it uses standard off-the-shelf DRAM and a normal memory bus, so no exotic modules or custom interfaces are required.