Pages:
Author

Topic: Xpm mining for linux using Clintars T16 linux port of Aeroclouds Xpm miner (Read 6997 times)

member
Activity: 81
Merit: 10
Hello,

What wrong for me please ?
(Ubuntu 12.04 Server 64 bits)

╔═══════════════════════════════════════════════════════════════╗
║  jhPrimeMiner - mod by AeroCloud - T17vCl                     ║
║     optimised from rdebourbon 3.3 build + HP11 updates        ║
║  author: JH (http://ypool.net)                                ║
║  contributors: x3maniac, rdebourbon, clintar                  ║
║  Credits: Sunny King for the original Primecoin client&miner  ║
║  Credits: mikaelh for the performance optimizations           ║
║                                                               ║
║  Donations:                                                   ║
║        XPM: AFv6FpGBqzGUW8puYzitUwZKjSHKczmteY                ║
║        BTC: 1Ca9qP6tkAEo6EpgtXvuANr936c9FbgBrH                ║
╚═══════════════════════════════════════════════════════════════╝
Launching miner...
GeneratePrimeTable() : prime table [1, 10000000] generated with 664579 primes
Connecting to 'mining.ypool.net'
Using 1 threads
Username: PhilippeDenoyer.worker1
Password: password
Using x.pushthrough protocol
xpt: Logged in
===============================================================
Keyboard shortcuts:
   ,      - Quit
    - Print current settings
    - Print Help
    - Toggle SPS Messages
   

- Print Primorial Stats

══════════════════════════════════════════════════════════════════════════════
New Block: 461373 - Diff: 10.41683763 / 7.00000000
Valid/Total shares: [ 0 / 0 ]  -  Max diff: 0.00000000
        [    7ch] [    8ch] [    9ch] [   10ch] [   11ch] [  12ch+]
 Total: [      0] [      0] [      0] [      0] [      0] [      0]
  ch/h: [  0.000] [  0.000] [  0.000] [  0.000] [  0.000] [  0.000]
══════════════════════════════════════════════════════════════════════════════
  Val/h: 0.000000                     Last Block/Total: 0.000000 / 0.000000


full member
Activity: 219
Merit: 100
Compiled this for FreeBSD 9.1, with only one source modification and 1 small change to the makefile... (The source change shouldn't actually make any difference, it's just extra curly braces where they shouldn't be needed, but the compiler was being fussy)

I'll send you the changes to check over via PM soon, so you can check them yourself (you may well have a better way of doing it)

Was that you who sent me the merge request. it should be ok now.

how to compile on freebsd 9.1 ?..
I have this error:
Code:
# gmake
clang++ -c -mtune=native -Wall -Wextra -std=c++0x -O3 -fomit-frame-pointer -DHAVE_DECL_LE32DEC -I/usr/local/include -I/usr/include -Isrc/primecoinMiner/includes/ src/primecoinMiner/bn2.cpp -o src/primecoinMiner/bn2.o
In file included from src/primecoinMiner/bn2.cpp:1:
In file included from src/primecoinMiner/global.h:44:
/usr/local/include/gmpxx.h:55:10: fatal error: 'type_traits' file not found
#include // for common_type
         ^
1 error generated.
gmake: *** [src/primecoinMiner/bn2.o] Error 1
full member
Activity: 212
Merit: 100
I finally added a fix for disconnects that was found by girino in his xptminer metiscoin stuff.
full member
Activity: 212
Merit: 100
Finally got around to adding this option. It's -M to enable messages.

Hey clintar, thank you for adding this option. I also sent you 2 XPM to support you and your work. I know it isn't much, but I don't have much more atm anyways. Grin

However, I think you introduced a bug with the last update. A new System of mine using your latest version crashes after some hours of working quite fine with the following output:
Code:
xpt: Disconnected, auto reconnect in 30 seconds
xptPacketbuffer_writeData(): Packetbuffer too small
xptPacketbuffer_writeData(): Packetbuffer too small
xptPacketbuffer_writeData(): Packetbuffer too small

First occurence after ~8 hours, second one after ~14. The earlier version of the miner is running on another system for > 1 Week now without any problems. Undecided
I've found the bug. It's funky 'cause I couldn't get the program to think it got disconnected even by unplugging the ethernet cable, or setting a bad route to ypool. I had to trick it into thinking it did or it just happily keeps hashing thinking everything is fine, which makes me wonder what circumstances make it think it gets disconnected. I've got to look into the socket routines to see if something different needs to be done to check for a disconnect. I've got a few other fixes I need to test and I'll update when that's done.  Thanks for the report, and sorry it takes me so long to respond. I need more time...

Edit: Changes should be live now. WARNING: There is now a 3% dev fee. 2.5% going to AeroCloud, .5% to me.
full member
Activity: 212
Merit: 100
thanks for your work.

I just compiled your linux version. Its running fine on Linux Mint 16.



How is its performance compared to the running the windows version under wine? Just asking, I am not intrested to change to wine, because I don't want to install it.
I think it was like 10% slower in wine.
newbie
Activity: 11
Merit: 0
Thanks for the clarification.
I was about to offer a shell access to my Debian 7.4 32 bits box if anyone wanted to have a look, but I didn't know about the performance issue.
It may not be worth the effort then.

Cheers.
full member
Activity: 212
Merit: 100
Hello Clintar,

I have compiled jhPrimeminer-Aero from https://github.com/clintar/jhPrimeminer-Aero/ on a Debian 7.4 box (x86-32 bits).

The resulting binary starts fine but shortly dies with a:

Code:
╔═══════════════════════════════════════════════════════════════╗
║  jhPrimeMiner - mod by AeroCloud - T17vCl                     ║
║     optimised from rdebourbon 3.3 build + HP11 updates        ║
║  author: JH (http://ypool.net)                                ║
║  contributors: x3maniac, rdebourbon, clintar                  ║
║  Credits: Sunny King for the original Primecoin client&miner  ║
║  Credits: mikaelh for the performance optimizations           ║
║                                                               ║
║  Donations:                                                   ║
║        XPM: AFv6FpGBqzGUW8puYzitUwZKjSHKczmteY                ║
║        BTC: 1Ca9qP6tkAEo6EpgtXvuANr936c9FbgBrH                ║
╚═══════════════════════════════════════════════════════════════╝
Launching miner...
GeneratePrimeTable() : prime table [1, 10000000] generated with 664579 primes
Connecting to 'ypool.net'
Using 16 threads
Username: ************
Password: ************
Using x.pushthrough protocol
xpt: Logged in
===============================================================
Keyboard shortcuts:
   ,      - Quit
    - Print current settings
    - Print Help
    - Toggle SPS Messages
   

- Print Primorial Stats

══════════════════════════════════════════════════════════════════════════════
New Block: 398387 - Diff: 10.42422318 / 7.00000000
Valid/Total shares: [ 0 / 0 ]  -  Max diff: 0.00000000
        [    7ch] [    8ch] [    9ch] [   10ch] [   11ch] [  12ch+]
 Total: [      0] [      0] [      0] [      0] [      0] [      0]
  ch/h: [  0.000] [  0.000] [  0.000] [  0.000] [  0.000] [  0.000]
══════════════════════════════════════════════════════════════════════════════
  Val/h: 0.000000                     Last Block/Total: 0.000000 / 0.000000
══════════════════════════════════════════════════════════════════════════════
Segmentation fault



I have tried different compile flags without results, still getting the segfault.
Is there anything I can do to help you debug and fix that issue ?

Cheers.
Sorry, it's not meant to be 32bit. It might be workable, but nobody wants to try to support it since the performance is so low.
newbie
Activity: 11
Merit: 0
Hello Clintar,

I have compiled jhPrimeminer-Aero from https://github.com/clintar/jhPrimeminer-Aero/ on a Debian 7.4 box (x86-32 bits).

The resulting binary starts fine but shortly dies with a:

Code:
╔═══════════════════════════════════════════════════════════════╗
║  jhPrimeMiner - mod by AeroCloud - T17vCl                     ║
║     optimised from rdebourbon 3.3 build + HP11 updates        ║
║  author: JH (http://ypool.net)                                ║
║  contributors: x3maniac, rdebourbon, clintar                  ║
║  Credits: Sunny King for the original Primecoin client&miner  ║
║  Credits: mikaelh for the performance optimizations           ║
║                                                               ║
║  Donations:                                                   ║
║        XPM: AFv6FpGBqzGUW8puYzitUwZKjSHKczmteY                ║
║        BTC: 1Ca9qP6tkAEo6EpgtXvuANr936c9FbgBrH                ║
╚═══════════════════════════════════════════════════════════════╝
Launching miner...
GeneratePrimeTable() : prime table [1, 10000000] generated with 664579 primes
Connecting to 'ypool.net'
Using 16 threads
Username: ************
Password: ************
Using x.pushthrough protocol
xpt: Logged in
===============================================================
Keyboard shortcuts:
   ,      - Quit
    - Print current settings
    - Print Help
    - Toggle SPS Messages
   

- Print Primorial Stats

══════════════════════════════════════════════════════════════════════════════
New Block: 398387 - Diff: 10.42422318 / 7.00000000
Valid/Total shares: [ 0 / 0 ]  -  Max diff: 0.00000000
        [    7ch] [    8ch] [    9ch] [   10ch] [   11ch] [  12ch+]
 Total: [      0] [      0] [      0] [      0] [      0] [      0]
  ch/h: [  0.000] [  0.000] [  0.000] [  0.000] [  0.000] [  0.000]
══════════════════════════════════════════════════════════════════════════════
  Val/h: 0.000000                     Last Block/Total: 0.000000 / 0.000000
══════════════════════════════════════════════════════════════════════════════
Segmentation fault



I have tried different compile flags without results, still getting the segfault.
Is there anything I can do to help you debug and fix that issue ?

Cheers.
newbie
Activity: 17
Merit: 0
thanks for your work.

I just compiled your linux version. Its running fine on Linux Mint 16.



How is its performance compared to the running the windows version under wine? Just asking, I am not intrested to change to wine, because I don't want to install it.
newbie
Activity: 11
Merit: 0
Finally got around to adding this option. It's -M to enable messages.

Hey clintar, thank you for adding this option. I also sent you 2 XPM to support you and your work. I know it isn't much, but I don't have much more atm anyways. Grin

However, I think you introduced a bug with the last update. A new System of mine using your latest version crashes after some hours of working quite fine with the following output:
Code:
xpt: Disconnected, auto reconnect in 30 seconds
xptPacketbuffer_writeData(): Packetbuffer too small
xptPacketbuffer_writeData(): Packetbuffer too small
xptPacketbuffer_writeData(): Packetbuffer too small

First occurence after ~8 hours, second one after ~14. The earlier version of the miner is running on another system for > 1 Week now without any problems. Undecided
full member
Activity: 212
Merit: 100
Hi,

Is there any possibility to get a working version for gpool? I'm not sure if it is much work but if i try
the latest source i'll get the following message:

Quote
xpt: Failed to log in
Reason: Unknown version

I prefer clintar's version for ypool, but would be very great for gpool too! I also donated 0,5 XPM
to clintar few weeks ago Wink

cheers
latest works for me if i use

Code:
./jhprimeminer -o 162.243.204.218 -u AGWshdugRrRBXwR63Eqs3sgdcMiZV3koJE -p x
full member
Activity: 212
Merit: 100
-s should work. I've done it myself. hit 's' to show settings. It does have limits as far as how small they can be, though.

Alright, I checke dit again and found out that the setting of the Sieve Size actuelly works. I thought it wasn't working because the miner prints something like "Generated Table [0,1000000] with 664854 Primes" on startup. Don't know if it is a bug, though... Grin

Question: Does the miner automatically adjust this value to the performance of the system? If yes, it might be better if I didn't even touch that value.

I'm not sure what you mean enable output messages via command line. do you mean as if you hit 'm' to show stats, but have it be turned on with a command line switch?

Exactly! Smiley
Finally got around to adding this option. It's -M to enable messages.
newbie
Activity: 1
Merit: 0
Hi,

Is there any possibility to get a working version for gpool? I'm not sure if it is much work but if i try
the latest source i'll get the following message:

Quote
xpt: Failed to log in
Reason: Unknown version

I prefer clintar's version for ypool, but would be very great for gpool too! I also donated 0,5 XPM
to clintar few weeks ago Wink

cheers
newbie
Activity: 11
Merit: 0
-s should work. I've done it myself. hit 's' to show settings. It does have limits as far as how small they can be, though.

Alright, I checke dit again and found out that the setting of the Sieve Size actuelly works. I thought it wasn't working because the miner prints something like "Generated Table [0,1000000] with 664854 Primes" on startup. Don't know if it is a bug, though... Grin

Question: Does the miner automatically adjust this value to the performance of the system? If yes, it might be better if I didn't even touch that value.

I'm not sure what you mean enable output messages via command line. do you mean as if you hit 'm' to show stats, but have it be turned on with a command line switch?

Exactly! Smiley
full member
Activity: 212
Merit: 100
Hey there!

I'm currently testing your code; as far as I can see everything works properly except one minor bug: The miner doesen't seem to take a manually set sievesize using "-s" in the command line.

Question: Does the aero-miner perform some kind of auto tuning?

It would also be great if you could add an option to enable the output messages via command line, too. I'm usually running the application via startup script and I didn't came across a method to send keystrokes to an application using the command line.

But overall very solid work, currently running benchmarks to compare it with tandys miner. Keep it going! Smiley
-s should work. I've done it myself. hit 's' to show settings. It does have limits as far as how small they can be, though. I'm not sure what you mean enable output messages via command line. do you mean as if you hit 'm' to show stats, but have it be turned on with a command line switch?
newbie
Activity: 11
Merit: 0
Hey there!

I'm currently testing your code; as far as I can see everything works properly except one minor bug: The miner doesen't seem to take a manually set sievesize using "-s" in the command line.

Question: Does the aero-miner perform some kind of auto tuning?

It would also be great if you could add an option to enable the output messages via command line, too. I'm usually running the application via startup script and I didn't came across a method to send keystrokes to an application using the command line.

But overall very solid work, currently running benchmarks to compare it with tandys miner. Keep it going! Smiley
newbie
Activity: 6
Merit: 0
clintar / merc84 : can you guys add an opensuse / suse linux installation guide please?
full member
Activity: 212
Merit: 100
Works great on Gentoo, how about avx and v.17?


Gonna paste what I said on github about avx:

Quote
I'm pretty sure that mostly depends on how your libgmp is compiled.
https://bitcointalksearch.org/topic/m.3844664 that has some pretty good instructions. I'm not sure, but I think you may want to do the LD_RUN_PATH=/usr/local/lib make command to make sure jhprimeminer uses your compiled libgmp rather than the one installed with your OS.

About v17, I don't think AeroCloud's made his source public, yet. I've had little time lately to work on this, too. I still have to fix the xpt so it shows version info on connected miners page, and possibly get it working for 32bit. Saw someone's comments about that in chat yesterday.
full member
Activity: 140
Merit: 100
Nope, wasn't me... Github dislikes me... I had to clone it onto another machine and then bring it to my FreeBSD box on a USB pen for compilation.
full member
Activity: 212
Merit: 100
Compiled this for FreeBSD 9.1, with only one source modification and 1 small change to the makefile... (The source change shouldn't actually make any difference, it's just extra curly braces where they shouldn't be needed, but the compiler was being fussy)

I'll send you the changes to check over via PM soon, so you can check them yourself (you may well have a better way of doing it)

Was that you who sent me the merge request. it should be ok now.
Pages:
Jump to:
© 2020, Bitcointalksearch.org