Author Topic: Mining on Linux instructions?  (Read 9142 times)

0 Members and 1 Guest are viewing this topic.

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #15 on: November 05, 2013, 03:37:26 am »
In case anyone in the future also encounters this error... If you're trying to compile on a 512mb vps to try it out, it will probably fail because not enough memory. You can add swap space to get past that error:

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile

Offline smith88

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: Mining on Linux instructions?
« Reply #16 on: November 05, 2013, 06:46:44 am »
The only thing I can vouch for is protsharesd.pro  using qmake. 

Mining will not work unless you can connect to a network so it is hard to do a speed test :).

I will post a benchmark tool for everyone here in a bit :)

Thank you for all the hard work! I've compiled everything, looks great. Minus benchmark tool... :)
Staying up late here, fun times.
PTS:  Pv5uGw6APp4UweLE8J1piqWM2i5xFGUHij
BTC:  1B2vsiqJhh5W1mrfJNcC4Zu2kWG3mWzJft

Offline yago

  • Full Member
  • ***
  • Posts: 188
    • View Profile
Re: Mining on Linux instructions?
« Reply #17 on: November 05, 2013, 07:25:52 am »
Got this error:
protosharesd: src/main.cpp:1810: bool SetBestChain(CValidationState&, CBlockIndex*): Assertion `pfork != __null' failed.

EDIT: Now it works. Done: git clone, qmake protsharesd.pro and make again
« Last Edit: November 05, 2013, 07:50:00 am by yago »
http://bitsharestalk.org/donate.html  <---- Donate to the BitShares Forum ----> PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #18 on: November 05, 2013, 08:06:21 am »
How do you know if it's working? I pulled down the new code and ran the make process again, but when I run ./protosharesd, there is no output. Checking top, shows:

0.7% CPU   5.2 MEMORY protosharesd

Is it working?


Offline bytemaster

Re: Mining on Linux instructions?
« Reply #19 on: November 05, 2013, 08:13:50 am »
you need to pass the -gen argument to run from the command line.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #20 on: November 05, 2013, 08:30:36 am »
Whoa. CPU shot way up to 100%. I'd say it's working now. Thank you.

Is there a command to view the hash rate?
EDIT: The new post below me answers it: ./protosharesd -gethashpersec
« Last Edit: November 05, 2013, 08:34:38 am by rando »

Offline bsamjolake

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Mining on Linux instructions?
« Reply #21 on: November 05, 2013, 08:31:26 am »
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

Offline bytemaster

Re: Mining on Linux instructions?
« Reply #22 on: November 05, 2013, 08:34:13 am »
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

There are known bugs in reporting mining performance...  I am checking with FreeTrade about getting those bugs fixed.   If your CPUs are pegged then it is working.

We currently have 159+ connections on the network at one of our seed nodes.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline FreeTrade

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: Mining on Linux instructions?
« Reply #23 on: November 05, 2013, 08:48:09 am »
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

Yes, this should work, but takes 4 or 5 minutes before it reports figures.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #24 on: November 05, 2013, 08:55:56 am »
Which part says how many blocks we've found? currentblocktx? (I'm assuming because it's zero  :))

Offline bytemaster

Re: Mining on Linux instructions?
« Reply #25 on: November 05, 2013, 09:03:12 am »
    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline Amazon

  • Hero Member
  • *****
  • Posts: 830
    • View Profile
    • Bitshares Forum
Re: Mining on Linux instructions?
« Reply #26 on: November 05, 2013, 09:06:59 am »
I have some difficulty importing a private key. I am sure the private key is correct. QT gives me error.
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA

Offline smith88

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: Mining on Linux instructions?
« Reply #27 on: November 05, 2013, 09:08:13 am »
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

Yes, this should work, but takes 4 or 5 minutes before it reports figures.

find a block yet? i've been running (from hashespermin) sum of 14.5 or so. no block yet. hah keep digging. :)
PTS:  Pv5uGw6APp4UweLE8J1piqWM2i5xFGUHij
BTC:  1B2vsiqJhh5W1mrfJNcC4Zu2kWG3mWzJft

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #28 on: November 05, 2013, 09:10:00 am »
    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.

Oh. I meant how many I have found.

Offline rando

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Mining on Linux instructions?
« Reply #29 on: November 05, 2013, 09:36:41 am »
    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.

Oh. I meant how many I have found.
I found it.

./protosharesd getbalance

shows how many protoshares your miner has generated