Skip to content

[TENT] Add MLU support to tebench - #4703

Merged
staryxchen merged 5 commits into
kvcache-ai:mainfrom
lhzds:oulihan/tent-tebench-mlu
Oct 19, 2026
Merged

staryxchen merged 5 commits into
kvcache-ai:mainfrom
lhzds:oulihan/tent-tebench-mlu

Conversation

@lhzds

@lhzds lhzds commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

In a USE_MLU build, TENT's tebench backend rejects --seg_type=VRAM. Add MLU device selection, allocation and NUMA affinity for VRAM and mixed DRAM/VRAM runs. Initialize and verify device payloads through CNRT, using the existing host data patterns.

Explicit transport selection also enables the MLU local-copy transport needed for host staging. Skip NUMA pinning when the allocation's location cannot be queried. Mark staging buffers as internal during registration so subsequent initiators cannot select them as benchmark buffers when reusing a target.

Transfers use TENT's MLU support, merged in #4691.

Suggested Merge Priority

  • P2 — Normal: New feature for MLU benchmark runs.

Module

  • Transfer Engine (mooncake-transfer-engine)
  • Docs

Type of Change

  • New feature
  • Bug fix
  • Documentation update

How Has This Been Tested?

Two MLU580-X6 hosts, each with 16 visible devices (48 GiB per device), driver 6.5.42 and CNRT 7.7.3. Built with USE_TENT=ON, USE_MLU=ON, USE_CUDA=OFF against main 0e626c57; the same binaries were run on both hosts.

  • 13 related test binaries passed on each host: 257 cases, no skips. These include configuration selection, device payload initialization and verification, corruption detection, staging-buffer visibility, and the existing MLU platform, transport and engine tests.
  • Both the original and updated MLU data tests passed 100 repetitions per host and detected injected worker failures. The configuration regression fails when explicit MLU transport enablement is removed.
  • 56 two-host runs passed over TCP and HP TCP, with each host acting as initiator. These cover VRAM, mixed DRAM/VRAM, host/device endpoints, target reuse, explicit/automatic transport selection and READ/WRITE. Of these, 36 runs checked payload contents. Cases use 1–4 threads, batch sizes 1–4, a 17-byte target offset, and 64 KiB–64 MiB blocks, including 4 MiB + 17 bytes across a staging chunk boundary.
  • A CPU-only build passed 56 related unit cases on one host. The documentation build and PR-scoped pre-commit checks passed.

Build and run the regression suites added or extended here:

cmake -S . -B build-mlu -DUSE_TENT=ON -DUSE_MLU=ON -DUSE_CUDA=OFF \
  -DNEUWARE_ROOT=/usr/local/neuware -DBUILD_BENCHMARK=ON \
  -DBUILD_UNIT_TESTS=ON -DWITH_STORE=OFF
cmake --build build-mlu --target tebench tebench_mlu_data_test \
  tebench_tent_config_test tent_stage_buffer_concurrency_test -j8
ctest --test-dir build-mlu --output-on-failure \
  -R '^(tebench_mlu_data_test|tebench_tent_config_test|tent_stage_buffer_concurrency_test)$'

Target/initiator commands are in the updated tebench documentation.

These runs checked TCP/HP TCP functionality and data correctness.

Checklist

  • I have performed a self-review of my own code
  • I have formatted my code using ./scripts/code_format.sh
  • I have run pre-commit on the files changed in this PR and all hooks pass
  • I have updated the documentation
  • I have added tests to prove my changes are effective

AI Assistance Disclosure

  • AI tools were used: OpenAI Codex assisted with implementation, review and testing.

@alogfans alogfans added P3 P2 and removed P3 labels Oct 16, 2026
@lhzds lhzds changed the title [TENT] Add MLU VRAM support to tebench [TENT] Add MLU support to tebench Oct 16, 2026
Signed-off-by: lhzds <69680504+lhzds@users.noreply.github.com>
lhzds added 2 commits October 19, 2026 12:05
Signed-off-by: lhzds <69680504+lhzds@users.noreply.github.com>
Signed-off-by: lhzds <69680504+lhzds@users.noreply.github.com>
@lhzds
lhzds requested a review from staryxchen October 19, 2026 04:51

@staryxchen staryxchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@staryxchen
staryxchen merged commit 74944a7 into kvcache-ai:main Oct 19, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation P2 run-ci Transfer Engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants