When using Ray actors, I have noticed that Ray occupies some memory space that cannot be released. For example, a numpy array in my script takes approximately 3.8GB, but profiling results indicate that Ray actors always occupy twice the amount of memory. This can easily lead to out-of-memory (OOM) errors in high-concurrency scenarios. Is there a good way to release this memory?
What happened + What you expected to happen
When using Ray actors, I have noticed that Ray occupies some memory space that cannot be released. For example, a numpy array in my script takes approximately 3.8GB, but profiling results indicate that Ray actors always occupy twice the amount of memory. This can easily lead to out-of-memory (OOM) errors in high-concurrency scenarios. Is there a good way to release this memory?
Versions / Dependencies
Ray 2.4 Python 3.8 Linux 20.04
Reproduction script
Issue Severity
None