Commit ab3ffd5
authored
[fix] Fix UT of
### 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
- Pending fix for the gitcode pull request [[feat] Introduce Zero-Copy
to use YuanrongStorageClient for transmitting CPU
Tensors](https://gitcode.com/Ascend/TransferQueue/pull/10)
- Previous issues can be viewed: [[Feat]: Try zero-copy serialize
objects that can be converted to
memoryview](TransferQueue/TransferQueue#147)
- Yuanrong Datasystem PR:
[https://atomgit.com/openeuler/yuanrong-datasystem/pull/141](https://atomgit.com/openeuler/yuanrong-datasystem/pull/141)
---------
Signed-off-by: Evelynn-V <liwenlin0223l@gmail.com>YuanrongStorageClient (#12)1 parent b221e2a commit ab3ffd5
3 files changed
Lines changed: 19 additions & 5 deletions
File tree
- .github/workflows
- tests
- transfer_queue/storage/clients
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
197 | 211 | | |
198 | 212 | | |
199 | 213 | | |
| |||
0 commit comments