From fdb4c6eb1cfc40c0680f3b276394e8ba1d4c5c6d Mon Sep 17 00:00:00 2001 From: Edward Oakes Date: Wed, 16 Dec 2020 10:30:20 -0600 Subject: [PATCH] Better message for too little /dev/shm memory (#12896) --- python/ray/_private/services.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python/ray/_private/services.py b/python/ray/_private/services.py index 62adfd072..c3512ab92 100644 --- a/python/ray/_private/services.py +++ b/python/ray/_private/services.py @@ -1618,12 +1618,13 @@ def determine_plasma_store_config(object_store_memory, logger.warning( "WARNING: The object store is using {} instead of " "/dev/shm because /dev/shm has only {} bytes available. " - "This may slow down performance! You may be able to free " - "up space by deleting files in /dev/shm or terminating " - "any running plasma_store_server processes. If you are " - "inside a Docker container, you may need to pass an " - "argument with the flag '--shm-size' to 'docker run'.". - format(ray.utils.get_user_temp_dir(), shm_avail)) + "This will harm performance! You may be able to free up " + "space by deleting files in /dev/shm. If you are inside a " + "Docker container, you can increase /dev/shm size by " + "passing '--shm-size=Xgb' to 'docker run' (or add it to " + "the run_options list in a Ray cluster config). Make sure " + "to set this to more than 2gb.".format( + ray.utils.get_user_temp_dir(), shm_avail)) else: plasma_directory = ray.utils.get_user_temp_dir()