Debian Bug report logs - #638409
imagemagick: operations are extremely slow due to openmp

version graph

Package: imagemagick; Maintainer for imagemagick is ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>; Source for imagemagick is src:imagemagick.

Reported by: Simon Kuhn <simon@zombe.es>

Date: Fri, 19 Aug 2011 06:57:02 UTC

Severity: important

Found in versions 6.6.0.4-3, imagemagick/8:6.6.9.7-5

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>:
Bug#638409; Package imagemagick. (Fri, 19 Aug 2011 06:57:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Kuhn <simon@zombe.es>:
New Bug report received and forwarded. Copy sent to ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>. (Fri, 19 Aug 2011 06:57:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Simon Kuhn <simon@zombe.es>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: imagemagick: operations are extremely slow due to openmp
Date: Thu, 18 Aug 2011 23:30:46 -0700
Package: imagemagick
Version: 6.6.0.4-3
Severity: important


Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Simon Kuhn <simon@zombe.es>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: imagemagick: large performance degradation when compiled with openmp support
Message-ID: <20110819062606.9978.4587.reportbug@p23.polyvore.com>
X-Mailer: reportbug 4.12.6
Date: Thu, 18 Aug 2011 23:26:06 -0700

Package: imagemagick
Version: 8:6.6.0.4-3
Severity: important


When compiled with OpenMP support (which is the default), and the libgomp available
in Squeeze (among others), ImageMagick will process some operations extremely slowly.
This is most noticable when many ImageMagick operations are run in parallel,
such as when used as part of a web service. A reasonable number of ImageMagick processes
appear to block each other from executing, and result in astronomically high
system load and CPU utilization.

Adding '--disable-openmp' to the end of the configure parameters when building
bypasses the issue completely. I do not think that there is a relevant patch in
later versions of ImageMagick, although it is supposedly working properly
with newer libgomp versions.

This issue has been noted on numerous threads on the ImageMagick forum and elsewhere,
for instance:

  http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=14307&start=0
  http://dlcware.blogspot.com/2010/12/imagemagick-openmp-and-really-bad.html


-- System Information:
Debian Release: 6.0.2
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages imagemagick depends on:
ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libfontconfig1          2.8.0-2.1        generic font configuration library
ii  libfreetype6            2.4.2-2.1        FreeType 2 font engine, shared lib
ii  libglib2.0-0            2.24.2-1         The GLib library of C routines
ii  libice6                 2:1.0.6-2        X11 Inter-Client Exchange library
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG 
ii  liblcms1                1.18.dfsg-1.2+b3 Color management library
ii  liblqr-1-0              0.4.1-1          converts plain array images into m
ii  libltdl7                2.2.6b-2         A system independent dlopen wrappe
ii  libmagickcore4          8:6.6.0.4-3      low-level image manipulation libra
ii  libmagickwand4          8:6.6.0.4-3      image manipulation library
ii  libsm6                  2:1.1.1-1        X11 Session Management library
ii  libtiff4                3.9.4-5+squeeze3 Tag Image File Format (TIFF) libra
ii  libx11-6                2:1.3.3-4        X11 client-side library
ii  libxext6                2:1.1.2-1        X11 miscellaneous extension librar
ii  libxt6                  1:1.0.7-1        X11 toolkit intrinsics library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages imagemagick recommends:
ii  ghostscript               8.71~dfsg2-9   The GPL Ghostscript PostScript/PDF
ii  libmagickcore4-extra      8:6.6.0.4-3    low-level image manipulation libra
ii  netpbm                    2:10.0-12.2+b1 Graphics conversion tools between 
ii  ufraw-batch               0.16-3+b1      batch importer for raw camera imag

Versions of packages imagemagick suggests:
pn  autotrace                     <none>     (no description available)
pn  cups-bsd | lpr | lprng        <none>     (no description available)
ii  curl                          7.21.0-2   Get a file from an HTTP, HTTPS or 
pn  enscript                      <none>     (no description available)
pn  ffmpeg                        <none>     (no description available)
pn  gimp                          <none>     (no description available)
pn  gnuplot                       <none>     (no description available)
pn  grads                         <none>     (no description available)
ii  groff-base                    1.20.1-10  GNU troff text-formatting system (
pn  hp2xx                         <none>     (no description available)
pn  html2ps                       <none>     (no description available)
pn  imagemagick-doc               <none>     (no description available)
pn  libwmf-bin                    <none>     (no description available)
pn  mplayer                       <none>     (no description available)
pn  povray                        <none>     (no description available)
pn  radiance                      <none>     (no description available)
pn  sane-utils                    <none>     (no description available)
pn  texlive-base-bin              <none>     (no description available)
pn  transfig                      <none>     (no description available)
pn  xdg-utils                     <none>     (no description available)

-- no debconf information

-- System Information:
Debian Release: 6.0.2
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Information forwarded to debian-bugs-dist@lists.debian.org, ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>:
Bug#638409; Package imagemagick. (Fri, 19 Aug 2011 16:48:24 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bastien ROUCARIES <roucaries.bastien@gmail.com>:
Extra info received and forwarded to list. Copy sent to ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>. (Fri, 19 Aug 2011 16:48:24 GMT) Full text and rfc822 format available.

Message #10 received at 638409@bugs.debian.org (full text, mbox):

From: Bastien ROUCARIES <roucaries.bastien@gmail.com>
To: 638409@bugs.debian.org, Simon Kuhn <simon@zombe.es>
Subject: [imagemagick] Moreinfo
Date: Fri, 19 Aug 2011 18:32:20 +0200
Package: imagemagick
Version: 8:6.6.9.7-5

could you post the command line used ?

Could you run install valgrind and run hellgrind on this case ?

And open a report upstream?



Bastien




Information forwarded to debian-bugs-dist@lists.debian.org, ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>:
Bug#638409; Package imagemagick. (Wed, 09 Nov 2011 20:18:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillaume Delacour <gui@iroqwa.org>:
Extra info received and forwarded to list. Copy sent to ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>. (Wed, 09 Nov 2011 20:18:09 GMT) Full text and rfc822 format available.

Message #15 received at 638409@bugs.debian.org (full text, mbox):

From: Guillaume Delacour <gui@iroqwa.org>
To: 638409@bugs.debian.org, control@bugs.debian.org
Cc: 568349@bugs.debian.org
Subject: The openmp support also segfault php5-imagick
Date: Wed, 09 Nov 2011 21:06:36 +0100
[Message part 1 (text/plain, inline)]
affects 638409 +php5-imagick
thanks

Hello,

The openmp support also affects imagemagick php module by segfaulting
the module in specific conditions [1].
After disabling the openmp support in imagemagick, the segfault seems to
never occurs again.

As the problem affects Wheezy too, maybe could you consider disabling
openmp support ?

[1]: http://bugs.debian.org/568349

-- 
Guillaume Delacour <gui@iroqwa.org>
[signature.asc (application/pgp-signature, inline)]

Added indication that 638409 affects php5-imagick Request was from Guillaume Delacour <gui@iroqwa.org> to control@bugs.debian.org. (Wed, 09 Nov 2011 20:18:10 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>:
Bug#638409; Package imagemagick. (Thu, 10 Nov 2011 09:27:19 GMT) Full text and rfc822 format available.

Acknowledgement sent to roucaries bastien <roucaries.bastien+debian@gmail.com>:
Extra info received and forwarded to list. Copy sent to ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>. (Thu, 10 Nov 2011 09:27:28 GMT) Full text and rfc822 format available.

Message #22 received at 638409@bugs.debian.org (full text, mbox):

From: roucaries bastien <roucaries.bastien+debian@gmail.com>
To: Guillaume Delacour <gui@iroqwa.org>, 638409@bugs.debian.org
Cc: control@bugs.debian.org, 568349@bugs.debian.org
Subject: Re: [Pkg-gmagick-im-team] Bug#638409: The openmp support also segfault php5-imagick
Date: Thu, 10 Nov 2011 10:23:26 +0100
2011/11/9 Guillaume Delacour <gui@iroqwa.org>:
> affects 638409 +php5-imagick
> thanks
>
> Hello,
>
> The openmp support also affects imagemagick php module by segfaulting
> the module in specific conditions [1].

Ok see a libgomp problem . Why do you report it against imagemagick ?

> After disabling the openmp support in imagemagick, the segfault seems to
> never occurs again.
>
> As the problem affects Wheezy too, maybe could you consider disabling
> openmp support ?

No thanks. This bug is broader than imagemagick, please fix libgomp
and reassign to libgomp with proper gdb trace. And add affect
imagemagick.



Thanks

Bastien

> [1]: http://bugs.debian.org/568349
>
> --
> Guillaume Delacour <gui@iroqwa.org>
>
> _______________________________________________
> Pkg-gmagick-im-team mailing list
> Pkg-gmagick-im-team@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gmagick-im-team
>




Information forwarded to debian-bugs-dist@lists.debian.org, ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>:
Bug#638409; Package imagemagick. (Fri, 11 Nov 2011 17:30:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillaume Delacour <gui@iroqwa.org>:
Extra info received and forwarded to list. Copy sent to ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>. (Fri, 11 Nov 2011 17:30:14 GMT) Full text and rfc822 format available.

Message #27 received at 638409@bugs.debian.org (full text, mbox):

From: Guillaume Delacour <gui@iroqwa.org>
To: roucaries bastien <roucaries.bastien+debian@gmail.com>, control@bugs.debian.org
Cc: 638409@bugs.debian.org, 568349@bugs.debian.org
Subject: Re: Bug#638409: The openmp support also segfault php5-imagick
Date: Fri, 11 Nov 2011 18:29:09 +0100
[Message part 1 (text/plain, inline)]
affects 638409 -php5-imagick
thanks

Le jeudi 10 novembre 2011 à 10:23 +0100, roucaries bastien a écrit :
> 2011/11/9 Guillaume Delacour <gui@iroqwa.org>:
> > affects 638409 +php5-imagick
> > thanks
> >
> > Hello,
> >
> > The openmp support also affects imagemagick php module by segfaulting
> > the module in specific conditions [1].
> 
> Ok see a libgomp problem . Why do you report it against imagemagick ?

All backtrace i've collected didn't help me ATM. I saw other users using
other distribution have noted that the openmp support is problematic in
such ways. This is why i've proposed to disable this support.

> 
> > After disabling the openmp support in imagemagick, the segfault seems to
> > never occurs again.
> >
> > As the problem affects Wheezy too, maybe could you consider disabling
> > openmp support ?
> 
> No thanks. This bug is broader than imagemagick, please fix libgomp
> and reassign to libgomp with proper gdb trace. And add affect
> imagemagick.

I've deleted the "affects php5-imagick" on this bug. If i confirm an
issue with libgomp, i'll bug against it.

> 
> 
> 
> Thanks
> 
> Bastien
> 
> > [1]: http://bugs.debian.org/568349
> >
> > --
> > Guillaume Delacour <gui@iroqwa.org>
> >
> > _______________________________________________
> > Pkg-gmagick-im-team mailing list
> > Pkg-gmagick-im-team@lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gmagick-im-team
> >

-- 
Guillaume Delacour <gui@iroqwa.org>
[signature.asc (application/pgp-signature, inline)]

Removed indication that 638409 affects php5-imagick Request was from Guillaume Delacour <gui@iroqwa.org> to control@bugs.debian.org. (Fri, 11 Nov 2011 17:30:21 GMT) Full text and rfc822 format available.

Added indication that 638409 affects php5-imagick Request was from roucaries bastien <roucaries.bastien+debian@gmail.com> to control@bugs.debian.org. (Sat, 12 Nov 2011 20:06:06 GMT) Full text and rfc822 format available.

Removed indication that 638409 affects php5-imagick Added indication that 638409 affects imagemagick Request was from roucaries bastien <roucaries.bastien+debian@gmail.com> to control@bugs.debian.org. (Sat, 12 Nov 2011 20:06:07 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 16:11:56 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.