Page 1 of 1

Should these go into configure.xml?

Posted: 2014-06-06T09:26:01-07:00
by GilbertB
When I process my image gallery my CPU hits 100 every time. I saw that I should add

MAGICK_THREAD_LIMIT="2"
and
MAGICK_THROTTLE="?"

--- Can these be added to /usr/lib64/ImageMagick-6.7.8/config/configure.xml ?

If not, I cant find any other paths or xml files to add them to, which one do I use?

--- What is a suggested setting for Throttle?

Thx!



BTW Here is my dir:

/usr/include/ImageMagick/magick/etc

Re: Should these go into configure.xml?

Posted: 2014-06-06T12:05:44-07:00
by magick
You can set resource limits in policy.xml.

Re: Should these go into configure.xml?

Posted: 2014-06-06T12:49:43-07:00
by GilbertB
Thx, any suggested setting for Throttle?

Re: Should these go into configure.xml?

Posted: 2014-06-06T12:50:39-07:00
by GilbertB
Is this oke then:

<policy domain="resource" name="area" value="1GB"/>

Define arguments for the memory, map, area, and disk resources with
SI prefixes (.e.g 100MB). In addition, resource policies are maximums for
each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
exceeds policy maximum so memory limit is 1GB).
-->
<policymap>
<!-- <policy domain="system" name="precision" value="6"/> -->
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
<!-- <policy domain="resource" name="map" value="4GiB"/> -->
<!-- <policy domain="resource" name="area" value="1GB"/> -->
<!-- <policy domain="resource" name="disk" value="16EB"/> -->
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
<!-- <policy domain="resource" name="time" value="3600"/> -->
</policymap>
<configure name="MAGICK_THREAD_LIMIT" value="2"/>



Oh, and do I have to reboot or anything to make the change apply?