Page 1 of 1

ImageMagick and RAM

Posted: 2016-11-10T01:14:09-07:00
by srsd
Hello.

Perhaps my question is trivial. But he worries me.
I use the imagemagick on linux for crop and resize operations in the streams.
How to calculate how much need RAM and CPU time to perform operations?
If I run multiple processes at the same time they will be processed one by one or all at once?

Re: ImageMagick and RAM

Posted: 2016-11-10T01:29:37-07:00
by snibgo
The Consulting forum is for paid consultancy, so I'm moving this to Users.

For RAM: IM v6 Q16 uses 8 bytes per pixel. There is also some overhead per image, and unpacking and compressing images also takes RAM.

For CPU: there are too many variables to predict. You can measure CPU usage.
srsd wrote:If I run multiple processes at the same time they will be processed one by one or all at once?
The question is vague. IM generally uses multi-threading, so each processing operation on an image is split between threads and hence between processors. When one operation (eg "-resize") is complete, the next one is performed.