silentarmy
silentarmy copied to clipboard
pipe closed by peer or os.write(pipe, data) raised exception.
Hi, why the silentarmy raised exception?
$fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon(TM) R7 Graphics
OpenGL version string: 4.5.13399 Compatibility Profile Context 15.302
$ ./silentarmy --list
Devices on platform "AMD Accelerated Parallel Processing":
ID 0: Spectre
ID 1: AMD A10-7860K Radeon R7, 12 Compute Cores 4C+8G
Connecting to cn1-zcash.flypool.org:3333
Solver 1.0: EOF while reading banner
Solver 1.1: EOF while reading banner
Solver 1.2: EOF while reading banner
Solver 1.3: EOF while reading banner
Solver 1.6: EOF while reading banner
Solver 1.7: EOF while reading banner
Solver 1.5: EOF while reading banner
Solver 1.4: EOF while reading banner
Stratum server sent us the first job
Mining on 1 device
pipe closed by peer or os.write(pipe, data) raised exception.
pipe closed by peer or os.write(pipe, data) raised exception.
pipe closed by peer or os.write(pipe, data) raised exception.
..........
Can you try running: sa-solver --nonces 100
This will either work or show you the exact error.
i have same error when write param --instances , without it works normal
@Ajworry "pipe closed by peer" is a generic error message that has many different causes. What --instances values cause you to see the error? 1, 2, 3, or more?
every instances. without param instances work normaly
bill@server1:~/mining$ ./silentarmy/silentarmy --use 0,1,2,3,4,5 --instances 2 -c stratum+tcp://eu1-zcash.flypool.org:3333 -u txxxxxx.server1 Connecting to eu1-zcash.flypool.org:3333 Solver 0.0: unexpected banner "No protocol specified" Solver 0.1: unexpected banner "No protocol specified" Solver 1.0: unexpected banner "No protocol specified" Solver 1.1: unexpected banner "No protocol specified" Solver 2.0: unexpected banner "No protocol specified" Solver 2.1: unexpected banner "No protocol specified" Solver 3.0: unexpected banner "No protocol specified" Solver 3.1: unexpected banner "No protocol specified" Solver 4.0: unexpected banner "No protocol specified" Solver 4.1: unexpected banner "No protocol specified" Solver 5.0: unexpected banner "No protocol specified" Solver 5.1: unexpected banner "No protocol specified" Stratum server sent us the first job Mining on 6 devices pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception. pipe closed by peer or os.write(pipe, data) raised exception.
@Ajworry Can you try the troubleshooting steps "Basic Operation" and "Correct results" as per https://github.com/mbevand/silentarmy/blob/master/TROUBLESHOOTING.md ?
bill@server1:~/mining/silentarmy$ ./sa-solver --use 0
Solving default all-zero 140-byte header
No protocol specified
No protocol specified
Building program
Hash tables will use 805.3 MB
Running...
Nonce 0000000000000000000000000000000000000000000000000000000000000000: 2 sols
Total 2 solutions in 1138.2 ms (1.8 Sol/s)
bill@server1:~/mining/silentarmy$ make test
./sa-solver --nonces 100 -v -v 2>&1 | grep Soln: |
diff -u testing/sols-100 - | cut -c 1-75
bill@server1:~/mining/silentarmy$
everything normal card is r9 390 OC 8GB
Please report the output of: echo $DISPLAY
display nothing bill@server1:~/mining/silentarmy$ echo $DISPLAY
bill@server1:~/mining/silentarmy$ sudo echo $DISPLAY [sudo] password for bill:
bill@server1:~/mining/silentarmy$
Nothing displayed might explain the pb... Report the full output of this one command:
$ env DISPLAY=:0 ./sa-solver
bill@server1:~/mining/silentarmy$ env DISPLAY=:0 ./sa-solver Solving default all-zero 140-byte header No protocol specified No protocol specified No protocol specified Building program Hash tables will use 805.3 MB Running... Nonce 0000000000000000000000000000000000000000000000000000000000000000: 2 sols Total 2 solutions in 2100.9 ms (1.0 Sol/s) bill@server1:~/mining/silentarmy$
Hmm what about:
$ xauth list | sed -r 's,[0-9a-f]{32},XXX,'
bill@server1:~/mining/silentarmy$ xauth list | sed -r 's,[0-9a-f]{32},XXX,' xauth: file /home/bill/.Xauthority does not exist bill@server1:~/mining/silentarmy$
Ok this is your problem. I need to understand why you are missing this file. Are you logging into your Linux system, using the graphical console, as "bill"? Or are you using some equivalent of "sudo -u bill" or "su - bill" ? Are you ssh'ing remotely?
i am logging thru ssh, driver fglrx 15.302 / ubuntu 15.04 server / gnome desktop login automatic as bill
Instead of fixing your specific issue, I pushed a general fix that helps silentarmy ignore these errors: https://github.com/mbevand/silentarmy/commit/438cdbca0822f404e2cd47cf82a5072d28cbf481
"git pull && make" and can you report the output of "./sa-solver" as well as "./silentarmy" (even if it works).
bill@server1:~/mining/silentarmy$ nano param.h bill@server1:~/mining/silentarmy$ ./sa-solver Solving default all-zero 140-byte header No protocol specified No protocol specified Building program Hash tables will use 1208.0 MB Running... Nonce 0000000000000000000000000000000000000000000000000000000000000000: 2 sols Total 2 solutions in 2237.1 ms (0.9 Sol/s) bill@server1:~/mining/silentarmy
bill@server1:~/mining/silentarmy$ ./silentarmy --use 0 --instances 2 -c stratum+tcp://eu1-zcash.flypool.org:3333 -u txxxxx.server1 Connecting to eu1-zcash.flypool.org:3333 Stratum server sent us the first job Mining on 1 device Total 0.0 sol/s [dev0 0.0] 0 shares Total 0.0 sol/s [dev0 0.0] 0 shares Total 0.0 sol/s [dev0 0.0] 0 shares Total 0.0 sol/s [dev0 0.0] 0 shares Total 0.7 sol/s [dev0 0.7] 0 shares Total 0.6 sol/s [dev0 0.6] 0 shares Total 0.5 sol/s [dev0 0.5] 0 shares Total 0.4 sol/s [dev0 0.4] 0 shares Total 0.4 sol/s [dev0 0.4] 0 shares Total 0.3 sol/s [dev0 0.3] 0 shares Total 0.4 sol/s [dev0 0.4] 0 shares Total 0.4 sol/s [dev0 0.4] 0 shares Total 0.3 sol/s [dev0 0.4] 0 shares Total 0.3 sol/s [dev0 0.4] 0 shares Total 0.5 sol/s [dev0 0.4] 1 share Total 0.5 sol/s [dev0 0.4] 1 share
works but not well
What are your hardware specs? Is this really on an R9 390?
$ ./silentarmy --list
works i reboot it and working but i make OPTIM_SIMPLIFY_ROUND 1 and sa-sover show 1.2GB
After setting OPTIM_SIMPLIFY_ROUND you need to recompile with make.
sorry my fail thanks
@mbevand Is it possible to add an option like -o, --optim in command line so we don't have to change the param.h?
and my specs are asrock-h81-pro-btc intel-celeron-g1840 maybe this slowing mining crucial-ballistix-tactical-8gb-2x4gb-ddr3-1600 kingston-ssdnow-v300-120gb 6x sapphire-nitro-r9-390-8gb-with-back-plate
45-50 sol/s one card 2 instances and OPTIM_SIMPLIFY_ROUND 1
@Ajworry Ok so your perf looks good.
@johiro I will consider it. Pull request are welcome to implement this.
@yjdwbj Don't forget to let me know what "sa-solver --nonces 100" reports.
I'm getting the following when I use sa-solver --use 0
. Is my card not supported?
Solving default all-zero 140-byte header
Building program
LLVM ERROR: Cannot select: 0x12a9b30: i32,ch = AtomicLoadAdd<Volatile LDST4[%1969(addrspace=1)]> 0x12a2820, 0x12a9080, 0x12a9670
0x12a9080: i32 = add 0x12a8e20, 0x12a8960
0x12a8e20: i32,ch = CopyFromReg 0x175fc30, Register:i32 %vreg41
0x12a8cf0: i32 = Register %vreg41
0x12a8960: i32 = and 0x12aa250, Constant:i32<524284>
0x12aa250: i32 = srl 0x12a3400, Constant:i32<1>
0x12a3400: i32 = or 0x12a3530, 0x12a8f50
0x12a3530: i32 = and 0x27b1f90, Constant:i32<983040>
0x27b1f90: i32 = srl 0x27523e0, Constant:i32<4>
0x27523e0: i32 = xor 0x2752180, 0x25781e0
0x2752180: i32 = xor 0x25789a0, 0x27b1d30
0x25789a0: i32 = add 0x274ff10, 0xef9bd0
0x27b1d30: i32,ch = load<LD4[%blake_state(addrspace=1)](align=8)(tbaa=<0x18285b8>)> 0x175fc30, 0x26811a0, undef:i32
0x25781e0: i32 = add 0x1f9ae20, 0x2575d50
0x1f9ae20: i32 = or 0x1f9acf0, 0x1f9abc0
0x2575d50: i32 = add 0x1f99540, 0x25744f0
0x27b1c00: i32 = Constant<4>
0x27b19a0: i32 = Constant<983040>
0x12a8f50: i32 = and 0x27523e0, Constant:i32<65535>
0x27523e0: i32 = xor 0x2752180, 0x25781e0
0x2752180: i32 = xor 0x25789a0, 0x27b1d30
0x25789a0: i32 = add 0x274ff10, 0xef9bd0
0x274ff10: i32 = or 0x274fde0, 0x274fcb0
0xef9bd0: i32 = add 0x25739a0, 0x1f92e00
0x27b1d30: i32,ch = load<LD4[%blake_state(addrspace=1)](align=8)(tbaa=<0x18285b8>)> 0x175fc30, 0x26811a0, undef:i32
0x26811a0: i32,ch = CopyFromReg 0x175fc30, Register:i32 %vreg39
0x2574e70: i32 = undef
0x25781e0: i32 = add 0x1f9ae20, 0x2575d50
0x1f9ae20: i32 = or 0x1f9acf0, 0x1f9abc0
0x1f9acf0: i32 = srl 0x1f9a710, Constant:i32<16>
0x1f9abc0: i32 = shl 0x1f9a960, Constant:i32<16>
0x2575d50: i32 = add 0x1f99540, 0x25744f0
0x1f99540: i32 = xor 0xef9e30, 0x1f91fd0
0x25744f0: i32 = add 0x1f8f2b0, 0x267fab0
0x12a2ce0: i32 = Constant<65535>
0x26801d0: i32 = Constant<1>
0x12a8830: i32 = Constant<524284>
0x12a9670: i32 = shl Constant:i32<1>, 0x12a9540
0x26801d0: i32 = Constant<1>
0x12a9540: i32 = and 0x12a8bc0, Constant:i32<28>
0x12a8bc0: i32 = shl 0x12a3400, Constant:i32<2>
0x12a3400: i32 = or 0x12a3530, 0x12a8f50
0x12a3530: i32 = and 0x27b1f90, Constant:i32<983040>
0x27b1f90: i32 = srl 0x27523e0, Constant:i32<4>
0x27523e0: i32 = xor 0x2752180, 0x25781e0
0x2752180: i32 = xor 0x25789a0, 0x27b1d30
0x25789a0: i32 = add 0x274ff10, 0xef9bd0
0x27b1d30: i32,ch = load<LD4[%blake_state(addrspace=1)](align=8)(tbaa=<0x18285b8>)> 0x175fc30, 0x26811a0, undef:i32
0x25781e0: i32 = add 0x1f9ae20, 0x2575d50
0x1f9ae20: i32 = or 0x1f9acf0, 0x1f9abc0
0x2575d50: i32 = add 0x1f99540, 0x25744f0
0x27b1c00: i32 = Constant<4>
0x27b19a0: i32 = Constant<983040>
0x12a8f50: i32 = and 0x27523e0, Constant:i32<65535>
0x27523e0: i32 = xor 0x2752180, 0x25781e0
0x2752180: i32 = xor 0x25789a0, 0x27b1d30
0x25789a0: i32 = add 0x274ff10, 0xef9bd0
0x274ff10: i32 = or 0x274fde0, 0x274fcb0
0xef9bd0: i32 = add 0x25739a0, 0x1f92e00
0x27b1d30: i32,ch = load<LD4[%blake_state(addrspace=1)](align=8)(tbaa=<0x18285b8>)> 0x175fc30, 0x26811a0, undef:i32
0x26811a0: i32,ch = CopyFromReg 0x175fc30, Register:i32 %vreg39
0x2574e70: i32 = undef
0x25781e0: i32 = add 0x1f9ae20, 0x2575d50
0x1f9ae20: i32 = or 0x1f9acf0, 0x1f9abc0
0x1f9acf0: i32 = srl 0x1f9a710, Constant:i32<16>
0x1f9abc0: i32 = shl 0x1f9a960, Constant:i32<16>
0x2575d50: i32 = add 0x1f99540, 0x25744f0
0x1f99540: i32 = xor 0xef9e30, 0x1f91fd0
0x25744f0: i32 = add 0x1f8f2b0, 0x267fab0
0x12a2ce0: i32 = Constant<65535>
0x12a8a90: i32 = Constant<2>
0x12a9410: i32 = Constant<28>
In function: kernel_round0
@killermonk Your card/OpenCL implementation is probably not supported. Sorry, SA is currently not maintained any more.
Hi.
As far I could check my silentarmy version already contains the 438cdbc patch but still getting that pipe close exception. I ran sa-solver --nonces 1000 and got the following:
Total 1824 solutions in 77748.8 ms (23.5 Sol/s)
After I ran --list:
eu@eu-MS-7345:~/silentarmy$ ./sa-solver --list ./sa-solver: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by ./sa-solver) Devices on platform "NVIDIA CUDA": ID 0: GeForce GTX 950
What do you think is going on € (oddly no question mark on my keyboard)
Thanks.
@Ajworry Can you try the troubleshooting steps "Basic Operation" and "Correct results" as per https://github.com/mbevand/silentarmy/blob/master/TROUBLESHOOTING.md ?
Can you please help? 🥲