Hey together,
as pooler helped me out with some problems in front of the screen, here's something for the community.
If you want to install cpuminer on AIX you will need some additional packages.
This guide will use git, so many dependencies...
As AIX has only two good sources for OSS-sources, the packages are all from
http://www.perzl.org/aix/ Only gettext is from the AIX Toolbox for Linux, Perzl describes the causes very well in his FAQs.
For testing purposes I used a fresh rte install based on 7100-04-04-1717, no additional software except openssh.
You'll need following Packages with gcc and git:
autoconf automake bash bzip2 curl curl-devel db4 expat fontconfig freetype2 gettext gcc gcc-c++ gcc-cpp gdbm git glib2 gmp info less libXft libXrender libffi libgcc libiconv libidn libidn-devel libmpc libpng libsigsegv libssh2 libssh2-devel libstdc++ libstdc++-devel m4 mpfr openldap openssl openssl-devel perl pkg-config popt python python-libs readline rsync sqlite tcl tk zlib zlib-devel
Minimal requirements are lib curl / curl-devel:
bash curl curl-devel gettext glib2 info libffi libgcc libiconv libidn libidn-devel libssh2 libssh2-devel openssl openssl-devel pkg-config zlib zlib-devel
Make sure you got enough space in /opt, else use
chfs -asize=+2G /opt
Install them all with
rpm -Uvh *rpm
As I'm behind a firewall, the github certificate was not accepted, so I disabled ssl altogether.
git config --global http.sslVerify "false"
Now it's straightforward:
git clone https://github.com/pooler/cpuminer
cd cpuminer
./autogen.sh
./nomacro.pl
./configure --prefix=/opt/freeware CFLAGS="-O3 -maltivec"
make
make install
Until now I did not test 64Bit compilation, as all rpm-packages have to be 64-Bit.
maltivec makes around 50kh/s difference per share.
Some numbers from my virtual machine:
The hardware is a power8 with 48 cores and 512gb ram.
The virtual machine can distribute work to 45 processors out of the pool, but only if no other lpar needs any cpu resources.
Aix typical is the low memory consumption, only 4gb are given to the lpar.
AIX is running in SMT4 mode, so I have 160 available threads.
With the configured 60 threads the machine is running with 37 fully used physical cores.
Using 60 threads I get around 190kh/s per Share.
Running with 120 threads get the hash rate to 314-322 kh/s for a share. Still the hardware is not hitting the limits.
It's still not a miner hardware but the effectiveness is impressive.
160 Threads equals 100% CPU usage and 490kh/s per Share.
Here is a bundle file:
https://pastebin.com/HrDHc276Use following one-liner.
mkdir /rpm && cd/rpm &&
for rpm in $(cat cpuminer.bundle); do curl-o $rpm ftp://www.oss4aix.org/latest/aix71/$rpm ;done;rpm -Uvh *rpm && cd && rm -rf /rpm
Either use another machine or install curl or wget prior to downloading.
wget is also available from the AIX toolbox.
I can provide binary neutral AIX versions of minerdHere's a miners-benchmark with 200 Threads:
/usr/local/bin/minerd -c $(pwd)/minerd.conf 2>&1 |grep Total
[2017-06-23 17:53:05] Total: 399.77 khash/s
[2017-06-23 17:53:10] Total: 401.58 khash/s
[2017-06-23 17:53:15] Total: 400.39 khash/s
[2017-06-23 17:53:20] Total: 396.96 khash/s
[2017-06-23 17:53:25] Total: 393.59 khash/s
[2017-06-23 17:53:30] Total: 392.47 khash/s
[2017-06-23 17:53:35] Total: 394.68 khash/s
[2017-06-23 17:53:40] Total: 396.19 khash/s
[2017-06-23 17:53:45] Total: 393.41 khash/s
[2017-06-23 17:53:50] Total: 400.57 khash/s
[2017-06-23 17:53:55] Total: 398.59 khash/s
[2017-06-23 17:54:00] Total: 402.92 khash/s
[2017-06-23 17:54:05] Total: 398.25 khash/s
[2017-06-23 17:54:10] Total: 400.11 khash/s
[2017-06-23 17:54:15] Total: 399.80 khash/s
[2017-06-23 17:54:20] Total: 400.75 khash/s
[2017-06-23 17:54:25] Total: 398.59 khash/s
[2017-06-23 17:54:30] Total: 399.60 khash/s
[2017-06-23 17:54:35] Total: 400.05 khash/s
[2017-06-23 17:54:40] Total: 403.55 khash/s
[2017-06-23 17:54:45] Total: 404.49 khash/s
[2017-06-23 17:54:50] Total: 402.77 khash/s
Just a quick update:
Got our old Power7+ running again and did a benchmark with one thread:
[2017-06-28 09:41:17] Total: 3.76 khash/s
[2017-06-28 09:41:21] Total: 3.76 khash/s
[2017-06-28 09:41:26] Total: 3.76 khash/s
[2017-06-28 09:41:31] Total: 3.76 khash/s
[2017-06-28 09:41:36] Total: 3.76 khash/s
[2017-06-28 09:41:41] Total: 3.76 khash/s
[2017-06-28 09:41:46] Total: 3.76 khash/s
[2017-06-28 09:41:51] Total: 3.75 khash/s
[2017-06-28 09:41:56] Total: 3.76 khash/s
[2017-06-28 09:42:01] Total: 3.76 khash/s
[2017-06-28 09:42:06] Total: 3.76 khash/s
To get a grip on these numbers here the power8 lpar, also with one thread:
[2017-06-28 09:44:05] Total: 3.38 khash/s
[2017-06-28 09:44:09] Total: 3.39 khash/s
[2017-06-28 09:44:14] Total: 3.40 khash/s
[2017-06-28 09:44:19] Total: 3.37 khash/s
[2017-06-28 09:44:24] Total: 3.40 khash/s
[2017-06-28 09:44:29] Total: 3.37 khash/s
[2017-06-28 09:44:34] Total: 3.40 khash/s
[2017-06-28 09:44:39] Total: 3.36 khash/s
Regards
Jens