How much free RAM a stack needs
What counts is the RAM that is free when you start a fuse, not the RAM installed. FocusForge takes what it finds free and works faster with more; with less it works on less at a time, takes longer and gives the same result. Only below a minimum does it refuse to run.
The least free RAM that works
These are the smallest amounts of free RAM at which a fuse still finished, each at one stack size:
| Frames | Stack measured | Free RAM needed |
|---|---|---|
| 16-bit TIFF | 20 frames of 15 megapixels | 2.5 GB |
| JPEG | 20 frames of 15 megapixels | 2.8 GB |
| Camera RAW | 20 frames of 26 megapixels | 2.9 GB |
| Compressed TIFF (Deflate) | 10 frames of 17.5 megapixels | 3.1 GB |
| 8-bit TIFF | 20 frames of 15 megapixels | 4.7 GB |
For stacks up to about 26 megapixels, plan on 5 GB free. The RAW figure comes from copies of one camera file; a stack of different frames can take more. Larger frames, such as those of a 45 to 61 megapixel camera, and more frames need more free RAM.
With plenty of free RAM a fuse takes much more than the minimum, and what it takes grows with the number of frames and their size.
If memory is short and your frames already line up, switching alignment off lowers what a fuse takes by about two thirds at 20 frames of 15 megapixels. The fusion method and the graphics card change it little.
When there is too little
A run below the minimum is refused with a message, before any frame is processed:
- With TIFF, JPEG and compressed TIFF frames you can meet “the host-derived memory budget of N B cannot hold the alignment’s shared reference data and one registration”. See the message.
- With camera RAW frames you meet “not enough free RAM to read this file”, which says how much more free RAM it needs. That figure is right: the runs at the amount it named finished. See the message.
Close other programs and start the fuse again.
8-bit TIFF is the exception. On Linux, with 2.8 to 4.3 GB free, the system ended the run without any message at all; from 4.7 GB it finished. If a fuse of 8-bit TIFF frames disappears without a word, free more RAM.
The Host memory limit
The Host memory setting in the settings
window (or
--max-host-memory on the command line) lowers what a fuse may use. It slows
a fuse down, and it is not a ceiling on what FocusForge takes: with TIFF
frames the fuse still took several GB at a limit of one byte. Do not rely on it
to keep memory free for another program.
A limit too low for one frame is refused. The smallest limit that works for these stacks:
| Frames | Smallest Host memory |
|---|---|
| JPEG, 15 megapixels | 542 MB |
| Camera RAW, 26 megapixels | 820 MB |
| TIFF | no limit you would set is refused |
The message then names the limit, for example “needs 820 MB of working memory, but the memory limit allows 800 MB for it. Raise the memory limit to at least 820 MB or close other programs, or convert the frames to TIFF.”