Slow system... where to begin..

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Slow system... where to begin..

Post by dognose »

So, I set up a new computer, same specs as an old one, but it's lagging a lot. I ran a few benchmarks, and you can see here:

system 1# time convert rose: -resize 5000x5000 -bench 5 /tmp/rose.png
Performance: 5i 0.221729ips 26.050u 0:22.549

real 0m22.554s
user 0m25.795s
sys 0m0.262s

system 2#time convert rose: -resize 5000x5000 -bench 5 /tmp/rose.png
Performance: 5i 0.220167ips 28.710u 0:22.710

real 0m22.731s
user 0m25.553s
sys 0m3.172s

While the overall time is about the same.. The sys time (time spent in kernel) is over 10 times as long.

I believe this may have something to do with the sluggishness.. so, I'm wondering if any of you had advise on where to begin to figure this out.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Slow system... where to begin..

Post by magick »

Verify the specs are the same. Type
  • convert -list configure
    convert -list resource
and compare the results. Try a single threaded instance of ImageMagick:
  • export MAGICK_THREAD_LIMIT=1
Verify with
  • convert -list resource
Threads should be 1. Now type
  • time convert rose: -resize 5000x5000 -bench 5 /tmp/rose.png
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Slow system... where to begin..

Post by dognose »

IM is exact same version.

thread limit doesn't seem to change sys time at all.
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Slow system... where to begin..

Post by dognose »

Wait.. the limit didn't take.

# export MAGICK_THREAD_LIMIT=1
# convert -list resource
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
768 8.1252GB 5.6754GiB 15.134GiB 18.446744EB 8 unlimited

# set | grep MAGIC
MAGICK_THREAD_LIMIT=1
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Slow system... where to begin..

Post by magick »

We're using tcsh and get the expected results:

Code: Select all

-> convert -list resource
File         Area       Memory          Map         Disk    Thread         Time
-------------------------------------------------------------------------------
48000      782.8MB    5.8323GiB    11.665GiB    unlimited         8    unlimited


-> setenv MAGICK_THREAD_LIMIT 1

-> convert -list resource
File         Area       Memory          Map         Disk    Thread         Time
-------------------------------------------------------------------------------
48000      782.8MB    5.8323GiB    11.665GiB    unlimited         1    unlimited
You can also set the thread limit from the command line:

Code: Select all

convert -limit thread 1 -list resource
File         Area       Memory          Map         Disk    Thread         Time
-------------------------------------------------------------------------------
48000      782.8MB    5.8323GiB    11.665GiB    unlimited         1    unlimited
We're using ImageMagick 6.6.7-6, the current release.
Post Reply