Main Menu

[ANN] ypool.net - Fast PTS pool

Started by jh00, November 12, 2013, 01:08:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bytemaster

Some one care to benchmark my latest getwork implementation against ypool?
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

peterwayne

Mining at 120 collisions/minute vs. 20hpm on Alienware 14 laptop... though the real thing to be seen is how much I get paid/earn.

super3

Anyone else cloud mining the crap out of this with ypool? It isn't every day you get a profitable CPU coin.

peterwayne

I use ypool for prime coining mining, so now I'll use it for protoshare mining. Thanks :).

Gumik

Little script I wrote :

#!/usr/bin/python2.7
#  Licensed to WTFPL ( http://www.wtfpl.net/about/ )

import sys
import signal
import datetime
import pexpect
import time

cmd = "./jhProtominer"
args = [ "-o", "http://ypool.net:10034",
  "-u", "your_worker",
  "-p", "your_password",
  "-t", "4",
  "-m512" ]

SHARE_LOG = True

if SHARE_LOG:
logfile=open('./ypool.log', 'a', buffering=1)

# Signal handling

def signal_handler(signum,frame):
if protominer.isalive():
global stop
if signum == 2:
#print("\nProgram received SIGINT signal")
protominer.sendintr()
else:
#print("Program received SIGTERM signal")
protominer.terminate()
stop = True

signal.signal(signal.SIGTERM, signal_handler)
signal.signal(signal.SIGINT, signal_handler)

# Main loop

number = 0
stop = False

while not stop:
protominer = pexpect.spawn(cmd,args,timeout=None,logfile=sys.stdout)
line = protominer.readline()
while line:
try:
line = line.decode()
except:
pass
if "Connection to server lost" in line or "Connection attempt failed" in line:
if SHARE_LOG:
lost_time = datetime.datetime.now() \
   .strftime('[ERROR] %Y-%m-%d %H:%M:%S CONNECTION DOWN\n') \
   .encode('utf8')
logfile.write(lost_time)
print ("Connection down")
break
if SHARE_LOG:
if "Share found!" in line:
number += 1
        share = "[INFO] %Y-%m-%d %H:%M:%S SHARE : " + str(number) + "\n"
                                        newshare_time = datetime.datetime.now() \
                                                   .strftime(share) \
                                                   .encode('utf8')
                                        logfile.write(newshare_time)

line = protominer.readline()
if protominer.isalive():
protominer.terminate()
try:
protominer.wait()

except pexpect.ExceptionPexpect, e:
if e.value != 'Cannot wait for dead child process.':
raise
if stop:
print("Exiting...")
else:
if SHARE_LOG:
restart_time = datetime.datetime.now() \
   .strftime('[INFO] %Y-%m-%d %H:%M:%S RESTART\n') \
   .encode('utf8')
logfile.write(restart_time)
print("Restarting in 10s...")
time.sleep(10)

if SHARE_LOG:
logfile.close()


If the connection attempt fails or the connection is lost it restarts the miner in 10s. If the miner is killed ( like with pkill ), it automatically restarts it too. If the script is killed, it ensures that the miner is stopped properly before exiting.
If SHARE_LOG is set to True, each time it finds a share, it logs the time and share number to ypool.log, also logs connection down and restart times ( maybe I ll disable this because when the pool goes down for a long time that's a lot of useless writing ).

If you want to give it a try you need pexpect installed, if you have pip just do pip install pexpect.
XPM : AaMussGvG8963TZKswLVwY1BNG3zs22MvK
PTS : PpTe2GPfXkk1T4boaPATERzwVx5Sn5nyRr

joesmoe

Quote from: Frz on November 13, 2013, 04:03:43 PM
Quote from: tyeken8 on November 13, 2013, 03:49:20 PM
Quote from: Frz on November 13, 2013, 03:18:43 PM
I tried switching to the sphlib library for better sha512 performance, I seem to be getting about 50% more collisions per minute on my test system

I would be happy if someone could test how it affects their performance.
https://github.com/FrzMe/jhProtominer/tree/linux-port

Great work!!
It boost my E5620 from 91 to ~96. Not very fast, don't know why..

I've merged your changeset (-b sph), add memory of 1024 ~4096MB as well.

Thank you!

I've also experimented with bigger memory sizes (https://github.com/FrzMe/jhProtominer/commit/ce443328095264700f8eb3bd3cbea4187e9e115c ) not sure of the results yet. I've moved the worker function to a new file that can be tweaked with macros to avoid code duplication in the source hope I've done that correctly :D I've moved the worker function to a new file that can be tweaked with macros to avoid code duplication in the source hope I've done that correctly :D

My test system is rather slow that's probably the reason why I get so much more performance with the new hash library (8virtual cores with 4500 mhz host cpu capped -> ~ 1/4 of a more or less modern xeon => I originally had about 30cps, now around 42)

QuoteThe last version has 76 c/m in my system, and this new one about 84c/m. BUT, this new version doesn't find any hash in several minutes I have been running it.
Maybe you are just unlucky? :( Of course there might be something wrong but it works fine for me.

QuoteHow are you compiling this?
make CFLAGS="-Ofast -march=native"
Haven't tried it on Windows.

root@20:~/jhProtominer/src/jhProtominer# make CFLAGS="-Ofast -march=native"
make: *** No targets specified and no makefile found.  Stop

Gumik

Quote from: sword on November 13, 2013, 05:15:42 PM
what 's wrong with my computer?


F:\jhProtominer\64bit>jhProtominer.exe -o ypool.net -u hnzzfj.001 -p x -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct


F:\jhProtominer\64bit>jhProtominer -o http://ypool.net:10034  -u hnzzfj.001 -p x -t 4 -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct

Seems like you're using your XPM workers, on Ypool you must select PTS as coin mode ( top bar ) and then create your PTS workers on the left ;) 
XPM : AaMussGvG8963TZKswLVwY1BNG3zs22MvK
PTS : PpTe2GPfXkk1T4boaPATERzwVx5Sn5nyRr

cybe

Are you able to run miners on the digital ocean vps? I'm not for some reason (some kind of anti-mining botnet measures?)

Quote from: favdesu on November 13, 2013, 05:27:40 PM
setup a digital ocean vps - looking good so far.

are there any news on payout bug?

fav

setup a digital ocean vps - looking good so far.

are there any news on payout bug?
Join us on Hive: [url="https://peakd.com/c/hive-120117/created"]https://peakd.com/c/hive-120117/created[/url]

tyeken8

Quote from: BartV on November 13, 2013, 04:40:00 PM
I keep getting:
Share found!
Invalid share
Resaon: Share data time overflow


on my old debian (amd64) laptop (core2duo, just reinstalled).

Any ideas?

Nop, this is a known issue. It occurs on of my servers too. I need jh00's support to debug that.

sword

what 's wrong with my computer?


F:\jhProtominer\64bit>jhProtominer.exe -o ypool.net -u hnzzfj.001 -p x -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct


F:\jhProtominer\64bit>jhProtominer -o http://ypool.net:10034  -u hnzzfj.001 -p x -t 4 -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct

cybe

AMD Opteron(tm) Processor 4171 HE (8 cores)

and compiled it with:

make CFLAGS="-O3 -march=native"  is faster than make CFLAGS="-Ofast -march=native"




Quote from: Frz on November 13, 2013, 05:04:32 PM
Quote from: cybe on November 13, 2013, 04:46:15 PM
Doesn't seem faster for me. Or should I have downloaded the remotes/origin/linux-bigmemversion?
Sad to hear, on what system are you running this and how did you compile it? Bigmem is only for using >512mb ram per thread, I'm not yet sure if that's a good idea.

Frz

Quote from: cybe on November 13, 2013, 04:46:15 PM
Doesn't seem faster for me. Or should I have downloaded the remotes/origin/linux-bigmemversion?
Sad to hear, on what system are you running this and how did you compile it? Bigmem is only for using >512mb ram per thread, I'm not yet sure if that's a good idea.

cybe

Doesn't seem faster for me. Or should I have downloaded the remotes/origin/linux-bigmemversion?


Quote from: Frz on November 13, 2013, 03:18:43 PM
I tried switching to the sphlib library for better sha512 performance, I seem to be getting about 50% more collisions per minute on my test system

I would be happy if someone could test how it affects their performance.
https://github.com/FrzMe/jhProtominer/tree/linux-port

BartV

I keep getting:
Share found!
Invalid share
Resaon: Share data time overflow


on my old debian (amd64) laptop (core2duo, just reinstalled).

Any ideas?
BTC: 1CZvZTuN4RyySoUpJXjFqR6Tyx2B1onrMd
PTS: PY2AiusDmMBpbnrhSG5TUCczibkYNoBAkK