Skip to content

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.

_get_iov_max()

Return the system limit for buffers in one readv/writev call.

_prepare_buffers(buffers, file_size_bytes, *, writable)

Validate buffers and return zero-copy views measured in bytes.

_transfer_all(fd, buffers, transfer, operation)

Run readv/writev until all buffers are transferred.

load_entry(entry_path, destinations, file_size_bytes)

Read a complete entry into writable CPU destination buffers.

remove_entry(entry_path)

Remove an entry file, treating an already absent file as success.

store_entry(entry_path, temporary_path, sources, file_size_bytes, *, fsync=False)

Write a complete entry to a temporary file, then publish atomically.