[Core] Better error if /dev/shm is too small (#13624)

This commit is contained in:
Ian Rodney 2021-01-26 15:26:45 -08:00 committed by GitHub
parent 4f4e1b664b
commit 4db0a31130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1622,10 +1622,11 @@ def determine_plasma_store_config(object_store_memory,
"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))
"passing '--shm-size={:.2f}gb' to 'docker run' (or add it "
"to the run_options list in a Ray cluster config). Make "
"sure to set this to more than 30% of available RAM.".
format(ray.utils.get_user_temp_dir(), shm_avail,
object_store_memory * (1.1) / (2**30)))
else:
plasma_directory = ray.utils.get_user_temp_dir()