Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate NUMA support and sockets equal to NUMA nodes for resize and pin #76

Merged
merged 2 commits into from
Jul 20, 2022

Commits on Jul 20, 2022

  1. core: validate amount of sockets equal to that of numa nodes

    When running a VM with 'Resize and Pin' CPU pinning policy, the algorithm
    expects the host to have the same number of sockets and NUMA nodes. That
    way the algorithm fits the topology and leaves the first core on each
    socket free to the host.
    
    This patch filters out hosts that don't have an equal number of sockets
    and NUMA nodes when trying to run a VM with CPU pinning policy
    `Resize and Pin`.
    
    Change-Id: Icdc1ac910eb733f6edd861d0505fb90a581224b5
    Bug-Url: https://bugzilla.redhat.com/1955388
    Signed-off-by: Liran Rotenberg <lrotenbe@redhat.com>
    liranr23 authored and ahadas committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    71c474f View commit details
    Browse the repository at this point in the history
  2. scheduling: filter numa-less hosts to resize vms

    When having `Resize and Pin NUMA` VM that tries to schedule on a host,
    it shouldn't run on a host without NUMA support.
    This patch filter these host in the above scenario.
    
    Change-Id: I41ae6d54625a2c14b749f6393c29059cbd53a6d7
    Bug-Url: https://bugzilla.redhat.com/2056950
    Signed-off-by: Liran Rotenberg <lrotenbe@redhat.com>
    liranr23 authored and ahadas committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    be91450 View commit details
    Browse the repository at this point in the history