How to load Imagick convert and all dependencies into /dev/shm for performance?

96 Views Asked by At

I am trying to compare at least 40000 screenshots from videos with Imagick command "/dev/shm/convert s1 s2 -metric RMSE -format %[distortion] -compare info:". I have succeded to get an average speed of ~ 0.04 seconds.

If I am using in 3 threads the convert command CPU rises to 80-90% an all cores(witch it should be), but also the load on server increase exponentially and affects the average speed to ~0.09 seconds

I am using s1 and s2 image paths from /dev/shm to lower the impact on loading server and SSD. Also I am using the convert command from /dev/shm, is not enough , because it uses other libraries from the SSD.

I dont know what are the dependencies library to copy them to /dev/shm ,or any other approach would be good to achieve the same result.

0

There are 0 best solutions below