Skip to content

Releases

libkfdreplay v0.1.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:53
089b146
  • Warm and cold checkpoints now refuse to proceed after a recorder table
    drops state. The diagnostic names the first table that filled. This
    covers events, queues, buffer objects, mappings and event waiters.
    Previously a checkpoint could succeed with a live event missing after
    8,192 event creations. Long-running processes that reach this limit
    must restart before taking another checkpoint.
  • Capacity is checked again after copying GPU memory and before teardown.
    A refusal frees the temporary copies and leaves the application running.
    GPU-free regression tests cover exhaustion through the ioctl hooks and
    the public checkpoint API.

Qualification

The tagged x86-64 Linux package passed preload and export checks on Ubuntu 22.04 and 24.04 and a real DMTCP cold cycle on Ubuntu 24.04. Its binary and archives match the rehearsal built from the same commit. warmctl also completed a native x86-64 bake and restore with this exact library, real DMTCP, and simulated AMD devices. Tag verification · warmctl integration test

Physical MI350X qualification was performed with v0.1.2-rc.1. Rebuilding the release source with the RC version string reproduced the published RC binary byte-for-byte. A fresh MI350X run of the final binary was unavailable. MI350X results and batching limits

libkfdreplay v0.1.2-rc.1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Nov 18:27
  • Refuse warm and cold checkpoints once a recorder table drops an event,
    queue, buffer object, device mapping, per-buffer GPU mapping or event waiter.
    The error names the first exhausted table. Previously a later successful
    checkpoint could omit a live event after 8,192 event creations.
  • Recheck recording capacity after the GPU memory copy and before teardown.
    A refusal releases the temporary copies and lets the application continue.
  • Add GPU-free boundary tests through the ioctl hooks and checkpoint API.
    This candidate is intended for hardware qualification.

libkfdreplay v0.1.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 15:39

Library (libkfdreplay.so)

  • Track live DRM GEM handles in a bitmap (up to 2^20 handle ids) instead of a
    fixed 1024-entry list. Under vLLM's sleep-mode allocator a large model holds
    thousands of GEM handles at once; the old list overflowed
    (drm_track_overflow) and every checkpoint was refused, even though all
    handles were released before it. Handle ids beyond the bitmap still count as
    overflow and refuse the checkpoint (fail-closed). Verified on MI350X with
    Qwen3.8-Flash-Next FP8 (180B-A6B) on vLLM 0.33.0+rocm100 through warmctl:
    bake and restore succeed with overflow 0.

libkfdreplay v0.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 21:25

Initial public release of libkfdreplay, ported from the kfdreplay2 research prototype.

Library (libkfdreplay.so)

  • Split the prototype into modules (hooks, checkpoint, restore, xlate,
    topology, log, state, api) with hidden symbol visibility; only the
    public kfdr_* API and the interposed libc functions are exported.
  • Added kfdr_version(), kfdr_state() and kfdr_last_error().
  • Fixed thread unfreezing on early checkpoint refusals (WAIT_EVENTS timeout
    and busy AQL queue) so a refused checkpoint leaves the process usable.
  • Unified diagnostic switches (KFDR_DEBUG=1, KFDR_TRACE=1, KFDR_CRASH=1,
    /tmp/kfdr_trace, /tmp/kfdr_pause).

Cold-cycle harness, examples and tests

  • Added scripts/cold_cycle.sh, scripts/env.sh, scripts/install_dmtcp.sh,
    scripts/evict_page_cache.py and scripts/fingerprint.py.
  • Hardened scripts/cold_cycle.sh against real DMTCP runs (verified on x86-64
    Linux with TensorRails/dmtcp v5.0.0-warmctl.2):
    • protected the caller's ancestor chain and subshells from kill_tree() and
      orphan checks so cold_cycle.sh and outer wrappers (examples/*/run.sh)
      never match or kill themselves;
    • tracked per-cycle processes via coordinator --list, isolated
      DMTCP_TMPDIR and KFDR_CYCLE_ID across all chain ports (PORT,
      PORT + 1 + 2*i), including unprivileged containers where PR_SET_MM
      cannot restore /proc/<pid>/cmdline;
    • closed stdin (</dev/null) on DMTCP/gdb invocations and reaped the
      watchdog's sleep child on unwatch so piped scripts and $() command
      substitutions neither lose stdin nor hang waiting on open descriptors;
    • replaced bc arithmetic with awk.
  • Fixed examples/vllm_offline/run.sh, examples/vllm_serve/run.sh and
    examples/vllm_serve/serve_cr.py so reference baseline.json runs are not
    forced into HF_HUB_OFFLINE=1 before model weights are cached, added NEG=1
    pass-through to examples/vllm_offline/run.sh, and reaped the EngineCore
    child in examples/vllm_offline/vllm_mp.py before source exit.
  • Cleaned up DMTCP ckpt_*_files/ directories and restart scripts alongside
    ckpt_*.dmtcp when -K is not set.
  • Added GPU-free unit tests (make test) and a real-DMTCP harness integration
    test (make test-dmtcp / tests/test_cold_cycle.sh) wired into CI.
  • Re-verified the modular library and scripts/cold_cycle.sh on MI350X
    (ROCm 10.1 TheRock, PyTorch 2.13, vLLM 0.29, TensorRails/dmtcp
    v5.0.0-warmctl.2): HIP toy (5 ring boundary positions + negative test),
    PyTorch + HIP graph (3 cycles, 4-generation chain + negative test), vLLM VMM
    pool, vLLM sleep(2) in-process (3/3 + negative test) and mp executor (3/3
    including cold page-cache eviction), and vllm serve over HTTP.