Skip to content

Conversation

@Evelynn-V
Copy link
Contributor

@Evelynn-V Evelynn-V commented Jan 26, 2026

Fix

  • Added comments to mset_zcopy and mget_zcopy.

  • Fix the UT tests/test_yuanrong_storage_client.py to pass the CI.

==================================================================================

Summary

When connecting to the backend of the YuanrongStorageClient, zero-copy is activated to enhance the transmission speed.

Change

  1. Modified the transfer_queue/storage/clients/yuanrong_client.py to call the zero-copy interface, and performed operations such as serialization and pack.

  2. Add mget and mset UT: tests/test_yuanrong_storage_client.py .

Testing

  • Test on CPU:

    pytest tests/test_yuanrong_storage_client.py

Result

When transmitting 512 pieces of data, each 32 MB in size, with a total data volume of 16GB:
End-to-end Get took 10s and the bandwidth was 1.6 GB/s. The time spent calling the YuanrongStorageClient interface was 2.27s with a bandwidth of 7.05 GB/s.
End-to-end Put took 3.42s and the bandwidth was 4.68 GB/s. The time spent calling the YuanrongStorageClient interface was 3.32s with a bandwidth of 4.83 GB/s.

Related Links

Signed-off-by: Evelynn-V <liwenlin0223l@gmail.com>
Signed-off-by: Evelynn-V <liwenlin0223l@gmail.com>
Signed-off-by: Evelynn-V <liwenlin0223l@gmail.com>
@Evelynn-V Evelynn-V changed the title [feat] Introduce Zero-Copy to use YuanrongStorageClient for transmitting CPU Tensors [fix] Fix the zero-copy issue of YuanrongStorageClient Jan 26, 2026
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest build pytest_asyncio
python -m pip install flake8 pytest build pytest_asyncio pytest-mock openyuanrong-datasystem
Copy link
Collaborator

Choose a reason for hiding this comment

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

You may place yuanrong and test dependencies in https://github.com/Ascend/TransferQueue/blob/main/pyproject.toml

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can do it in next PR.

@0oshowero0 0oshowero0 changed the title [fix] Fix the zero-copy issue of YuanrongStorageClient [fix] Fix UT of YuanrongStorageClient Jan 26, 2026
@0oshowero0 0oshowero0 merged commit ab3ffd5 into Ascend:main Jan 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants