convert slow on new server because of FUTEX_WAIT_PRIVATE
Posted: 2015-08-03T08:21:15-07:00
This may not be a bug so sorry if its the wrong forum.
I am testing one of our new servers, this machines has 48cores ( /proc/cpu shows 96 cpu's because of HT) we are using RHEL6.5 and are using ImageMagick-6.5.4.7-7. Although I compiled the latest from source and get the same problem.
Whenever I use more than 3 threads convert runs really slow with futex being the top system call. strace shows it wait on FUTEX_WAIT_PRIVATE.
On our older server running the same OS, kernel and IM we don't see this and can run any amount of threads we want, its far faster.
many thanks,
I am testing one of our new servers, this machines has 48cores ( /proc/cpu shows 96 cpu's because of HT) we are using RHEL6.5 and are using ImageMagick-6.5.4.7-7. Although I compiled the latest from source and get the same problem.
Whenever I use more than 3 threads convert runs really slow with futex being the top system call. strace shows it wait on FUTEX_WAIT_PRIVATE.
On our older server running the same OS, kernel and IM we don't see this and can run any amount of threads we want, its far faster.
Anyone have any idea what might be going on here?time strace -c convert -limit thread 3 00436248BE.tif -resize 10x10 aa.jpg
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
65.91 0.081988 11713 7 2 futex
31.69 0.039415 1516 26 munmap
1.98 0.002469 0 20707 read
0.25 0.000305 0 10368 lseek
0.14 0.000178 3 60 16 open
0.02 0.000021 0 69 write
0.01 0.000015 0 102 mmap
0.00 0.000000 0 44 close
0.00 0.000000 0 10 1 stat
0.00 0.000000 0 49 fstat
0.00 0.000000 0 37 mprotect
0.00 0.000000 0 15 brk
0.00 0.000000 0 10 rt_sigaction
0.00 0.000000 0 17 rt_sigprocmask
0.00 0.000000 0 6 1 access
0.00 0.000000 0 2 madvise
0.00 0.000000 0 2 clone
0.00 0.000000 0 1 execve
0.00 0.000000 0 1 fcntl
0.00 0.000000 0 2 getdents
0.00 0.000000 0 2 getcwd
0.00 0.000000 0 1 readlink
0.00 0.000000 0 2 getrlimit
0.00 0.000000 0 12 times
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 1 sched_getaffinity
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 1 set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00 0.124391 31556 20 total
real 0m27.251s
user 0m6.755s
sys 0m18.573s
many thanks,