Limiting threads does not work
Posted: 2014-05-20T04:43:29-07:00
Hello, we are using the following version of IM
we observed the CPU on our system to spike for some conversions (its kind of an automatic conversion service, so all kinds of input formats come in)
output from top:
As you can see we invoke it with -limit thread 1, but the CPU% used goes to 943%. This is a 24 core system, so IM is using about 9 cores.
We also tried to use the environment variable, but the result was the same.
Can you give any pointers for debugging? We would like to have 1 or 2 threads. right now we are considering to recompile without OpenMP.
Code: Select all
root@node01:~# /usr/bin/convert -version
Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-05-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jng jpeg lcms ltdl pangocairo png rsvg tiff wmf x xml zlib
output from top:
Code: Select all
17909 tomcat 20 0 381m 93m 2200 R 943.2 0.1 4:15.34 /usr/bin/convert -limit thread 1 -density 200 -auto-orient /tmp/docsrv/ocr_5049072737348653187 -auto-level -sigmoidal-contrast 5x10% -colorspace gray -depth 8 PNG:/tmp/docsrv/ocr_2196984853346712117.png
We also tried to use the environment variable, but the result was the same.
Can you give any pointers for debugging? We would like to have 1 or 2 threads. right now we are considering to recompile without OpenMP.