Page 1 of 1

Large TIFF files always cached to disk

Posted: 2007-01-15T10:25:42-07:00
by mpetrovic72
I have problems with large TIFF files (410 MB large).
The pc has 4 Gbyte of RAM (used: +/- 150 MByte, free: +/- 3.800 MByte),
but when I try to rotate the images, they are always cached to disk.
A 210 MB image is nicely cached in memory (fast, max. 1 minute to rotate), but a 410 MB is always cached on disk (slow, hours to rotate).

command:

convert.exe -monitor -debug cache source.tif -rotate 90 target.tif

open source.tif[0] (anonymous memory, 9924x14043 531.627mb)
load image: 100%
memory => disk


setting a higher memory limit does not help.

convert.exe -limit memory 2000 -monitor -debug cache source.tif -rotate 90 target.tif


I use ImageMagick 6.3.1 - 7 Q8
on a Windows XP Proffesional PC

thanks in advance.

Posted: 2007-01-15T10:34:58-07:00
by magick
Try adding -limit area unlimited -limit memory unlimited to your command line. You might have better luck under 64-bit Windows OS. Win32 sometimes won't give the memory ImageMagick requests even if its available.

Speed up disk cache

Posted: 2007-01-16T04:57:23-07:00
by mpetrovic72
I'm affraid it didn't help.
I have another question.
Is it possible to speed up the disk cache.

When we rotate 210 MB images (rotated in memory) we can hear the hard disk working. But when we rotate a 410 MB image (rotated on disk) we cannot hear the hard disk. When we look at the CPU usage, convert.exe only uses 0% - 1%.

thanks in advance.

Posted: 2007-01-16T07:22:44-07:00
by magick
To speed up the disk cache you oculd upgrade your disk to a 15,000 RPM SAS disk and you'll get additional speed-ups running under Linux rather than Windows. You can track the progress of the disk cache by adding -debug cache to your command line.