Tech Support Forum banner

How do I add more Virtual Memory ?

1 reading
436 views 6 replies 2 participants last post by  MPR  
#1 ·
I am trying to use ComfyUI. But I currently dont have enough VRAM in which ComfyUI tells me is at 4 gigs or so. I know it is possible in changing the VRAM I just dont wanna over do it. Would like to get at the very most 19 gig for Comfyui if possible. Here are some specs about my Computer

Ram = 64 gig
Graphics Driver - NVIDIA Geforce RTX 4050
Hard Drive 2 TB

Total paging file size for all drives: 8704

Recommended is set at: 8536
Currently allocated: 8704

So what would be the correct numbers in making this at the most 10 gigs
 
#2 ·
Don't confuse virtual system RAM with VRAM, which is video RAM. If your video card doesn't have enough on-board VRAM, part of your system memory can be allocated to create virtual video RAM. According to what I can find, ComfyUI requires a video card with at least 8 GB VRAM, whereas yours seems to have only 6 GB. Windows usually manages allocating system RAM for video processing dynamically. However, some applications may have problems with this. You might be able to allocate some system RAM manually to act as VRAM.

 
#4 ·
I asked chatgpt this question

I have 6 gig vram. Total paging file size for all drives: 8704

Recommended is set at: 8536
Currently allocated: 8704 how much do I change the recommended number so that its at 8 gig
ChatGPT said:

To clarify, your current virtual memory (paging file) setup shows:

Total Paging File Size: 8704 MB

Recommended: 8536 MB

Currently Allocated: 8704 MB

You want to make this exactly 8 GB (which is 8192 MB)

âś… What You Need to Do:

If you want the paging file size to be exactly 8 GB, you should set both the initial size and maximum size to 8192 MB.
📌 How to Set Virtual Memory to 8 GB:

Go to System Settings:

Right-click on This PC > Properties

Click Advanced system settings

Under Performance, click Settings

Go to the Advanced tab

Under Virtual memory, click Change

Uncheck “Automatically manage paging file size for all drives”

Select your main drive (usually C:)

Choose Custom size, and set:

Initial size (MB): 8192

Maximum size (MB): 8192

Click Set, then OK, and Restart your computer when prompted.

đź§  Extra Tip:

Even though you have 6 GB of VRAM, Windows virtual memory is still useful for system stability. Setting it to 8 GB is a safe and conservative amount.

Let me know if you're gaming or doing heavy workloads — the recommendation can change slightly based on that.

Is this all correct information ?
 
#5 ·
Again, you are conflating virtual system memory with virtual video memory. There is no reason to mess with the Windows page file size -- just let Windows manage it dynamically. What you are wanting to do here is to allocate enough RAM to virtual video RAM to make your app happy.

Steps to Increase Virtual VRAM:
  1. Identify the Virtual VRAM setting: ComfyUI's "Virtual VRAM" option can be found in the run_nvidia_gpu.bat or run_amd_gpu.bat file (or equivalent for your operating system) within the ComfyUI directory.
  2. Modify the command line: Add the --virtual-vram argument followed by the desired size in GB (e.g., --virtual-vram 8GB) to the command line. For example: ComfyUI\main.py --windows-standalone-build --virtual-vram 8GB.
  3. Save the file: Save the modified file and relaunch ComfyUI.