vllm.distributed.ec_transfer.ec_connector.tiering.io
¶
Raw-tensor filesystem I/O for encoder-cache entries.
Functions:
-
load_entry–Read a complete entry into writable CPU destination buffers.
-
remove_entry–Remove an entry file, treating an already absent file as success.
-
store_entry–Write a complete entry to a temporary file, then publish atomically.
_consume(buffers, completed_size_bytes)
¶
Advance pending views past bytes completed by the last I/O call.
Source code in vllm/distributed/ec_transfer/ec_connector/tiering/io.py
_get_iov_max()
¶
Return the system limit for buffers in one readv/writev call.
Source code in vllm/distributed/ec_transfer/ec_connector/tiering/io.py
_prepare_buffers(buffers, file_size_bytes, *, writable)
¶
Validate buffers and return zero-copy views measured in bytes.
Source code in vllm/distributed/ec_transfer/ec_connector/tiering/io.py
_transfer_all(fd, buffers, transfer, operation)
¶
Run readv/writev until all buffers are transferred.
Source code in vllm/distributed/ec_transfer/ec_connector/tiering/io.py
load_entry(entry_path, destinations, file_size_bytes)
¶
Read a complete entry into writable CPU destination buffers.
Source code in vllm/distributed/ec_transfer/ec_connector/tiering/io.py
remove_entry(entry_path)
¶
store_entry(entry_path, temporary_path, sources, file_size_bytes, *, fsync=False)
¶
Write a complete entry to a temporary file, then publish atomically.