-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT-#4574: Warn users when pre-initialized Ray cluster is not using all available memory #4575
base: master
Are you sure you want to change the base?
Conversation
@@ -219,6 +219,17 @@ def initialize_ray( | |||
if not GPU_MANAGERS: | |||
for i in range(GpuCount.get()): | |||
GPU_MANAGERS.append(GPUManager.remote(i)) | |||
else: | |||
ray_obj_store_mem = ray.available_resources()["object_store_memory"] | |||
virtual_memory = psutil.virtual_memory().total |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, in this context you might want to use available since there could be other processes running that are consuming memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Free vs. available memory in Linux: https://haydenjames.io/free-vs-available-memory-in-linux/
Codecov Report
@@ Coverage Diff @@
## master #4575 +/- ##
==========================================
+ Coverage 86.22% 89.40% +3.18%
==========================================
Files 228 229 +1
Lines 18451 18727 +276
==========================================
+ Hits 15909 16743 +834
+ Misses 2542 1984 -558
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
… using all available memory Signed-off-by: Rehan Durrani <[email protected]>
Signed-off-by: Rehan Durrani <[email protected]>
Signed-off-by: Rehan Durrani <[email protected]>
@RehanSD what's the status of this PR? |
@vnlitvinov it's ready for review! |
Signed-off-by: Rehan Durrani [email protected]
What do these changes do?
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
docs/development/architecture.rst
is up-to-date