Skip to content

Commit

Permalink
Reverting unnecessary changes
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
  • Loading branch information
alexeykudinkin committed Sep 24, 2024
1 parent 4dffbf8 commit 695ee1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/ray/autoscaler/_private/command_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import click

from ray._private.ray_constants import DEFAULT_OBJECT_STORE_MAX_MEMORY_BYTES
from ray.autoscaler._private.cli_logger import cf, cli_logger
from ray.autoscaler._private.constants import (
AUTOSCALER_NODE_SSH_INTERVAL_S,
Expand Down Expand Up @@ -903,8 +904,9 @@ def _auto_configure_shm(self, run_options: List[str]) -> List[str]:
)
available_memory_bytes = available_memory * 1024
# Overestimate SHM size by 10%
shm_size = (
available_memory_bytes * DEFAULT_OBJECT_STORE_MEMORY_PROPORTION * 1.1
shm_size = min(
(available_memory_bytes * DEFAULT_OBJECT_STORE_MEMORY_PROPORTION * 1.1),
DEFAULT_OBJECT_STORE_MAX_MEMORY_BYTES,
)
return run_options + [f"--shm-size='{shm_size}b'"]
except Exception as e:
Expand Down

0 comments on commit 695ee1c

Please sign in to comment.