arXiv:2610.06646cs.DCOct 2026

Manuscript Offprint

arXiv:2610.06646

OrigaMIG: MIG-Aware VM Placement with a Neighborhood-Restricted BILP and Live Migration

Ahmad Siavashi, Mahmoud Momtazpour

Abstract

The extensive use of GPUs in cloud computing, accelerated by the spread of large language model (LLM) services, and the growing need for multitenancy have driven the development of innovative solutions for efficient GPU resource management. Multi-Instance GPU (MIG) technology from NVIDIA enables shared GPU usage in cloud data centers by providing isolated instances, which are offered as MIG-backed virtual GPUs (vGPUs). However, MIG placement rules often lead to fragmentation and suboptimal resource allocation. In this work, we formally model the MIG-aware virtual machine (VM) placement as a binary integer linear programming (BILP) problem aimed at maximizing request acceptance, consolidating resources, and reducing migration overhead. Building upon this formulation, we propose OrigaMIG, a MIG-aware placement optimizer. OrigaMIG places each arriving request at once with a lightweight greedy rule and calls the solver only when a request cannot be placed or the GPUs of a class become fragmented. Each call solves the BILP on a small neighborhood of physical machines (PMs), keeps the rest of the data center fixed, and executes the solution as live migrations. We compare OrigaMIG with the default placement and with two state-of-the-art MIG-aware policies in simulation, across six loads, eleven variants of the workload and the hardware, and data centers of up to 4096 PMs. On 256 A100 and A30 GPUs in 128 PMs, OrigaMIG keeps fewer PMs active than the stronger policy in 29 of 30 paired runs while migrating 29%29\% to 49%49\% fewer VMs, and it uses the least energy per admitted GPU-hour at every load. Against the default placement, it keeps up to 12.5%12.5\% fewer PMs active and admits up to 7.8 percentage points more of the requested GPU memory. On small data centers, it stays within 4.1%4.1\% of the optimal number of active PMs.

Keywords: Cloud Computing, Resource Management, VM Placement, GPU Defragmentation, NVIDIA Multi-Instance GPU

1. Introduction

The rapid expansion of machine learning, data analytics, and high-performance computing (HPC) workloads has positioned GPUs at the heart of cloud computing services, a role amplified by the spread of self-hosted LLM services [1]. While GPUs offer exceptional parallel processing capabilities, they also introduce challenges in scheduling and resource sharing. Traditional scheduling methods, designed for standalone, monolithic GPUs, struggle to efficiently allocate resources when multiple tenants need to share a single GPU [2–6].

NVIDIA's MIG technology, available on Ampere and Hopper GPUs [7], partially addresses this challenge by partitioning a single GPU into multiple isolated and heterogeneous instances, each with dedicated memory and compute slices. This approach enhances performance isolation, enabling multiple workloads to run on the same GPU. However, MIG enforces rigid rules for slice alignment and profile placement, which can lead to fragmentation, where memory slices become unusable or inefficiently allocated, ultimately reducing overall resource efficiency [8].

The NVIDIA A100 40GB, a MIG-enabled GPU, comprises 7 compute slices and 8 memory slices, each providing 5 GB of memory for a total capacity of 40 GB. It supports six distinct MIG GPU instance (GI) profiles, as shown in Table 1, with each profile combining specific numbers of compute slices and memory slices. These profiles follow a naming convention, where the first digit is the number of compute slices and the second number is the memory in GB. While enabling MIG mode is a necessary first step, creating GPU instances and their corresponding compute instances (CIs) is also required. However, this paper focuses exclusively on GIs, leaving details about CIs outside its scope. A VM receives a GI as a MIG-backed vGPU [9], with one vGPU per GI; the required profile is set by the workload the VM hosts, not by the scheduler. NVIDIA vGPU software supports live migration of such a VM, and requires that the destination GPU hosts a GI of the same profile.

Table 1: GPU instance profiles on A100 40GB

ProfileComputeMemoryInstancesStart Slices
1g.5gb1/71/870, 1, 2, 3, 4, 5, 6
1g.10gb1/72/840, 2, 4, 6
2g.10gb2/72/830, 2, 4
3g.20gb3/74/820, 4
4g.20gb4/74/810
7g.40gb7/78/810

Email addresses: a.siavashi@outlook.com (Ahmad Siavashi), momtazpour@aut.ac.ir (Mahmoud Momtazpour)

Figure

(a) Non-contiguous memory slices

Figure

(b) Restriction on start slice

Figure

(c) Rearrangement of allocated slices

Figure 1: MIG fragmentation scenarios

Specific rules determine the allocation of GIs on MIG-enabled A100 GPUs, as detailed in NVIDIA's documentation [7]. This work adopts a perspective focused on memory slices rather than compute slices for greater intuitiveness. The start slices in Table 1 already account for the compute slices, since the number of instances of a profile is the smaller of the bounds set by the memory slices and the compute slices of the GPU. No arrangement of profiles on the memory slices therefore exceeds the compute slices. These allocation principles are followed in other MIG-enabled GPUs.

The rules for placing MIG profiles present challenges in the allocation of GIs. GIs are created and destroyed in response to accepted and completed requests, from short batch jobs to the long-lived tenants of self-hosted LLM serving, which can lead to fragmentation. Fig. 1(a) depicts a common fragmentation scenario where, due to non-contiguous memory slices, it is impossible to allocate either 1g.10gb or 2g.10gb GIs. In MIG, however, having contiguous free memory slices does not always ensure GI allocation. Fig. 1(b) depicts a situation where the displayed MIG profiles cannot be assigned to the specified contiguous slices, owing to the lack of availability of their necessary start slices. Furthermore, Fig. 1(c) illustrates a scenario where compacting the allocated slices on the GPU allows for the assignment of an additional 1g.5gb profile. These illustrations show traditional external fragmentation and the placement fragmentation specific to MIG, where contiguous slices remain free but their necessary start slices are unavailable.

In large-scale cloud environments, fragmentation worsens as MIG partitions are continuously created and removed to accommodate shifting user demands. GPUs account for most of the cost of these machines, and their placement rules leave capacity unusable where CPU and RAM would not. A naive or short-sighted allocation strategy can quickly lock GPUs into a suboptimal state, limiting the acceptance of high-priority requests and increasing the number of active GPUs. To our knowledge, no existing placement strategy accounts for MIG's strict placement constraints when placing VMs across a heterogeneous, multi-host data center.

This article makes the following contributions.

  • An analysis of the default GI placement policy of MIG (Section 3). We analyze the configuration flexibility (CF) of a GPU, its number of free start slices summed over the GI profiles, show that the default policy puts each GI where it maximizes CF, and find that 67% of the 723 configurations of an A100 arrange their GIs suboptimally. As a count of free start slices, CF enters the objective of the BILP as a linear term.

  • A BILP model of MIG-aware VM placement across a heterogeneous data center with several GPUs per PM (Section 4). It models the start slices of each GI profile and the CPU and RAM of the PMs, and its objective weighs the admitted requests, the active PMs and GPUs, and the migrations of running VMs.

  • OrigaMIG, an online optimizer built on this model (Section 5). It admits requests on a fast greedy path and rearranges GIs on a slow path. A request that the greedy rule cannot place triggers an admission call, and a fragmented class of GPUs triggers a consolidation call. Each call solves the BILP on a neighborhood of at most 16 PMs with the rest of the data center fixed, and executes the solution as an ordered sequence of live migrations of MIG-backed vGPUs [9]. OrigaMIG never removes a running VM.

  • An evaluation in simulation against the default placement and two state-of-the-art MIG-aware policies, MFI [10] and TC [11], adapted to VMs on PMs (Section 6). The default placement, FF, pairs first-fit host selection with the default GI placement of Section 3. The evaluation covers loads from 0.5 to 1.2 on 128 PMs with A100 and A30 GPUs, eleven variants of the workload and the hardware, including a production trace, the cost of migrations, an ablation of OrigaMIG, data centers of up to 4096 PMs, and the energy of the PMs and GPUs.

  • A comparison of OrigaMIG with the optimal placement on data centers of 8 to 32 PMs, and a measurement of how the time to solve the BILP over a whole data center grows (Sections 6.8 and 6.9).

On 128 PMs, about the size of one partition of a data center such as a row or a pod, OrigaMIG keeps fewer PMs active than TC, the stronger baseline, in 29 of 30 paired runs over six loads, while migrating 29% to 49% fewer VMs. Against the default placement (FF), it keeps up to 12.5% fewer PMs active, against 9.1% for TC, admits up to 7.8 percentage points more of the requested GPU memory, and uses the least energy per admitted GPU-hour at every load. Across eleven variants of the workload and the hardware, OrigaMIG keeps fewer PMs active than TC in seven, about as many in one, and more in the three with the largest VMs relative to their GPUs. One instance of OrigaMIG serves up to about 1024 PMs, so a larger data center runs one instance per partition of its PMs. On data centers of 8 to 32 PMs, OrigaMIG stays within 4.1% of the optimal number of active PMs, with calls of about one second or less.

The remainder of this paper is structured as follows. Section 2 reviews related work, while Section 3 describes the default GI placement policy. Section 4 formalizes the problem as a BILP model, and Section 5 presents our proposed optimizer, OrigaMIG, which rearranges GIs by solving the BILP on small neighborhoods of PMs. Section 6 provides an evaluation of OrigaMIG, Section 7 discusses its use and its limits, and Section 8 concludes with future directions.

References (40)