Skip to content

vllm.distributed.ec_transfer.ec_connector.tiering.filesystem

Non-blocking interface for an encoder-cache filesystem tier.

Classes:

  • ECFileEntry –

    An entry published in the filesystem tier's in-memory index.

  • ECFileSystemTier –

    Scheduler-facing contract for the optional filesystem tier.

  • ECFileSystemTierManager –

    Capacity-bounded LRU index and lifecycle around entry I/O.

  • ECReadResult –

    Completion reported for one accepted filesystem read.

  • ECTemporaryFileOwner –

    Hold an instance lease until its writes and cleanup have finished.

  • ECWriteResult –

    Completion reported for one accepted filesystem write.

ECFileEntry dataclass

An entry published in the filesystem tier's in-memory index.

ECFileSystemTier

Bases: Protocol

Scheduler-facing contract for the optional filesystem tier.

Implementations own their worker threads and in-memory entry index. Calls made from the scheduler path must not perform filesystem I/O or wait for an I/O task. The caller keeps submitted buffers alive until the matching completion is returned by a poll method.

Methods:

  • contains –

    Return an in-memory membership decision without filesystem I/O.

  • poll_completed_reads –

    Drain currently available read completions without blocking.

  • poll_completed_writes –

    Drain currently available write completions without blocking.

  • shutdown –

    Stop accepting work and release resources owned by the tier.

  • submit_read –

    Queue a filesystem-to-CPU read without blocking.

  • submit_write –

    Queue a CPU-to-filesystem write without blocking.

contains(cache_key)

Return an in-memory membership decision without filesystem I/O.

poll_completed_reads()

Drain currently available read completions without blocking.

poll_completed_writes()

Drain currently available write completions without blocking.

shutdown()

Stop accepting work and release resources owned by the tier.

submit_read(cache_key, destinations)

Queue a filesystem-to-CPU read without blocking.

Return False when the tier is no longer accepting work. On acceptance, exactly one completion must eventually be returned by poll_completed_reads.

submit_write(cache_key, sources, file_size_bytes)

Queue a CPU-to-filesystem write without blocking.

file_size_bytes is the allocated size of all complete CPU blocks. The sources must contain every byte of every block, including undefined padding in the final block. On acceptance, exactly one completion must eventually be returned by poll_completed_writes. Return False when the tier is no longer accepting work or store pressure policy, capacity, or same-key lifecycle state skips this cache opportunity.

ECFileSystemTierManager

Capacity-bounded LRU index and lifecycle around entry I/O.

Methods:

  • contains –

    Return an in-memory membership decision without filesystem I/O.

  • drain –

    Wait for accepted I/O and retain its results for later polling.

  • io_stats –

    Return the executor's current non-blocking pressure snapshot.

  • lookup –

    Use indexed entries immediately; probe unknown files asynchronously.

  • poll_completed_reads –

    Drain currently available read completions without blocking.

  • poll_completed_writes –

    Drain currently available write completions without blocking.

  • shutdown –

    Stop submission, drain accepted I/O, and stop the executor.

  • submit_read –

    Submit a read for an indexed entry without filesystem work here.

  • submit_write –

    Submit a write; publish it in memory only after completion.

Attributes:

  • capacity_bytes (int) –

    Return the configured filesystem capacity.

  • used_bytes (int) –

    Return indexed bytes, write reservations and unconfirmed deletions.

capacity_bytes property

Return the configured filesystem capacity.

used_bytes property

Return indexed bytes, write reservations and unconfirmed deletions.

contains(cache_key)

Return an in-memory membership decision without filesystem I/O.

drain()

Wait for accepted I/O and retain its results for later polling.

io_stats()

Return the executor's current non-blocking pressure snapshot.

lookup(cache_key, file_size_bytes, request_id)

Use indexed entries immediately; probe unknown files asynchronously.

poll_completed_reads()

Drain currently available read completions without blocking.

poll_completed_writes()

Drain currently available write completions without blocking.

shutdown()

Stop submission, drain accepted I/O, and stop the executor.

submit_read(cache_key, destinations)

Submit a read for an indexed entry without filesystem work here.

submit_write(cache_key, sources, file_size_bytes)

Submit a write; publish it in memory only after completion.

ECReadResult dataclass

Completion reported for one accepted filesystem read.

ECTemporaryFileOwner

Hold an instance lease until its writes and cleanup have finished.

ECWriteResult dataclass

Completion reported for one accepted filesystem write.