Source: coreutils
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Subject: coreutils: sha256sum and md5sum very slow on ppc64el
Source: coreutils
Severity: normal
User: debian-powe...@lists.debian.org
Usertag: ppc64el

Dear Maintainer,

The commands sha256sum and md5sum provided by coreutils are extremely
slow on ppc64el arch when run on  somewhat large files.

Although when coreutils is configured and built with --with-openssl
flag, the performance gets significantly better.

So, the patch I am attaching does that. Could you please consider it?

Thanks!

Here is some additional data:

$ ls -lh yakkety-server-ppc64el.iso 
-rw-r--r-- 1 root root 631M Jan 31 14:48 yakkety-server-ppc64el.iso

$ ldd /usr/bin/sha256sum 
        linux-vdso64.so.1 (0x00003fffada90000)
        libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x00003fffad890000)
        /lib64/ld64.so.2 (0x000000002e2a0000)

$ time /usr/bin/sha256sum yakkety-server-ppc64el.iso 
d14bdb413ea6cdc8d9354fcbc37a834b7de0c23f992deb0c6764d0fd5d65408e  
yakkety-server-ppc64el.iso

real    0m16.657s
user    0m16.429s
sys     0m0.136s

$ ldd src/sha256sum 
        linux-vdso64.so.1 (0x00003fffaddd0000)
        libcrypto.so.1.1 => /usr/lib/powerpc64le-linux-gnu/libcrypto.so.1.1 
(0x00003fffadb20000)
        libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x00003fffad960000)
        libdl.so.2 => /lib/powerpc64le-linux-gnu/libdl.so.2 (0x00003fffad930000)
        libpthread.so.0 => /lib/powerpc64le-linux-gnu/libpthread.so.0 
(0x00003fffad8f0000)
        /lib64/ld64.so.2 (0x000000002b650000)

$ time ./src/sha256sum ./yakkety-server-ppc64el.iso 
d14bdb413ea6cdc8d9354fcbc37a834b7de0c23f992deb0c6764d0fd5d65408e  
./yakkety-server-ppc64el.iso

real    0m1.912s
user    0m1.774s
sys     0m0.132s

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (1, 'experimental')
Architecture: ppc64el (ppc64le)

Kernel: Linux 4.8.0-1-powerpc64le (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Reply via email to