ComfyUI > Nodes > Comfyui-Memory_Cleanup > 🎈RAM-Cleanup

ComfyUI Node: 🎈RAM-Cleanup

Class Name

RAMCleanup

Category
Memory Management
Author
LAOGOU-666 (Account age: 426days)
Extension
Comfyui-Memory_Cleanup
Latest Updated
2025-04-09
Github Stars
0.11K

How to Install Comfyui-Memory_Cleanup

Install this extension via the ComfyUI Manager by searching for Comfyui-Memory_Cleanup
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui-Memory_Cleanup in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🎈RAM-Cleanup Description

Optimize system memory usage for AI art tasks by clearing RAM, file caches, DLLs, and process memory efficiently.

🎈RAM-Cleanup:

The RAMCleanup node is designed to optimize your system's memory usage by cleaning up unnecessary RAM consumption, which can enhance the performance of your AI art generation tasks. This node is particularly useful in managing memory resources efficiently, ensuring that your system remains responsive and capable of handling intensive processes. By freeing up RAM, it helps prevent slowdowns and potential crashes, allowing you to focus on your creative work without technical interruptions. The node achieves this by offering options to clear file caches, unused DLLs, and process memory, making it a versatile tool for maintaining optimal system performance.

🎈RAM-Cleanup Input Parameters:

anything

This parameter acts as a placeholder for any input data that might be passed through the node. It does not directly affect the RAM cleanup process but ensures compatibility with other nodes in a workflow.

clean_file_cache

This boolean parameter determines whether the node should attempt to clear the file cache. Enabling this option can help free up memory that is being used by cached files, potentially improving system performance. The default value is True.

clean_processes

This boolean parameter specifies whether the node should clean up memory used by processes. When enabled, it attempts to reduce the working set size of processes, which can help in reclaiming memory. The default value is True.

clean_dlls

This boolean parameter controls whether the node should clean up unused DLLs. By freeing up memory occupied by these DLLs, the system can allocate resources more efficiently. The default value is True.

retry_times

This integer parameter sets the number of times the node will attempt to clean the RAM if the initial attempt fails. It allows for multiple retries to ensure that the cleanup process is successful. The default value is 3, with a minimum of 1 and a maximum of 10.

unique_id

This hidden parameter is used internally to uniquely identify the node instance. It does not require user input and is managed automatically by the system.

extra_pnginfo

This hidden parameter is used to store additional information related to PNG files. It is not directly related to the RAM cleanup process and is handled internally.

🎈RAM-Cleanup Output Parameters:

output

The output parameter returns the input data passed through the node, allowing it to be used in subsequent nodes within a workflow. This ensures that the data flow is maintained while the RAM cleanup process is executed.

🎈RAM-Cleanup Usage Tips:

  • Enable clean_file_cache, clean_processes, and clean_dlls to maximize memory cleanup and improve system performance during intensive tasks.
  • Adjust the retry_times parameter if you encounter issues with the initial cleanup attempt, allowing the node to make multiple attempts to free up memory.

🎈RAM-Cleanup Common Errors and Solutions:

RAM清理过程出错

  • Explanation: This error indicates that an issue occurred during the RAM cleanup process, possibly due to system restrictions or conflicts with other applications.
  • Solution: Ensure that you have the necessary permissions to perform memory cleanup operations. Try running the application with administrative privileges or check for any conflicting applications that might be using the memory resources.

释放内存资源失败

  • Explanation: This error suggests that the node was unable to release memory resources, which could be due to system limitations or incorrect configurations.
  • Solution: Verify that the system settings allow for memory management operations. You may need to adjust system configurations or consult system documentation for further assistance.

🎈RAM-Cleanup Related Nodes

Go back to the extension to check out more related nodes.
Comfyui-Memory_Cleanup
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.