memory woes with imagemagick

From: Dermot Paikkos <dermot_at_sciencephoto.com>
Date: Fri, 19 Mar 2004 13:03:59 +0000

Hi Managers,

DS10 TRU64 5.1, 1280 RAM, 768 SWAP.

I hope this isn't too OT but I am struggling to understand what is
happening to my system resources.

I recently added 1024MB of RAM to our system. The system itself is
relatively under used. CPU usage is minimal and although there is a
DB on the system as it only serves 40 users it has not problem
coping.

One of the labour intensive tasks I do ask of it is to run the user
app imagemagick. I recently upgraded to v5.7.7 as this version had
better memory management. I compiled it with Q8 rather that Q16 as
this was said to require less RAM.

The problem is that even after adding the extra RAM I am not able to
convert some images even when they are relatively small. Imagemagick
will fail with an "Insufficient memory (case 4)" on a 15MB
(uncompressed) file. Yet vmstat seems to show some free RAM:
r w u act free wire fault cow zero react pin pout in
3 270 32 125K 17K 15K 3251 173 474 0 239 0 72 1K
3 270 32 130K 13K 15K 8469 40 219 0 4404 0 85 63
3 270 32 134K 8741 15K 8556 0 0 0 4537 0 74 300
3 270 32 137K 6476 15K 4497 0 6 0 3571 0 48 88

The amount of free pages does drop from 13k to 8741 (and the number
of fault rockets a bit). At his point IM should use swap or a TMPDIR,
both of which have bags of space. However it doesn't and the batch
process tried to continue to the next file without releasing the RAM.
Eventually the swap space is filled and the console spits out "swap
space below 10%" and no one can log in. All very bad!!!

Has anyone tried IM on Tru64? Thomas Blinn suggested I ask the list
for a recent Makefile as my compile may not be as effective as it
might. The IM Makefile is probably intended for a 32bit environment
and hence I might be able to get better resource management with a
TRU64 makefile. Any suggestions?

Thanx.
Dp.


~~
Dermot Paikkos * dermot_at_sciencephoto.com
Network Administrator _at_ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668
Received on Fri Mar 19 2004 - 13:06:18 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT