Skip to content

The remoting client currently buffers all fetched blobs in memory before storing to LMDB. #17065

Description

@jsirois

That's here:

let read_result_closure = async {
let mut buf = BytesMut::with_capacity(digest.size_bytes);
while let Some(response) = stream.next().await {
// Record the observed time to receive the first response for this read.
if let Some(start) = start_opt.take() {
if let Some(workunit_store_handle) = workunit_store::get_workunit_store_handle() {
let timing: Result<u64, _> =
Instant::now().duration_since(start).as_micros().try_into();
if let Ok(obs) = timing {
workunit_store_handle
.store
.record_observation(ObservationMetric::RemoteStoreTimeToFirstByteMicros, obs);
}
}
}
buf.extend_from_slice(&(response?).data);
}
Ok(buf.freeze())
};

For things like ~GB pytorch wheel zips; that could be problematic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions