【发布时间】:2020-05-22 17:09:50
【问题描述】:
我在 EC2 上运行 ray。我在 c5.large 实例上运行工作程序,这些实例有大约 4G 的 RAM。
当我运行许多作业时,我看到以下错误消息:
File "python/ray/_raylet.pyx", line 631, in ray._raylet.execute_task
File "/home/ubuntu/project/env/lib/python3.6/site-packages/ray/memory_monitor.py", line 126, in raise_if_low_memory
self.error_threshold))
ray.memory_monitor.RayOutOfMemoryError: More than 95% of the memory on node ip-172-31-43-111 is used (3.47 / 3.65 GB). The top 10 memory consumers are:
PID MEM COMMAND
21183 0.21GiB ray::IDLE
21185 0.21GiB ray::IDLE
21222 0.21GiB ray::IDLE
21260 0.21GiB ray::IDLE
21149 0.21GiB ray::IDLE
21298 0.21GiB ray::IDLE
21130 0.21GiB ray::IDLE
21148 0.21GiB ray::IDLE
21225 0.21GiB ray::IDLE
21257 0.21GiB ray::IDLE
In addition, up to 0.0 GiB of shared memory is currently being used by the Ray object store. You can set the object store size with the `object_store_memory` parameter when starting Ray, and the max Redis size with `redis_max_memory`. Note that Ray assumes all system memory is available for use by workers. If your system has other applications running, you should manually set these memory limits to a lower value.
我正在使用 memory = 2000*1024*1024 和 max_calls=1 运行我的 ray 任务,因此盒子上的进程不应同时超过 2 个。
这些ray::IDLE 进程是什么?如何阻止我的工作人员进入OOM?
使用射线 0.8.1
【问题讨论】:
标签: python-3.x ray