I am trying to figure out why GraphicsMagick is observed to run slower under OpenIndiana on a dual Intel Xeon E5 system (16 core) with 128GB RAM than on Linux on a slower-clocked prior generation Xeon (E5649). Speed differences of a factor of two have been seen. The application is linked with libumem (which helped performance). It does not seem to matter if the program is built single-threaded or uses threads.

While I doubt that the Spot profiler is running entirely correctly, I noticed that it mentioned vmem_hash_delete (seems to be from blob/master/usr/src/uts/common/os/vmem.c in illumos-gate) as the #2 high-runner. This is described as "Remove vsp from the allocated-segment hash table and update kstats.".

Functions sorted by metric: Exclusive User CPU Time

Excl.     Incl.     Excl.     Excl.  Excl.     Excl. Bit     Name
User CPU  User CPU  Sys. CPU  Wall   Bit Func  Inst Exec
 sec.      sec.      sec.      sec.  Count
6.264     6.264     3.082     9.347  8342907   29445501700   <Total>
5.924     6.034     2.992     8.916      717   29151595095   [trimmed] 
DecodeImage src Caller-callee
0.170     0.170     0.        0.170        0             0   [trimmed] 
vmem_hash_delete  Caller-callee
0.030     0.030     0.        0.030   369762      44882862   [trimmed] ReadBlob 
 Caller-callee
0.030     0.030     0.080     0.110        0             0   [trimmed] memcpy  
Caller-callee

Notice that the program consumed 9.347 of wall-clock seconds but only 6.264 seconds of user CPU even though it should be CPU bound. However, the program does allocate 5GB of memory.

Linux:
time ./magick large.gif
./magick large.gif  4.21s user 1.89s system 98% cpu 6.179 total

OpenIndiana:
% time ./magick large.gif
./magick large.gif  5.87s user 3.63s system 85% cpu 11.105 total

It bothers me that GraphicsMagick has principly been developed and tuned on Solaris yet I see it performing poorly under OpenIndiana vs Linux.

Any ideas for the best way to diagnose?

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to