mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-07-13 11:06:58 +08:00
use cgroup in "total_ram" report
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
290cfd16a2
commit
7eebd59c69
@ -241,7 +241,7 @@ def _get_cgroup_value(p: Path):
|
||||
_CGROUP_LIMIT_BYTES = _get_cgroup_value(_LIMIT_F)
|
||||
|
||||
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
|
||||
total_ram = psutil.virtual_memory().total / (1024 * 1024)
|
||||
total_ram = (_CGROUP_LIMIT_BYTES or psutil.virtual_memory().total) / (1024 * 1024)
|
||||
logging.info("Total VRAM {:0.0f} MB, total RAM {:0.0f} MB".format(total_vram, total_ram))
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user