Page 1 of 1

Slow system... where to begin..

Posted: 2011-02-06T10:09:44-07:00
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.

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

Posted: 2011-02-06T10:24:45-07:00
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

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

Posted: 2011-02-06T11:24:07-07:00
by dognose
IM is exact same version.

thread limit doesn't seem to change sys time at all.

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

Posted: 2011-02-07T15:15:28-07:00
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

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

Posted: 2011-02-07T17:49:04-07:00
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.