Convert refuses to use enviroment variables correctly

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
sted
Posts: 2
Joined: 2014-06-02T07:09:42-07:00
Authentication code: 6789

Convert refuses to use enviroment variables correctly

Post by sted »

First I have say thanks for this great application. I'm using imagemagick over 10 years now, I love it and respect everyone who takes part improving and developing it's features.

And now I have trouble to get it work in a multicore enviroment.

the strangest thing that after a day of putting MAGICK_THREAD_LIMIT to everywhere it worked until the next restart :)

Webserver with Centos 6.5 final, and plesk 11, convert started from bash script (it's full of MAGICK enviroment variables :)
env command is showing MAGICK_THREAD_LIMIT=8 (imported from etc/enviroment)

"uid=$5
export MAGICK_THREAD_LIMIT=8
for img in ${path}*.png
convert ..."

Code: Select all

    Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-05-20 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
    Features: DPC Modules OpenMP
    Delegates: bzlib cairo djvu fftw fontconfig freetype gslib jng jpeg lcms ltdl openexr pangocairo png ps rsvg tiff wmf x xml zlib

8 cores and magick only uses 4 of them :(

Code: Select all

system ("convert -list Resource")

File Area Memory Map Disk Thread Throttle Time
--------------------------------------------------------------------------------
768 1GB 2GiB 4GiB unlimited 8 0 unlimited

Code: Select all

Cpu0 : 1.0%us, 1.3%sy, 0.0%ni, 97.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 59.8%us, 10.3%sy, 0.0%ni, 29.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 1.0%us, 0.7%sy, 0.0%ni, 98.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 50.0%us, 2.6%sy, 0.0%ni, 47.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 1.0%us, 0.3%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 23.3%us, 1.0%sy, 0.0%ni, 75.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 0.7%us, 0.3%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 32.7%us, 9.7%sy, 0.0%ni, 57.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8183616k total, 1503160k used, 6680456k free, 214636k buffers
Swap: 4194288k total, 0k used, 4194288k free, 515948k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30847 vva 20 0 364m 225m 2780 R 50.1 2.8 0:01.51 convert
Post Reply