Author

Topic: [ANN][XMY] Myriad | Multi-Algo, Fair, Secure - page 232. (Read 849993 times)

hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
Updated OP a bit plus #MAMM(AE)MP teaser. Keep mining, gentlemen and ladies.

What is mammmp?

no clues Tongue. what i can say is we're almost up to the closed testing stage Cheesy
newbie
Activity: 29
Merit: 0
Sent you 100 MYR, though I'm a Win7 user *hint*hint* Wink

Haha thanks dude but unfortunately I don't have any Windows boxes to play with... I'm a pure Linux man!  I'm not sure I'm best placed to write a windows switching script. You could probably run my script in Windows using cygwin but I can't test that. 

iopq wrote something in PHP that works for Windows though:

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/

I'll give him that 100myr if he gives me his address Wink

Dan
hero member
Activity: 616
Merit: 500

haha, nice. we also have futurecoin launching on thursday. i'm already in the saffron thread trolling a bit. just a tiny bit Wink
hero member
Activity: 616
Merit: 500
Updated OP a bit plus #MAMM(AE)MP teaser. Keep mining, gentlemen and ladies.

What is mammmp?

MAMMoths Make Me Pie.
hero member
Activity: 616
Merit: 500
Hi all,

I've updated my linux bash script for auto-switching to mining different algos:

This new script uses foodie's lovely api to pull just the profit data as JSON and so is nice and fast!  It also incorporates a much better mechanism for excluding algos - just leave the miner variable for that algo blank and it will automatically choose the next most profitable one.  It still does nasty "killall" for stopping old miners - make sure you check there are killall commands appropriate for your selection of mining software otherwise you will end up with multiple miners running simultaneously.  I'll fix this with a proper bit of process tracking when I get chance.

When I get time I'll put the script in github.  I also plan to implement the GPU hardware weighting system at some point although that needs some thought.  We probably need to collect more samples of hashrates for the different hardware / algo combos and then work out a way to get average hashrates for each combo incorporated into the switcher.  I'll have a think about how to accomplish this, but any suggestions are welcome Smiley

Enjoy!

Dan

PS: MYR donations are always welcome: MVHD6wGng6WHse1dPtTJRyMbe2KVwvkmG2


Sent you 100 MYR, though I'm a Win7 user *hint*hint* Wink
hero member
Activity: 658
Merit: 500
It still does nasty "killall" for stopping old miners - make sure you check there are killall commands appropriate for your selection of mining software otherwise you will end up with multiple miners running simultaneously.

In my script I do a {"command": "quit"} over JSON-RPC on the default port (4028)

I also have a file with all of my algorithm speeds for my miner

Code:
[scrypt]
filename = "shortcuts/scrypt.lnk"
hashrate = 835000
enabled = true

[groestl]
filename = "shortcuts/groestl.lnk"
hashrate = 15200000
enabled = true

[skein]
filename = "shortcuts/skein.lnk"
hashrate = 225000000
enabled = true

[qubit]
filename = "shortcuts/qubit.lnk"
hashrate = 5640000
enabled = true
legendary
Activity: 1036
Merit: 1000
Updated OP a bit plus #MAMM(AE)MP teaser. Keep mining, gentlemen and ladies.

What is mammmp?
newbie
Activity: 29
Merit: 0
Hi all,

I've updated my linux bash script for auto-switching to mining different algos:

Code:
#!/bin/bash

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .

####### profit #######
# This script downloads the current profitability measure for the various
# myriadcoin GPU algorithms and automatically switches your rig to mining
# the most profitable one. The profitability data is provided by the kind
# people at http://myriad.theblockexplorer.com and is given in "Coins/Scrypt MH"
#
# Make sure you edit the config section with the details of your mining commands.
# Leave algorithms you don't mine as an empty string.

#### config start ####
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
scryptminer=""
groestlminer=""
skeinminer=""
qubitminer=""
#### config end ####

# extract values from json
# usage:  jsonval "json string" "valuename"
function jsonval {
    temp=`echo $1 | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $2 | sed 's/^.*: //g'`
    echo ${temp##*|}
}

# get JSON of algo profits from block explorer
json=`curl -s -X GET http://myriad.theblockexplorer.com/api.php?mode=profit`

# pull the values for each algo from the JSON and round to integer
scryptprofit=`jsonval "$json" "scrypt" | sed 's/\..*//'`
skeinprofit=`jsonval "$json" "skein" | sed 's/\..*//'`
qubitprofit=`jsonval "$json" "qubit" | sed 's/\..*//'`
groestlprofit=`jsonval "$json" "groestl" | sed 's/\..*//'`

echo "scrypt profit: $scryptprofit"
echo "skein profit: $skeinprofit"
echo "qubit profit: $qubitprofit"
echo "groestl profit: $groestlprofit"

# now find the most profitable algo
winner="none"
max=0

if [ $scryptprofit -gt $max ] && [ "$scryptminer" != "" ]
then
    max=$scryptprofit
    winner="scrypt"
fi
if [ $skeinprofit -gt $max ] && [ "$skeinminer" != "" ]
then
    max=$skeinprofit
    winner="skein"
fi
if [ $qubitprofit -gt $max ] && [ "$qubitminer" != "" ]
then
    max=$qubitprofit
    winner="qubit"
fi
if [ $groestlprofit -gt $max ] && [ "$groestlminer" != "" ]
then
    max=$groestlprofit
    winner="groestl"
fi

# now we know which algo is winning, switch to mining it
case "$winner" in
    "scrypt") echo "switching to scrypt"
       killall cgminer
       killall sgminer
       sleep 3
       /usr/bin/screen -d -m -S miner $scryptminer &
       ;;
    "groestl") echo "switching to groestl"
       killall cgminer
       killall sgminer
       sleep 3
       /usr/bin/screen -d -m -S miner $groestlminer &
       ;;
    "skein") echo "switching to skein"
       killall cgminer
       killall sgminer
       sleep 3
       /usr/bin/screen -d -m -S miner $skeinminer &
       ;;
    "qubit") echo "switching to qubit"
       killall cgminer
       killall sgminer
       sleep 3
       /usr/bin/screen -d -m -S miner $qubitminer &
       ;;
    "none") echo "couldn't find an algo to mine :("
       ;;
esac

This new script uses foodie's lovely api to pull just the profit data as JSON and so is nice and fast!  It also incorporates a much better mechanism for excluding algos - just leave the miner variable for that algo blank and it will automatically choose the next most profitable one.  It still does nasty "killall" for stopping old miners - make sure you check there are killall commands appropriate for your selection of mining software otherwise you will end up with multiple miners running simultaneously.  I'll fix this with a proper bit of process tracking when I get chance.

When I get time I'll put the script in github.  I also plan to implement the GPU hardware weighting system at some point although that needs some thought.  We probably need to collect more samples of hashrates for the different hardware / algo combos and then work out a way to get average hashrates for each combo incorporated into the switcher.  I'll have a think about how to accomplish this, but any suggestions are welcome Smiley

Enjoy!

Dan

PS: MYR donations are always welcome: MVHD6wGng6WHse1dPtTJRyMbe2KVwvkmG2
hero member
Activity: 812
Merit: 1000
I like it when things go like this...good community interested in making this coin grow, good ideas, and a good coin by design.
member
Activity: 133
Merit: 10
Pretty much got all my eggs in the Myriad basket now  Grin
On on!
sr. member
Activity: 448
Merit: 250
Thank you to the person who donated 100K+ to the Android Wallet bounty today. You just doubled the bounty with that. Smiley

Thank you community!

full member
Activity: 146
Merit: 100
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview

Thank you. I will add this to the OP.

If you add things to the op, could you please considering adding myr-scrypt.poolerino.com 0% fee into the op, pool is online since weeks now..... thank you!

Done Smiley

And make it click-able, thank you Wink

Whoops! It didn't hyperlink. Sorry. Fixing now.
sr. member
Activity: 308
Merit: 250
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview

Thank you. I will add this to the OP.

If you add things to the op, could you please considering adding myr-scrypt.poolerino.com 0% fee into the op, pool is online since weeks now..... thank you!

Done Smiley

And make it click-able, thank you Wink
full member
Activity: 146
Merit: 100
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview

Thank you. I will add this to the OP.

If you add things to the op, could you please considering adding myr-scrypt.poolerino.com 0% fee into the op, pool is online since weeks now..... thank you!

Done Smiley
sr. member
Activity: 308
Merit: 250
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview

Thank you. I will add this to the OP.

If you add things to the op, could you please considering adding myr-scrypt.poolerino.com 0% fee into the op, pool is online since weeks now..... thank you!
full member
Activity: 146
Merit: 100
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview

Thank you. I will add this to the OP.
hero member
Activity: 658
Merit: 500
Updated the readme for the auto-switcher. Added a run.bat file for ezpz mode if you have php installed and in your path environment variable. Added instructions on how to add it to your path variable. quit() doesn't barf at you when you first run the switcher.

https://bitbucket.org/iopq/automatic-algo-switcher-for-myriadcoin/overview
full member
Activity: 146
Merit: 100
Updated OP a bit plus #MAMM(AE)MP teaser. Keep mining, gentlemen and ladies.
hero member
Activity: 616
Merit: 500
A try to strengthen  my argument : I could replace the text myriad. With whitecoin and leave the rest as it is and I would have a killer ad for whitecoin. But I don't want to be the  Party pooper.. It's a cool teaser otherwise  Grin

I'd fucking sue you to hell as I have the original files on my workstation Grin

This was never intended as the informative part of an advertisement. More like a teaser, really just been taking a stab in the dark to see how Myriad could communicate visually.
Jump to: