Bitcoin Forum
November 17, 2024, 10:00:29 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does this code optimize mining?  (Read 573 times)
pornluver (OP)
Hero Member
*****
Offline Offline

Activity: 960
Merit: 514


View Profile
March 20, 2017, 07:06:43 PM
 #1

:start
ethminer --farm-retries 0 -G -S us-east1.ethash-hub.miningpoolhub.com:12020 -O username.workername:x -FS exit
sgminer --no-retry -k vanilla -o stratum+tcp://hub.miningpoolhub.com:12019 -u username.workername -p x
sgminer --no-retry -k groestlcoin -o stratum+tcp://hub.miningpoolhub.com:12004 -u username.workername -p x
sgminer --no-retry -k myriadcoin-groestl -o stratum+tcp://hub.miningpoolhub.com:12005 -u username.workername -p x
sgminer --no-retry -k neoscrypt -o stratum+tcp://hub.miningpoolhub.com:12012 -u username.workername -p x
sgminer --no-retry -k quarkcoin -o stratum+tcp://hub.miningpoolhub.com:12015 -u username.workername -p x
sgminer --no-retry -k qubitcoin -o stratum+tcp://hub.miningpoolhub.com:12014 -u username.workername -p x
sgminer --no-retry -k skeincoin -o stratum+tcp://hub.miningpoolhub.com:12016 -u username.workername -p x
sgminer --no-retry -k darkcoin-mod -o stratum+tcp://hub.miningpoolhub.com:12007 -u username.workername -p x
sgminer --no-retry -k marucoin-mod -o stratum+tcp://hub.miningpoolhub.com:12008 -u username.workername -p x
sgminer --no-retry -k bitblock -o stratum+tcp://hub.miningpoolhub.com:12009 -u username.workername -p x
sgminer --no-retry -k lyra2rev2 -o stratum+tcp://hub.miningpoolhub.com:12018 -u username.workername -p x

timeout 1
goto start


The way I see it, it runs some miner several time. Then it waits 1 seconds. Then it repeats. Nothing there suggest which one is best for the current moment?
vlcmstne
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
March 20, 2017, 10:28:37 PM
 #2

It looks like you are maybe looking at miningpoolhub auto profit switching? That code cycles through the miners yes but miningpool hub will tell you which one to stop on, so to say, by authorizing the miner it calculates as the most profitable  
Ambros
Hero Member
*****
Offline Offline

Activity: 653
Merit: 500


View Profile
March 20, 2017, 10:34:14 PM
 #3

:start
ethminer --farm-retries 0 -G -S us-east1.ethash-hub.miningpoolhub.com:12020 -O username.workername:x -FS exit
sgminer --no-retry -k vanilla -o stratum+tcp://hub.miningpoolhub.com:12019 -u username.workername -p x
sgminer --no-retry -k groestlcoin -o stratum+tcp://hub.miningpoolhub.com:12004 -u username.workername -p x
sgminer --no-retry -k myriadcoin-groestl -o stratum+tcp://hub.miningpoolhub.com:12005 -u username.workername -p x
sgminer --no-retry -k neoscrypt -o stratum+tcp://hub.miningpoolhub.com:12012 -u username.workername -p x
sgminer --no-retry -k quarkcoin -o stratum+tcp://hub.miningpoolhub.com:12015 -u username.workername -p x
sgminer --no-retry -k qubitcoin -o stratum+tcp://hub.miningpoolhub.com:12014 -u username.workername -p x
sgminer --no-retry -k skeincoin -o stratum+tcp://hub.miningpoolhub.com:12016 -u username.workername -p x
sgminer --no-retry -k darkcoin-mod -o stratum+tcp://hub.miningpoolhub.com:12007 -u username.workername -p x
sgminer --no-retry -k marucoin-mod -o stratum+tcp://hub.miningpoolhub.com:12008 -u username.workername -p x
sgminer --no-retry -k bitblock -o stratum+tcp://hub.miningpoolhub.com:12009 -u username.workername -p x
sgminer --no-retry -k lyra2rev2 -o stratum+tcp://hub.miningpoolhub.com:12018 -u username.workername -p x

timeout 1
goto start


The way I see it, it runs some miner several time. Then it waits 1 seconds. Then it repeats. Nothing there suggest which one is best for the current moment?

It looks just like a benchmark for every algorithm, nothing more.
IMHO it does not optimise anything
elgi76
Member
**
Offline Offline

Activity: 124
Merit: 10


View Profile
March 20, 2017, 11:37:57 PM
 #4

you must read this :

https://miningpoolhub.com/index.php?page=gettingstarted
philipma1957
Legendary
*
Offline Offline

Activity: 4312
Merit: 8861


'The right to privacy matters'


View Profile WWW
March 21, 2017, 02:37:53 AM
 #5



Switching software is a flawed idea.

First reason if it works it acts to flatten prices of all coins unless you are the only person mining with it.

Second how do you balance the switch time or check time to decide to switch.

If you want to do this.  You need fast internet you need extra ram to stay fast you also need a better CPU for the switch.  Each time you check and switch you lose time making the switch.

So for the sake of argument if you check once an hour and need to switch ten times in a day you lose upto 20 minutes a day switching.

If you switch 3 times a day and lose three minutes you end up flatten out of the coins price that you switch to.

I use smOS and check one time a day .
If I switch the jump over is fast under 1 minute .
I let the gear relax and breath.

Relax and enjoy .

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
pornluver (OP)
Hero Member
*****
Offline Offline

Activity: 960
Merit: 514


View Profile
March 21, 2017, 06:14:30 AM
 #6

The problem with the code is how can the pool "knows" whether your card will do better with one algorithm and the other.

The pool knows market price. The pool knows the price of coins. The pool knows that.

But the pool doesn't know your card. It doesn't know whether your card can run x11 10 times or 1/2 times of x10

I suppose you need to tell the pool that. But how?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!