ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.92k stars 5.77k forks source link

[docs][core] Missing guidance on physical memory model in Ray #25890

Open stephanie-wang opened 2 years ago

stephanie-wang commented 2 years ago

Description

We have a lot of different types of memory in Ray:

  1. Plasma shared memory
  2. Local disk / external storage for spilling
  3. Fallback allocation to /tmp
  4. Heap memory (which varies depending on whether shared memory objects support zero-copy reads or not)

I looked in the docs but I don't see a definitive guide on how these relate to each other, and common performance gotchas like:

cc @ericl @scv119

Link

No response

rkooo567 commented 2 years ago

cc @jjyao