• BartyDeCanter@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 hours ago

    There is, and it’s a stupid saying. You can’t just “use ram to speed up things” arbitrarily. Yes, for many algorithms you can make a ram vs cpu tradeoff while they are running, and caching filesystem blocks in ram makes file operations much faster, and there definitely is other caching that is useful, but only so much. And on an idle machine most of that isn’t going to be happening.

    This is part of why the Linux kernel separates out free, wired, used, buff/cache, and shared as separate measures. Filling up the buffers and cache correctly will speed up many operations, but it doesn’t count as used.

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      I mean if you buy 64 GB of RAM and never use more than like 13-14 and make sure to have as little caching going on as possible, that’s a bunch of RAM being wasted.

      People chase the biggest amount of free RAM possible, not realizing that caching things makes them faster, whereas having a ton of extra free memory sitting unused does not. That’s what that saying is about.

    • pmk@piefed.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      That’s why I wrote: “when the OS and applications use ram well”. Not arbitrarily putting things there, but also not thinking that low usage is inherently better.