Skip to content

Deployment Planning

VM Pre-copy: Why More Transferred RAM Can Leave More State Pending

A running VM can change RAM after its earlier values have reached the destination. Those pages need sending again, so cumulative transferred payload can grow while pending RAM stays unchanged. Judge a pre-copy progress claim by the current page population still pending and the writes that make delivered values stale. In RAM16, both alternatives first send 8 GiB in 4 seconds, yet one leaves 4 GiB pending and the other leaves all 8 GiB pending.

Technical contentPublished Updated

01

Follow the page value after delivery

Suppose a supported, compatible non-GPU VM continues running on the source while its RAM is copied. A page reaches the destination with the value it held when copied. A subsequent guest write can make that delivered value stale. Sending the page once therefore differs from having its current value available at the later observation boundary.

Three quantities help explain the distinction. Delivered page values are the versions already supplied to the destination. Pending RAM is the population that still needs sending, including pages never delivered and pages made dirty again after their latest delivery. Cumulative RAM payload adds the bytes sent across deliveries, including repeat copies of the same pages. A repeat delivery increases that cumulative quantity without creating another page in the guest.

The official QEMU v9.2.4 documentation provides a historical implementation reference for this mechanism. It describes iterative RAM transfer and a pre-copy bitmap updated by guest writes. Its migration interface also separates transferred bytes from remaining bytes. The paper model below isolates those different quantities; it does not establish support for any actual VM or accelerator configuration.

References: [Q-FRAME] [Q-POST] [Q-STATS]

02

RAM16 fixes the population, rate and observation boundary

RAM16 is original fictional arithmetic for exactly 8 GiB of counted guest RAM. Divide it into sixteen groups, G0 through G15, each containing 512 MiB. Stipulate 4 KiB pages: each group contains 131,072 pages, and the whole population contains 2,097,152 pages. Here 1 GiB equals 1,024 MiB, and 1 MiB equals 1,024 KiB. The groups simplify bookkeeping; they are not a QEMU transfer granularity.

The constant counted-RAM payload rate is exactly 2 GiB/s. At each round's start, identify the pending set and send every page in that set once. At the next boundary, the stipulated writes after each page's latest delivery determine which pages are pending again. The first round starts with all sixteen groups pending. Its payload transfer takes 8 GiB / 2 GiB/s = 4 seconds.

The two alternatives retain that same population, rate and round rule. They change only the after-copy write population. A group's inclusion means its counted pages are written after their latest delivery, leaving those values pending at the boundary. The write ordering is supplied directly, rather than inferred from an application write-byte counter.

All reported times count only the stipulated RAM payload transfer. Exclude setup, framing and network overhead, compression, zero-page and deduplication behavior, storage, CPU/device state, failure and retry, and support validation. This is neither VM telemetry, a benchmark nor a simulation of QEMU's scheduling. The excluded work is not assigned a duration of zero in a real migration.

03

A: half the just-copied population becomes pending again

In alternative A, precisely half of each round's copied groups are written after their latest delivery, and no other counted pages change. Choose the nested sets explicitly: G0–G7 after round 1, G0–G3 after round 2, G0–G1 after round 3, and G0 after round 4.

Round 1 sends 8 GiB in 4 seconds and leaves eight groups, or 4 GiB, pending. Round 2 sends those 4 GiB in 2 seconds and leaves four groups, or 2 GiB. The cumulative payload is now 12 GiB over 6 seconds of payload transfer.

Round 3 sends the pending 2 GiB in 1 second and leaves two groups, or 1 GiB. Cumulative payload reaches 14 GiB over 7 seconds. Round 4 sends that 1 GiB in 0.5 seconds and leaves one 512 MiB group, or 0.5 GiB. Across the four rounds, 8 + 4 + 2 + 1 = 15 GiB has been sent over 4 + 2 + 1 + 0.5 = 7.5 seconds.

A's pending sequence decreases from 4 to 2 to 1 to 0.5 GiB at the four boundaries. It still ends with a nonzero pending population. The sixteen original groups remain the complete counted RAM; the extra cumulative payload consists of later deliveries of some of those same pages.

04

B: the entire population becomes pending again

Alternative B stipulates that every group in the entire 8 GiB population is written after its latest delivered value during each round. All sixteen groups are therefore pending at every boundary. Copying them again does not reduce the next pending set under these unchanged premises.

Round 1 sends 8 GiB in 4 seconds and leaves 8 GiB pending. Round 2 sends another 8 GiB in another 4 seconds. Its cumulative payload reaches 16 GiB over 8 seconds, with the same 8 GiB still pending.

Rounds 3 and 4 each repeat that 8 GiB transfer and leave all sixteen groups pending again. The respective cumulative totals are 24 GiB over 12 seconds and 32 GiB over 16 seconds. B has sent four times the initial RAM population without reducing the remaining population at any of these boundaries.

That result follows from the stipulated after-copy writes. It does not mean that transfer creates additional guest RAM or that this VM is impossible to migrate under different workload, support or policy conditions.

05

More payload does not identify the smaller pending population

The common first-pass boundary makes the difference especially clear. Both alternatives have sent exactly 8 GiB after 4 seconds of payload transfer. A has 4 GiB pending; B has 8 GiB pending. Initial RAM divided by payload rate has answered the first-pass question while leaving the freshness question dependent on the writes.

The later totals reverse a tempting progress ranking. B's second boundary reports 16 GiB sent with 8 GiB pending; A's fourth reports 15 GiB sent with only 0.5 GiB pending. After four rounds each, B reports 32 GiB sent and 8 GiB pending, while A reports 15 GiB sent and 0.5 GiB pending. These are the labeled round boundaries and transfer durations below, not an assertion that the later observations occur at the same elapsed time.

Subtracting cumulative payload from initial RAM cannot reconstruct the remaining set. In B, 8 − 16 would produce a meaningless negative remainder after round 2. In A, 8 − 8 would incorrectly imply nothing remains after round 1. The missing information is which pages need another current delivery. The additional traffic itself is not the cause of B's larger pending set; the different write premise is.

RAM16: original fictional payload accounting at each round boundary
Alternative / roundPending at start (GiB)Round transfer (s)Cumulative payload (GiB)Cumulative transfer (s)Pending at end (GiB)Source
A / 184844Planning analysis
A / 2421262Planning analysis
A / 3211471Planning analysis
A / 410.5157.50.5Planning analysis
B / 184848Planning analysis
B / 2841688Planning analysis
B / 38424128Planning analysis
B / 48432168Planning analysis

Each round sends its complete starting pending set once at 2 GiB/s. The end set follows the stated after-copy writes. These are calculated RAM payload quantities, not measured migration counters or completion times.

06

Ask which pages changed, over which interval

A high application write-byte total need not describe a large distinct dirty-page population. In a separate fictional comparison, 100 writes within one 4 KiB page touch one distinct page; one write in each of 100 different 4 KiB pages touches 100 distinct pages. Neither statement gives application bytes written without the write lengths. For RAM16, the further decisive condition is that the stipulated writes occur after the affected pages' latest delivery.

QEMU v9.2.4's dirty-rate comments distinguish sampling estimates and tracking methods, and explain that repeated writes to an already counted page do not increase that interval's dirty population. The measurement interval matters. Its dirty-rate result uses MiB/s; the migration throughput field named mbps uses megabits/s. Those units cannot be exchanged.

Ask the platform owner to identify the method, interval, page size, units and relationship to the migration observation. An unqualified average dirty rate cannot supply RAM16's precise after-copy sets. Replacing those sets with another workload premise requires a new comparison.

References: [Q-STATS]

07

Close the RAM question before crediting a cutover claim

For a real progress report, connect the counted RAM population, cumulative transfer and pending observation to the same migration attempt and observation time. Ask what the remaining figure includes and whether it is estimated or exact. QEMU v9.2.4's framework distinguishes those pending amounts, uses iterative chunks and transmits final remaining state. Most non-iterative device state is sent with the CPUs paused.

A report supplying only initial RAM, a payload rate and first-pass completion leaves the current pending population unresolved. A growing byte counter supplies more transfer history. To establish a shrinking RAM tail, the report needs applicable evidence of the pending population over time, with the guest's write behavior and observation basis explained. RAM16 A supplies a decreasing sequence under its premises; B supplies no decrease under its unchanged premises.

Neither sequence selects a real cutover threshold, pause duration or total migration completion time. A has not finished after four rounds. B's result cannot be silently changed by assuming different writes or a different migration policy. The historical post-copy documentation itself recognizes that pre-copy can fail to converge or take too long; that observation supplies no recommendation to switch modes.

Complete VM transfer and application return require additional evidence beyond this RAM account. Use the related checkpoint guide to identify captured application state, the EBS guide for static snapshot-block initialization, and the recovery-objectives guide for valid recovered state and usable service. A pending-RAM result does not establish any of those outcomes.

References: [Q-FRAME] [Q-POST]

08

Give any physical move its own equipment brief

If the wider project also includes moving physical equipment, the related physical migration guide addresses asset identity, origin and destination records, custody and installation handoffs. Leviathan's Physical Equipment Relocation service and its project inquiry below are appropriate for discussing that separate package.

Bring a nonconfidential asset summary, origin and destination, requested handling and installation stages, site dependencies and required handoff records to discuss scope and availability. The appointed platform and application owners retain VM/software migration and service acceptance. A physical relocation package establishes no pre-copy condition or continuity result.

References: [L1]

09Sources

Primary sources

  1. [Q-FRAME]
    QEMU v9.2.4: Migration frameworkChecked 2026-10-21. Historical tagged developer documentation: live transfer, iterative RAM, pending estimates/exact amounts and final state. Supports the conceptual distinction; establishes no actual VM compatibility or pause duration.
  2. [Q-STATS]
    QEMU v9.2.4: Migration interface and dirty-rate definitionsChecked 2026-10-21. Historical transferred/remaining, phase-byte, page-size and interval/method definitions. RAM16 figures are separate stipulated arithmetic.
  3. [Q-POST]
    QEMU v9.2.4: Postcopy conceptual introduction and source-side page bitmapChecked 2026-10-21. Historical recognition of pre-copy convergence limits and guest-write updates to pending pages. No mode selection, recovery method or operational recommendation is adopted.
  4. [L1]
    Leviathan Systems: Physical Equipment Relocation & LogisticsChecked 2026-10-21. Separate origin-to-destination physical equipment package, custody, receiving and agreed installation records. Tasks, resources and availability are engagement-specific.

Contact

Does the wider project include a physical equipment move?

Share a nonconfidential asset summary, origin and destination, requested physical stages and handoff needs to discuss relocation scope, requirements and availability.