Slow Super Server

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Marcel71
Posts: 49
Joined: 2011-04-13T13:57:34-07:00
Authentication code: 8675308

Slow Super Server

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Slow Super Server

Post 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
Marcel71
Posts: 49
Joined: 2011-04-13T13:57:34-07:00
Authentication code: 8675308

Re: Slow Super Server

Post 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
Post Reply