Skip to content

Commit

Permalink
[Data] Remove dead ESTIMATED_SAFE_MEMORY_FRACTION constant (ray-proje…
Browse files Browse the repository at this point in the history
…ct#44957)

ESTIMATED_SAFE_MEMORY_FRACTION isn't used anywhere, so this PR removes it (it's been superseded by ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTION).

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
  • Loading branch information
bveeramani authored Apr 24, 2024
1 parent a159072 commit 2890cd0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/ray/data/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
_default_context: "Optional[DataContext]" = None
_context_lock = threading.Lock()

# An estimate of what fraction of the object store a Dataset can use without too high
# a risk of triggering spilling. This is used to generate user warnings only.
ESTIMATED_SAFE_MEMORY_FRACTION = 0.25

# We chose 128MiB for default: With streaming execution and num_cpus many concurrent
# tasks, the memory footprint will be about 2 * num_cpus * target_max_block_size ~= RAM
Expand Down

0 comments on commit 2890cd0

Please sign in to comment.