Page 1 of 1

Slow Super Server

Posted: 2012-04-21T14:21:50-07:00
by Marcel71
Hi,

Some time ago i bought a new server for ImageMagick processes, however, it is much slower converting animated images then my old server
Both servers are running Ubuntu 11.04 and ImageMagick 6.7.1-0

Old server: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz , 4 cores
New server: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz , 24 cores

I have an animated image with 314 frames: http://imagehost.online-image-editor.com/dancing.gif

The command i give in the shell:
convert dancing.gif -gravity center -fill red -annotate +0+0 "MARCEL" out.gif

Old server: 45 seconds
New server: 95 seconds

When running the command, the new server shows more then 1000% processor usage for that command while the old servers uses about 350% cpu usage.
How to figure out what is going wrong at the new server, it should be much faster then the old server.

I also have it with other commands where there are animated images involved (at least it is clearly visible with animated images)

Regards,
Marcel

Re: Slow Super Server

Posted: 2012-04-21T14:35:32-07:00
by fmw42
I am no expert on this, but I have seen comments that on some systems, you may need to --disable-openmp when compiling IM. see http://www.imagemagick.org/script/advan ... #configure

Or temporarily set the number of threads to 1 as a test. One way is

convert -limit-threads 1 dancing.gif -gravity center -fill red -annotate +0+0 "MARCEL" out.gif

see
viewtopic.php?f=2&t=20756&p=83480&hilit ... ead#p83480

Re: Slow Super Server

Posted: 2012-04-22T05:18:04-07:00
by Marcel71
Thanks, i put the 'threads' option in the policy.xml to 1 and it helps. Although i find it strange that each seperate convert can only use 1 thread and not the advantage of all the CPU power, it works faster :)
So i guess i'll keep it this way.

Regards,
Marcel