Skip to content

Commit

Permalink
add doc for implementation for heuristic max
Browse files Browse the repository at this point in the history
Signed-off-by: dentiny <[email protected]>
  • Loading branch information
dentiny committed Dec 28, 2024
1 parent b97a14b commit 7859cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/common/cgroup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def some_function(x):
obj = some_function.remote()
```
This function is limited by 500MiB memory usage, and if it tries to use more, it OOMs and fails.
+ If a task / actor is not annotated with resource usage, ray caps max resource usage via heuristric estimation.
+ If a task / actor is not annotated with resource usage, ray caps max resource usage via heuristric estimation. This is implemented by setting a max value on `/sys/fs/cgroup/ray_node_<node_id>/application` node (see chart below).

TODO(hjiang): reserve minimum resource will be supported in the future.

Expand Down

0 comments on commit 7859cd1

Please sign in to comment.