XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Oversubscribe Memory

    Scheduled Pinned Locked Moved Compute
    5 Posts 2 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      hitechhillbilly
      last edited by hitechhillbilly

      Hello guys,

      Has anyone had any issues allocating more memory than the host has? I have some hosts that are at 128G for each host and even though I have dynamic memory enabled on all the VMs (Ubuntu 18.04.3) when I attempt to migrate a VM to the host that takes it over the "128G" the migration just hangs. The VMs are not using all there assigned memory when you look at the VM stats and even log in. So for example one is set for a 4G/24G range and is using only 5G. My control domain as 8GB assigned to it.

      Is there an issue with memory ballooning in XCP?

      Regards,
      Marty

      1 Reply Last reply Reply Quote 0
      • R Offline
        r1 XCP-ng Team
        last edited by

        Hi @hitechhillbilly - Generally RAM in XCP-NG is space shared. And CPU is time shared.

        DMC changes the allocated RAM to a VM (dynamically / whenever there is pressure), so whatever you see in # free -h inside guest as total, it is already given by hypervisor to the VM. And when you migrate it to another host, this Total is what is needed on the other side.

        1 Reply Last reply Reply Quote 0
        • H Offline
          hitechhillbilly
          last edited by hitechhillbilly

          Thank you r1.. So to understand the total "available" on the host recieving the VM, when looking at this screenshot I see an available of 80.5G but as you can see it is used 123 out of 128. So Am I reading this incorrectly?

          The VM says 3.5G total on a free -h.

          5fae6e96-0fc1-4def-b8b2-3e2e4c4b7f42-image.png

          1 Reply Last reply Reply Quote 0
          • H Offline
            hitechhillbilly
            last edited by hitechhillbilly

            Same for this screenshot..

            cd13800e-e35c-42ff-9bd9-1d7ff183c964-image.png

            Though if you add up all the totals of the VMs, it equals 123.4G which is the currently what the "used" number is on the other screenshot. Yet this one is showing 80.5G available as well. Seems memory reporting is not correct.

            1 Reply Last reply Reply Quote 0
            • R Offline
              r1 XCP-ng Team
              last edited by r1

              Right, if your used is 123.4/128, there seems RAM crunch to migrate anything around 4GB. Can you try migration after freeing up some RAM? Also what version of XCP-NG is being used? There is a known issue related to migration - you can find it on forum.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post