• HiddenLayer555@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    18 hours ago

    So could the total amount of RAM be smaller than the total amount all the machines cumulatively think is available? How does the pool prevent all the machines from crashing if all of them fill up their memory?

    • flubba86@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      18 hours ago

      Kind of. Think of the RAM allowance as a “maximum” limit, not a reserved allocation. The VM host might have 64 GB RAM, and perhaps allows 20 VMS running in it at once. Each VM can allocate up to a max of 8GB from that host. Not everyone is running their VM at the same time, even if they are, not everyone would be running at their limit of 8GB of memory. If it does happen that 20 users are trying to use 8GB at the same time on one host, then it’s the same as anytime an OS runs low on RAM, it would start paging out to disk, everything would slow down for everyone. If that happens too many times, they could shuffle some users’ VMs around to balance the loads across hosts.