• Badabinski@kbin.earth
    link
    fedilink
    arrow-up
    7
    ·
    24 days ago

    The issue is that browsers don’t release much memory back to the system when it’s needed. I wish they’d work more like the Linux kernel’s VFS caching later, but they don’t (and might not be able to. For example, I do don’t think the Linux kernel has good APIs for such a use case).

    • zea@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      24 days ago

      You can write limits to and then poll files in /proc/pressure/ to be notified of resource pressure. Systemd will also set an environment variable for similar files for your cgroup.