Regarding the max-concurrency parameter:
The official specification states that processing 2‑megapixel photos results in a peak memory usage of 1 GB per thread.
Questions
- Is there no quantity limit for these 2‑megapixel photos? Does the memory consumption stay the same regardless of how many photos are processed?
- Can this be interpreted as 1 thread consuming 1 GB RAM, and 4 threads consuming 4 GB RAM accordingly?
- When handling 20‑megapixel photos, does each thread occupy 10 GB of memory?
- I previously encountered an Out‑of‑Memory (OOM) error. My Docker container was allocated resources of 32 GB RAM and 10 CPU cores, while processing 5‑megapixel images. Following the above ratio, each thread would use 2.5 GB RAM, and 10 threads would total 25 GB, which theoretically should not trigger OOM. However, the images I processed are four‑band multispectral photos. Does that mean the total memory requirement for 10 threads becomes 2.5\times4\times10 = 100\ \text{GB}?