mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00
This reverts commit 71d2bde458
.
This commit is contained in:
parent
7e3e4cd321
commit
2cb79632e4
1 changed files with 1 additions and 3 deletions
|
@ -109,9 +109,7 @@ class MemoryMonitor:
|
|||
|
||||
self.last_checked = time.time()
|
||||
total_gb = psutil.virtual_memory().total / (1024**3)
|
||||
psutil_mem = psutil.virtual_memory()
|
||||
used_gb = total_gb - (psutil_mem.available + psutil_mem.cached) / (
|
||||
1024**3)
|
||||
used_gb = total_gb - psutil.virtual_memory().available / (1024**3)
|
||||
if self.cgroup_memory_limit_gb < total_gb:
|
||||
total_gb = self.cgroup_memory_limit_gb
|
||||
with open("/sys/fs/cgroup/memory/memory.usage_in_bytes",
|
||||
|
|
Loading…
Add table
Reference in a new issue