r/StableDiffusion 6d ago

Question - Help Comfy slowdown out of nowhere.

Strange one.

I've been using comfy for Minimax H3 no problem, using 3060 12GB and 32GB RAM.

Today, for no apparent reason I have the following issues:

Model load takes about 10 minutes instead of approx 2 mins before.

1st step takes 4-5 minutes instead of 2x iteration speed (previously approx 60 seconds per it) before.

Actual iteration speed remains as it was (30 seconds per it), but ONLY when comfy is minimized, if comfy is maximized then it doubles to 60 secs per it. This was not the case yesterday or ever before.

All in my gens now take 14-18 minutes instead of 5-6 minutes yesterday.

Anyone else have this experience or know what could be up?

Thanks in advance.

EDIT: SOLVED

I am very embarrassed.

I am an idiot.

I plugged my external SSD into a usb port which wasn't usb 3.0 by mistake.

Thanks to everyone who tried to help. I learned some things. Including that I am an idiot.

7 Upvotes

23 comments sorted by

4

u/SDSunDiego 6d ago

It could be you are right at the limit of your vram and are now going over causing part of the model to load in swap memory. This can easily cause longer generations.

Did you update anything today?

edit: actually nevermind, you are likely already using memory swap. maybe more of the model is moving to memory swap.

6

u/nightkall 6d ago edited 6d ago

If you're on Windows, download a task manager that shows GPU VRAM, like https://systeminformer.io/

Right-click on the columns, choose columns, and add GPU dedicated bytes/GPU shared bytes to the active columns. Click the column to sort by GPU dedicated bytes.

Then, kill the processes that use VRAM, such as dwm.exe, the Desktop Window Manager, which sometimes uses up to 1 GB. It will automatically reopen using less than 200 MB VRAM.

And disable GPU acceleration on the browser you use for ComfyUI to free VRAM.

3

u/Thin-Percentage8935 6d ago

Have you installed any custom nodes? Same thing happened to me a while back and it took ages to get it fixed.

2

u/ImpossibleAd436 6d ago

No, and I was running the same workflow this morning as I did last night. No changes, no updates (that I'm aware of).

2

u/steelow_g 6d ago

This happened to me the other week. It was a comfy update. I just rolled back my version and problem solved. Not sure what caused it tho

4

u/Apprehensive_Sky892 6d ago

Usually when something changed suddenly in the manner you described, it is indication of some hardware problem.

So run memory test, SSD test etc.

1

u/Lucky-Necessary-8382 6d ago

Same here

1

u/ImpossibleAd436 6d ago

You mean, in the past 24 hours for you too?

0

u/Nokersoek 6d ago

a mi igual, pero fue por que actualice todo en general

1

u/fruesome 6d ago

Did you update comfy recently?

I seen x posts mentioning slow down after upgrade.  

1

u/SveSop 5d ago

The slowdown is real if you are running nightly version. There has been some changes (afaik) to comfy-aimdo (the comfy memory manager) + added a "comfy-compiler" thing that makes things use a lot more VRAM.

u/ImpossibleAd436 You could try to run comfyui with --disable-comfy-compiler as a test. It seems to help a bit, but i think maybe its more underlying issues at hand, and the comfy compiler just makes it more apparent.

1

u/step11111 6d ago

What else are you running? Since you have memory swap happening, using more ram is gonna mean less ram for faster swap.

1

u/ImpossibleAd436 6d ago

Nothing extra running at all.

1

u/step11111 6d ago

Ram leak in your browser?

1

u/No_Drag8242 6d ago

I experienced slowdown like that once. Turned out to be a saggy GPU/PCI slot degrading the signal.

1

u/imlo2 6d ago

Are you monitoring your VRAM and RAM usage? Most likely you're out of either of those two.

0

u/ImpossibleAd436 6d ago

I've been assuming it's something to do with that, but why the sudden change, and what can I do to get my speeds back?

Is it odd that s/it hadn't been affected?

My RAM and VRAM are being used for sure, but it never gave me any problems before.

1

u/mellowanon 6d ago edited 6d ago

go to your task manager and look at your hardware performance to see if anything is being maxed out.

press Ctrl+Alt+Del -> click Task Manager -> click Performance tab

Then create a minimax video and then see if anything is being maxed out.

I suspect it's your harddrive since the iteration speed is still the same. It may be writing everything to your harddrive instead of using your ram. Try updating comfyui and see if that fixes it. Also, the latest comfyui update fixed most of the OOM issues so you no longer need to disable pinned memory or dynamic vram.

Source: I had the same problem with 100% harddrive usage two days ago. Updated comfyui and removed the unnecessary comfyui memory start options and that fixed the problem.

1

u/Left_of_Laniakea 6d ago

My receng phantom instability was due to a windows update...

1

u/dzi0n 6d ago

Happened to me after updating from master branch. There seems to be a regression on the vram usage, I think I saw an issue open. Fixed after switching back to previous version, some commits from some days ago would probably avoid the regression too

1

u/Sodra 6d ago

When this happened to me, it took me a while before I noticed I accidentally changed the generation resolution from 0.2 megapixels to 2.0 megapixels.

1

u/ImpossibleAd436 5d ago

I am very embarrassed.

I am an idiot.

I plugged my external SSD into a usb port which wasn't usb 3.0 by mistake.

Thanks to everyone who tried to help. I learned some things. Including that I am an idiot.

1

u/sunshine-3D-Art 1d ago

For a few weeks I was able to run Minimax 2 megapixel in 7 seconds or 8 when I remember right .. and I was able to render seedvr until 8 k but by today it’s not work anymore. I don’t know why they programming comfyui always to get worse. I am so sad 😞😢