firoorg / cpuminer

cpuminer with mtp support
Other
38 stars 15 forks source link

AMD Opteron 6234 (6200/6300 series Opteron) Bulldozer/Piledriver microarchitecture build (fail to run compiled binary 0.1.1) #15

Open agentpatience opened 5 years ago

agentpatience commented 5 years ago

These systems fail to run compiled binary using a server system of AMD 6200/6300 series QUAD Opteron processors each with 12-16 cores per processor die; depending on the blade configuration. I have 12 of these systems that I would like to bring up with djm CPUminer if possible. My first attempt failed as per a successful bring up of a intel dual 2680v4 server:

so we build CPUminer+mtp on Ubunto 18.10 Server as per:

sudo apt-get update -y sudo apt-get upgrade -y sudo reboot git clone https://github.com/zcoinofficial/cpuminer.git cd cpuminer/ chmod a+x configure chmod a+x build.sh chmod a+x autogen.sh sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ sudo apt-get install zlib1g-dev ./build.sh

When we run the binary in GDB we get:

jeff@PowerEdge-M915-miner7:~/cpuminer$ gdb --args ./cpuminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u a1jdNZbAdNKCh33VdJtCvdjnXc4VbSXmfC.blade7 -p 0,d=6,verbose,strict GNU gdb (Ubuntu 8.2-0ubuntu1) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./cpuminer...(no debugging symbols found)...done. (gdb) run Starting program: /home/jeff/cpuminer/cpuminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u a1jdNZbAdNKCh33VdJtCvdjnXc4VbSXmfC.blade7 -p 0,d=6,verbose,strict [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". cpuminer-multi 0.1.0 by djm34 BTC donation address: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze (djm34) ZCoin donation address: aChWVb8CpgajadpLmiwDZvZaKizQgHxfh5 (djm34)

[New Thread 0x7ffff4302700 (LWP 11127)] [New Thread 0x7ffff3b01700 (LWP 11128)] [2019-03-12 20:53:54] Starting Stratum on stratum+tcp://zcoin.mintpond.com:3000 [New Thread 0x7ffff3300700 (LWP 11129)] [New Thread 0x7ffff2aff700 (LWP 11130)] [New Thread 0x7ffff22fe700 (LWP 11131)] [New Thread 0x7ffff1ae8700 (LWP 11132)] [New Thread 0x7ffff10aa700 (LWP 11133)] [New Thread 0x7ffff0878700 (LWP 11134)] [New Thread 0x7fffcbfff700 (LWP 11135)] [New Thread 0x7fffd3fff700 (LWP 11136)] [New Thread 0x7fffd37cd700 (LWP 11137)] [New Thread 0x7fffd2f9b700 (LWP 11138)] [New Thread 0x7fffd2769700 (LWP 11139)] [New Thread 0x7fffd1f37700 (LWP 11140)] [New Thread 0x7fffd1705700 (LWP 11141)] [New Thread 0x7fffd0ed3700 (LWP 11142)] [New Thread 0x7fffcb7fe700 (LWP 11143)] [New Thread 0x7fffcaffd700 (LWP 11144)] [New Thread 0x7fffca7fc700 (LWP 11145)] [New Thread 0x7fffc9ffb700 (LWP 11146)] [New Thread 0x7fffc97fa700 (LWP 11147)] [New Thread 0x7fffc8ff9700 (LWP 11148)] [New Thread 0x7fff93fff700 (LWP 11149)] [New Thread 0x7fff937fe700 (LWP 11150)] [New Thread 0x7fff92ffd700 (LWP 11151)] [New Thread 0x7fff927fc700 (LWP 11152)] [New Thread 0x7fff91ffb700 (LWP 11153)] [Thread 0x7ffff2aff700 (LWP 11130) exited] [New Thread 0x7fff917fa700 (LWP 11154)] [New Thread 0x7fff90ff9700 (LWP 11155)] [New Thread 0x7fff77fff700 (LWP 11156)] [New Thread 0x7fff777fe700 (LWP 11157)] [New Thread 0x7fff76ffd700 (LWP 11158)] [New Thread 0x7fff767fc700 (LWP 11159)] [New Thread 0x7fff75ffb700 (LWP 11160)] [New Thread 0x7fff757fa700 (LWP 11161)] [New Thread 0x7fff74ff9700 (LWP 11162)] [New Thread 0x7fff53fff700 (LWP 11163)] [New Thread 0x7fff4bfff700 (LWP 11164)] [New Thread 0x7fff537fe700 (LWP 11165)] [New Thread 0x7fff52ffd700 (LWP 11166)] [New Thread 0x7fff527fc700 (LWP 11167)] [New Thread 0x7fff51ffb700 (LWP 11168)] [New Thread 0x7fff517fa700 (LWP 11169)] [New Thread 0x7fff50ff9700 (LWP 11170)] [New Thread 0x7fff4b7fe700 (LWP 11171)] [New Thread 0x7fff4affd700 (LWP 11172)] [New Thread 0x7fff4a7fc700 (LWP 11173)] [New Thread 0x7ffff2aff700 (LWP 11174)] [New Thread 0x7fff49ffb700 (LWP 11175)] [New Thread 0x7fff497fa700 (LWP 11176)] [New Thread 0x7fff48ff9700 (LWP 11177)] [New Thread 0x7fff13fff700 (LWP 11178)] [2019-03-12 20:53:54] 48 miner threads started, using 'mtp' algorithm. [2019-03-12 20:53:58] MESSAGE FROM SERVER: Suggested min-difficulty accepted: 6 [2019-03-12 20:53:58] MESSAGE FROM SERVER: Verbose mode enabled. [2019-03-12 20:53:58] MESSAGE FROM SERVER: Strict mode enabled [2019-03-12 20:53:58] MESSAGE FROM SERVER: Difficulty change: 6 [2019-03-12 20:53:58] MESSAGE FROM SERVER: New Job: 00000444

Thread 3 "cpuminer" received signal SIGILL, Illegal instruction. [Switching to Thread 0x7ffff3b01700 (LWP 11128)] 0x00005555555b581e in ?? () (gdb)

----------------------------------- DIAGNOSTICS ----------------------------------------

Probe CPU subsystem on blade server 7

jeff@PowerEdge-M915-miner7:~/cpuminer$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 48 On-line CPU(s) list: 0-47 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 4 NUMA node(s): 8 Vendor ID: AuthenticAMD CPU family: 21 Model: 1 Model name: AMD Opteron(TM) Processor 6234 Stepping: 2 CPU MHz: 2876.096 BogoMIPS: 4800.25 Virtualization: AMD-V L1d cache: 16K L1i cache: 64K L2 cache: 2048K L3 cache: 8192K NUMA node0 CPU(s): 0-5 NUMA node1 CPU(s): 6-11 NUMA node2 CPU(s): 24-29 NUMA node3 CPU(s): 30-35 NUMA node4 CPU(s): 12-17 NUMA node5 CPU(s): 18-23 NUMA node6 CPU(s): 36-41 NUMA node7 CPU(s): 42-47 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid amd_dcm aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 nodeid_msr topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold

Please help!

djm34 commented 5 years ago

use larger difficulty, you need to scale your difficulty according the number of core/thread you use. The gdb info are pretty useless (my bad). I'll try to find out how to do a debug build for linux. However if you have a windows machine and msvc, the windows build of cpuminer have debug info

agentpatience commented 5 years ago

Thanks. I will try to test with windows install on the system with -debug option but I prefer to run miners with linux.

djm34 commented 5 years ago

I dont mean with --debug option. I mean running it within msvc in debug mode. I have been running it since the beginning of the afternoon this way and haven't any crash yet... so I really need your input

GeorgeAnton1 commented 4 years ago

I'm having the same issue. Was there anything I can do to help?