mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Core] Better error if /dev/shm is too small (#13624)
This commit is contained in:
parent
4f4e1b664b
commit
4db0a31130
1 changed files with 5 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue