mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-01 17:50:53 +08:00
debug mmap
This commit is contained in:
parent
dc7c77e78c
commit
5c5fbddbbe
@ -28,8 +28,12 @@ import weakref
|
|||||||
import gc
|
import gc
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from functools import lru_cache
|
||||||
|
|
||||||
|
@lru_cache(maxsize=1)
|
||||||
def get_mmap_mem_threshold_gb():
|
def get_mmap_mem_threshold_gb():
|
||||||
mmap_mem_threshold_gb = int(os.environ.get("MMAP_MEM_THRESHOLD_GB", "0"))
|
mmap_mem_threshold_gb = int(os.environ.get("MMAP_MEM_THRESHOLD_GB", "0"))
|
||||||
|
logging.debug(f"MMAP_MEM_THRESHOLD_GB: {mmap_mem_threshold_gb}")
|
||||||
return mmap_mem_threshold_gb
|
return mmap_mem_threshold_gb
|
||||||
|
|
||||||
def get_free_disk():
|
def get_free_disk():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user