mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-25 14:00:49 +08:00
debug mmap
This commit is contained in:
parent
dc7c77e78c
commit
5c5fbddbbe
@ -28,8 +28,12 @@ import weakref
|
||||
import gc
|
||||
import os
|
||||
|
||||
from functools import lru_cache
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def get_mmap_mem_threshold_gb():
|
||||
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
|
||||
|
||||
def get_free_disk():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user