Free | No tracking | Every fact with a source|German and English

Error / Memory

OSError: [WinError 1455] The paging file is too small for this operation to complete (Windows paging file is too small)

Windows refuses memory because RAM and the paging file together are not enough for what the program is requesting.

The message

OSError: [WinError 1455] The paging file is too small for this operation to complete. (deutsch: Die Auslagerungsdatei ist zu klein, um diesen Vorgang durchzuführen.)

Affects: Python, ComfyUI

Why is this happening?

Windows can only commit as much memory as RAM and the paging file together allow (the so-called commit limit). When loading PyTorch or a large model, a lot of memory is briefly requested, even if Task Manager still shows free RAM. If the paging file is small or cannot grow because there is not enough free space on the drive, the process stops with this error.

How to fix it

  1. Close any programs you do not need right now (browser with many tabs, other AI programs), and try again.
  2. Make sure there is free space on the drive with the paging file (usually C:). Windows lets an automatically managed paging file grow to at most one eighth of the drive size.
  3. Open the paging file settings: Win+R, enter sysdm.cpl, tab „Advanced“ → under „Performance“ click „Settings…“ → tab „Advanced“ again → under „Virtual memory“ click „Change…“.
  4. Uncheck „Automatically manage paging file size for all drives“, choose the drive with the most free space, then „Custom size“. Enter an initial and maximum value in MB (for example, with 16 GB RAM, 16384 and 32768), click „Set“ and „OK“.
  5. Restart the PC and try again. If the error continues, increase the value step by step.
  6. Less memory usage is the long-term fix: use smaller model variants (for example fp8 or GGUF instead of fp16) or add more RAM.

Better not: Do not turn off the paging file completely to save space — that is exactly when this error occurs.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.