Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24758 - [Imagemagick] convert do not use enough memory

Attached to Project: Arch Linux
Opened by Olive (olivel) - Friday, 17 June 2011, 14:58 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 04 October 2011, 00:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Imagemagick create a cache file in /tmp when there is not engough memory.

But it appears that it create it too soon, not using the avaible memory. In my case the convert command create a 300 Mb pixel cache memory in /tmp and use it but then consume only 5% of avaible memory and the pixel cache in /tmp. As my machine have enough memory this cause the kernel to cache the file in /tmp in RAM but that slow down convert a lot a use a lot of system time. Normally it should only create this file and use it when not having enough memory. Previous version did not had this problem.

Details of the test.

convert -density 600x600 -monochrome -compress Group4 test.pnm test.pdf

where test.pnm is a 34 Mb pnm file in grayscale (600 dpi for an A4 page). My system has 1278672 Mb of memory (archlinux 32 bits).

The problem only appears for rather large files. It seems that in my case convert restrict itself to ~ 70 Mb of memory. Any file that need less than that will not have problems.

I am unsure if it is arch related of if it is an upstream bug. It did not appears with previous version of imagemagick.

Additional info:
* package version(s)
imagemagick 6.6.9.8-1
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 04 October 2011, 00:50 GMT
Reason for closing:  Not a bug
Additional comments about closing:  not a bug according to upstream.
Comment by Olive (olivel) - Friday, 17 June 2011, 18:24 GMT
I have recompiled the 6.6.0-4 that do not have the problem. It seems that for some reason the latest (I do not know exactly when it begins) is not allowed enough memory, then create the cache file which cause the huge decrease in performance. I have also submitted this bug upstream: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=18951

Loading...