[Bug Report] App templates using the same image and configuration result in inconsistent sandbox creation latency

Author: Hw-TinYCreated Sep 21, 2026Updated Sep 24, 2026
Labelsbugarea/Cubeletarea/hypervisorneeds-triagelifecyclebug-report-fixes-under-reviewarea/Performance

Summary

When creating application templates using the same image and configuration in CubeSandbox, the resulting templates exhibit significant and unpredictable performance variance during sandbox creation — despite no product-level differences between them.

A consistent pattern emerges: the first template created after a physical machine reboot is always the fastest, while subsequent templates from the same image/config yield fluctuating and often noticeably worse performance (degradation ranging from ~1.2x to ~1.7x of the baseline). This issue has been confirmed on ARM64 machines and is not reproducible on x86_64.

Environment

  • Software version: CubeSandbox v0.5.1; also reproducible on v0.7.1 (not version-specific)
  • Host OS: Both OpenCloud and OpenEuler
  • Host Kernel: 6.6.0
  • Hardware: ARM64 (aarch64)
  • Guest image / artifact: Identical across all tested templates (same artifact ID, same image digest)

Steps to Reproduce

  1. Reboot a physical ARM64 machine running CubeSandbox
  2. Create the first application template from an image (standard template creation API)
  3. Immediately create a second template from the same image and configuration (same artifact, same spec fingerprint, same kernel)
  4. Benchmark both templates under the same concurrency — measure client-side avg sandbox creation latency
  5. Optionally create additional templates (3rd, 4th, …) and benchmark each

Expected Behavior

Templates created from identical images and configurations should produce sandboxes with consistent creation latency. Template quality should not depend on creation order or whether the machine was recently rebooted.

Actual Behavior

The first template after a reboot performs best. All subsequent templates from the same image/config show degraded and erratic performance that fluctuates with no correlation to product-level configuration:

Template Context avg latency p95 latency Throughput
1st After reboot (cold pipeline) Baseline (fastest) Baseline Baseline
2nd Seconds later (warm pipeline) ~1.6x slower ~1.6x slower ~0.64x
Subsequent Variable pipeline timing Fluctuates (1.0x–1.7x of baseline) — —

Additional Context

The issue is specific to ARM64 — x86_64 machines with the same CubeSandbox versions, images, and configurations do not exhibit this variance. No product-level differences (spec fingerprint, artifact ID, image digest, kernel version) exist between the affected templates.

Source: TencentCloud/CubeSandbox