Author

Topic: [ANN] sgminer v5 - optimized X11/X13/NeoScrypt/Lyra2RE/etc. kernel-switch miner - page 246. (Read 877859 times)

member
Activity: 117
Merit: 10
Here is my windows build with latest changes: https://www.dropbox.com/s/28e1tv9ho64eolc/sgminer_v5_0_05062014.zip
There is no ADL GPU idle patch, we tested it and driver drops clocks and gpu load automatically, if all pools dead/internet connection disabled. Let us know, if in your case gpu runs at full speed with all pools dead/internet connection disabled.
No sick time increase, check this comment: https://github.com/sgminer-dev/sgminer/pull/217#issuecomment-45047918
sr. member
Activity: 547
Merit: 250
24 hours uptime, 1 SICK -> DEAD card on a R9 290X, same setting as before.

Whoever it was, mrbdo or whatever ---> WHAT IS YOUR PARTICULAR REASON for not wanting to extend the SICK timer?

Mine to extend it is to TEST STABILITY OVER A COURSE OF A FEW DAYS OF UPTIME

I'm having trouble tweaking it for my 290x, would you mind sharing your settings? 

See above post.
sr. member
Activity: 547
Merit: 250
After extensive testing with this sgminer and reading through all of these posts, it appears it does NOT switch algorithms on the fly (at least with my config).  I'm sort of skeptical about those who are saying they have algorithm switching working with no problems.   Could you post your entire config for us?

I've tried using "pool-algorithm" and "algorithm" within each pool.  This seems to have no effect in actually switching the algorithm when the pool is selected.  This is obvious from all of the errors received right after switching.

"algorithm" in the main portion of the config makes sgminer use this algorithm for ALL pools.    If algorithm is not specified, ckolivas is used.


Code:
{
"pools" : [
    {
          "name" : "NiceHash_Scrypt_multi",
          "url" : "stratum+tcp://stratum.nicehash.com:4333",
          "user" : "--",
          "pass" : "d=512",
          "pool-nfactor" : "10",
          "pool-algorithm" : "alexkarold",
          "pool-gpu-engine" : "1030",
          "pool-thread-concurrency" : "32765",
  "pool-rawintensity" : "1802240",
  "pool-gpu-memclock" : "1500"
     },
     {
          "name" : "NiceHash_Scrypt-N_multi",
          "url" : "stratum+tcp://stratum.nicehash.com:4335",
          "user" : "--",
          "pass" : "d=512",
          "pool-nfactor" : "11",
          "pool-algorithm" : "zuikkis",
          "pool-gpu-engine" : "1030",
          "pool-thread-concurrency" : "24500",
  "pool-rawintensity" : "1802240",
  "pool-gpu-memclock" : "1500"
     },
     {
          "name" : "NiceHash_X11_multi",
          "url" : "stratum+tcp://stratum.nicehash.com:4336",
          "user" : "--",
          "pass" : "d=0.02",
          "pool-nfactor" : "10",
          "pool-algorithm" : "darkcoin-mod",
          "pool-gpu-engine" : "1050",
          "pool-thread-concurrency" : "14080",
  "pool-rawintensity" : "720896",
  "pool-gpu-memclock" : "1500"
     },
     {
          "name" : "NiceHash_X13_multi",
          "url" : "stratum+tcp://stratum.nicehash.com:4337",
          "user" : "--",
          "pass" : "d=0.02",
          "pool-nfactor" : "10",
          "pool-algorithm" : "marucoin-mod",
          "pool-gpu-engine" : "1050",
          "pool-thread-concurrency" : "14080",
  "pool-rawintensity" : "720896",
  "pool-gpu-memclock" : "1500"
     },
     {
          "name" : "NiceHash_Keccak_multi",
          "url" : "stratum+tcp://stratum.nicehash.com:4338",
          "user" : "--",
          "pass" : "d=512",
          "pool-nfactor" : "10",
          "pool-algorithm" : "maxcoin",
          "pool-gpu-engine" : "1050",
          "pool-thread-concurrency" : "8192",
  "pool-rawintensity" : "8192",
  "pool-gpu-memclock" : "1250"
     },
     {
          "name" : "NiceHash_Scrypt_backup",
          "url" : "stratum+tcp://stratum.nicehash.com:3333",
          "user" : "--",
          "pass" : "d=512",
          "pool-nfactor" : "10",
          "pool-algorithm" : "alexkarnew",
          "pool-gpu-engine" : "1030",
          "pool-thread-concurrency" : "32765",
  "pool-rawintensity" : "1802240",
  "pool-gpu-memclock" : "1500"
     }
],
"scrypt" : true,
"algorithm" : "marucoin-mod",
"failover-only" : true,
"rawintensity" : "720896",
"vectors" : "1",
"worksize" : "128",
"lookup-gap" : "2",
"shaders" : "2816",
"gpu-engine" : "1050",
"gpu-fan" : "70-100",
"gpu-memclock" : "1500",
"gpu-memdiff" : "0",
"gpu-powertune" : "20",
"gpu-vddc" : "1.05",
"temp-cutoff" : "96",
"temp-overheat" : "94",
"temp-target" : "88",
"auto-fan" : true,
"api-port" : "4028",
"expiry" : "1",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "2",
"hotplug" : "5",
"log" : "5",
"queue" : "0",
"scan-time" : "1",
"temp-hysteresis" : "2",
"shares" : "0",
"no-restart" : true,
"failover-switch-delay" : "30",
"show-coindiff" : true
}

This config works switching from X11 to X13 to Keccak, but it BROKE when I tried 'alexkarnew' kernel for Scrypt.

This config above is with a kernel I am trying "alexkarold" your results may fuck your shit up too.

Above config has specs for 3x R9 290X
sr. member
Activity: 547
Merit: 250
Okay, I have some results in,

Switching from kernels "marucoin-mod" or "darkcoin-mod" over to scrypt kernel "alexkarnew" WILL SHUT OFF ALL OF YOUR GPUs (not SICK, not DEAD, OFF status)

Anybody have insight into this?

Is the ADL GPU idle patch in here or not.
newbie
Activity: 5
Merit: 0
After extensive testing with this sgminer and reading through all of these posts, it appears it does NOT switch algorithms on the fly (at least with my config).  I'm sort of skeptical about those who are saying they have algorithm switching working with no problems.   Could you post your entire config for us?

I've tried using "pool-algorithm" and "algorithm" within each pool.  This seems to have no effect in actually switching the algorithm when the pool is selected.  This is obvious from all of the errors received right after switching.

"algorithm" in the main portion of the config makes sgminer use this algorithm for ALL pools.    If algorithm is not specified, ckolivas is used.
sr. member
Activity: 372
Merit: 250
24 hours uptime, 1 SICK -> DEAD card on a R9 290X, same setting as before.

Whoever it was, mrbdo or whatever ---> WHAT IS YOUR PARTICULAR REASON for not wanting to extend the SICK timer?

Mine to extend it is to TEST STABILITY OVER A COURSE OF A FEW DAYS OF UPTIME

I'm having trouble tweaking it for my 290x, would you mind sharing your settings? 
hero member
Activity: 482
Merit: 500
Having a terrible time getting this to work with many of the pools, at least if I try to do more than one algorithm. Maybe someone can help me out? Here's my conf file for a system with 2x7950 GPUs:

Code:
{
"pools" : [
        {
                "name" : "NiceHash_Scrypt",
                "url" : "stratum+tcp://stratum.nicehash.com:4333",
                "user" : "19y5gGye7xj1zKS3vCuv6VdFuFQCzWKPBE",
                "pass" : "d=64",
                "pool-algorithm" : "zuikkis",
                "pool-nfactor" : "10",
                "pool-rawintensity" : "7168",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        },
        {
                "name" : "NiceHash_Scrypt-N",
                "url" : "stratum+tcp://stratum.nicehash.com:4335",
                "user" : "19y5gGye7xj1zKS3vCuv6VdFuFQCzWKPBE",
                "pass" : "d=32",
                "pool-algorithm" : "zuikkis",
                "pool-nfactor" : "11",
                "pool-rawintensity" : "7168",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        },
        {
                "name" : "NiceHash_X11",
                "url" : "stratum+tcp://stratum.nicehash.com:4336",
                "user" : "19y5gGye7xj1zKS3vCuv6VdFuFQCzWKPBE",
                "pass" : "d=0.004",
                "pool-algorithm" : "darkcoin-mod",
                "pool-nfactor" : "10",
                "pool-rawintensity" : "258048",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        },
        {
                "name" : "NiceHash_X13",
                "url" : "stratum+tcp://stratum.nicehash.com:4337",
                "user" : "19y5gGye7xj1zKS3vCuv6VdFuFQCzWKPBE",
                "pass" : "d=0.002",
                "pool-algorithm" : "marucoin-mod",
                "pool-nfactor" : "10",
                "pool-rawintensity" : "258048",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        },
        {
                "name" : "NiceHash_Keccak",
                "url" : "stratum+tcp://stratum.nicehash.com:4338",
                "user" : "19y5gGye7xj1zKS3vCuv6VdFuFQCzWKPBE",
                "pass" : "x",
                "pool-algorithm" : "maxcoin",
                "pool-nfactor" : "10",
                "pool-rawintensity" : "258048",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        },
        {
                "name" : "Drkpool",
                "url" : "stratum+tcp://drkpool.com:3333",
                "user" : "trogdorjw73.liteminer",
                "pass" : "x",
                "pool-algorithm" : "darkcoin-mod",
                "pool-nfactor" : "10",
                "pool-rawintensity" : "258048",
                "pool-thread-concurrency" : "8192",
                "pool-gpu-threads" : "1"
        }
],

"vectors" : "1",
"worksize" : "256",
"lookup-gap" : "2",

"gpu-engine" : "1000",
"gpu-fan" : "40-85",
"gpu-memclock" : "1500",
"gpu-memdiff" : "0",
"gpu-powertune" : "20",
"gpu-vddc" : "1.067",

"temp-cutoff" : "99",
"temp-overheat" : "95",
"temp-target" : "85",

"auto-fan" : true,
"expiry" : "60",
"failover-only" : true,
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"log" : "5",
"log-dateformat" : "0",
"queue" : "1",
"scan-time" : "15",
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/local/bin"
}

I started the the sample conf file from Nicehash, and that didn't work well at all -- nonce errors, hw errors, sgminer exiting after 60 seconds, etc. Then I read through this thread and saw stuff about setting rawintensity instead of xintensity or intensity, so I tried that. I also tried using "algorithm" instead of "pool-algorithm" as another suggested. I also tried the 3xxx ports at Nicehash, and that didn't seem to work right either. Basically, none of the changes work. The current status is this:

If I start with the above config, I'll end up with a "ckolivasTahitiglg2tc22400nf10w256l4.bin" file. WTF? It's using the wrong kernel, ignoring pool-thread-concurrency, and it runs at intensity = 8 (the default if you don't set anything). Pretty much all of the pool-specific settings are completely ignored! If I add a generic intensity, algorithm, and thread-concurrency, that gets used instead, but of course that only works with one algorithm so it's of no use. Help?

Edit: Oh, and sgminer quits after 60 seconds right now. That seems to be my "scan-time" value, as changing that from 15 to 60 at least helped a bit. But scan-time isn't supposed to cause an exit from mining. Ugh....

Edit again: Nope, it's not "scan-time", but I still get 60 seconds before sgminer quits every single time I run it. Here's the error from the latest run I just tried:
Code:
C:\Downloads\SGminer-multi2>sgminer --auto-fan --failover-only -T
[17:41:51] Started sgminer 4.2.1
[17:41:51] Loaded configuration file sgminer.conf
[17:41:51] Initialising kernel ckolivas.cl with bitalign, unpatched BFI, nfactor 10, n 1024
[17:41:51] Initialising kernel ckolivas.cl with bitalign, unpatched BFI, nfactor 10, n 1024
[17:41:51] Probing for an alive pool
[17:41:52] Switching to Drkpool - first alive pool
[17:41:52] Network diff set to 4.06K
[17:41:52] Initialising kernel darkcoin-mod.cl with bitalign, unpatched BFI, nfactor 10, n 1024
[17:41:52] Initialising kernel darkcoin-mod.cl with bitalign, unpatched BFI, nfactor 10, n 1024
[17:41:53] NiceHash_X11 alive, testing stability
[17:41:53] Switching to NiceHash_X11
[17:41:53] Network diff set to 112
[17:41:53] New block detected on network before pool notification
[17:41:54] Accepted 36dfcc71 Diff 0.018/0.010 GPU 1 at NiceHash_X11
[17:41:54] Stratum from NiceHash_X11 requested work restart
[17:41:57] API running in local read access mode on port 4028 (30380)
[17:42:03] Accepted 2b303f06 Diff 0.023/0.010 GPU 1 at NiceHash_X11
[17:42:06] Accepted 045d341f Diff 0.229/0.010 GPU 0 at NiceHash_X11
[17:42:09] NiceHash_X11 extranonce change requested
[17:42:09] Network diff set to 1.25K
[17:42:09] Stratum from NiceHash_X11 detected new block
[17:42:10] Accepted 5cea28fd Diff 0.011/0.010 GPU 0 at NiceHash_X11
[17:42:14] Accepted 4fb1bd90 Diff 0.013/0.010 GPU 1 at NiceHash_X11
[17:42:15] Reconnect requested from NiceHash_X11 to stratum.nicehash.com:4336
[17:42:16] NiceHash_X11 difficulty changed to 0.010
[17:42:16] Stratum from NiceHash_X11 requested work restart
[17:42:25] Accepted 5aac5367 Diff 0.011/0.010 GPU 0 at NiceHash_X11
[17:42:42] Stratum from NiceHash_X11 requested work restart
[17:42:50] Accepted 45a922ce Diff 0.014/0.010 GPU 1 at NiceHash_X11
[17:42:52] thread was not cancelled in 60 seconds after restart_mining_threads
member
Activity: 139
Merit: 10
use like this not pool-algorithm


  

       {
                "name" : "NiceHash_X13",
                "url" : "stratum+tcp://stratum.nicehash.com:4337",
                "user" : "1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55",
                "pass" : "123",
                  "algorithm" : "marucoin-mod"
        }

if this worked for you buy me a beer  Wink

1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55

beer send, thanks! Smiley
sr. member
Activity: 547
Merit: 250
24 hours uptime, 1 SICK -> DEAD card on a R9 290X, same setting as before.

Whoever it was, mrbdo or whatever ---> WHAT IS YOUR PARTICULAR REASON for not wanting to extend the SICK timer?

Mine to extend it is to TEST STABILITY OVER A COURSE OF A FEW DAYS OF UPTIME
member
Activity: 94
Merit: 10
i try with 290 and 7950 work good.but problem with two card (5970-6990) Kiss
sr. member
Activity: 547
Merit: 250
member
Activity: 94
Merit: 10
I have one 5970 and one 6990, all have the same HW error problem
how can i work wth sgmine v.5 for ati card series 5000/6000?
newbie
Activity: 43
Merit: 0
This could have been in the underlying sgminer, but I was able to replicate a bug.

Segmentation Fault (hard process stop)
Debian Wheezy

This occurs when you attempt to start sgminer with pool-gpu-threads > 1, if there is not already a valid .bin for cklovias.cl

Fix: Start sgminer with pool-gpu-threads at 1 and allow the .bin files to be built, then restart with 2.


Discovered after cleaning up .bin files having tuned to gpu-threads 2 on scrypt-n

Edit: this is happening for each kernel in succession when i disable a pool, with other settings besides gpu-threads, such as intensity
sr. member
Activity: 547
Merit: 250
sr. member
Activity: 547
Merit: 250
I've had the BAPMSAM up and working now for a good 12 hours, although, predominately, it has been X13 that has been on order.

You will find that when Nicehash software switches algorithms it stops work on all the other ones.  This could also turn out to be longer when it takes the time to build a bin file (if 1 isn't there)

I suggest using RAWINTENSITY and NOT trying to mix XINTENSITY & INTENSITY settings in the same conf file.

Also, keep in mind that when you START cgminer it will START with the CONF settings BELOW ALL THE POOLS, so YOU MUST STILL HAVE SOME STANDARD SETTINGS DOWN THERE or you will get the ckolivas shit.

As I have it right now, I threw Nicehash ports and pool-settings in there ON TOP of an already working X13 conf file, and after fixing the INTENSITY/xINTENSITY combo issues by going to RAW (this is especially critical when Nicehash dips down in Keccak and back).

So far after fixing the intensity issue I've had a steady throughput to Nicehash and just received a 2nd payout about an hour ago.
sr. member
Activity: 560
Merit: 250
here is my working config
working like charm just copy it to your sgminer.conf and modify it(just change pool,curency,intensity and ...)
and then buy me a beer if u like Grin Grin
1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55

Code:
{
"pools" : [
{
"name" : "trademybit x13",
"url" : "stratum+tcp://am02.eu.trademybit.com:5550",
"user" : "oktay50000.5",
"pass" : "123",
"algorithm" : "marucoin-mod"
},
{
"name" : "trademybit x11",
"url" : "stratum+tcp://am02.eu.trademybit.com:4440",
"user" : "oktay50000.5",
"pass" : "123",
"algorithm" : "marucoin-mod"
},
        {
                "name" : "NiceHash_X13",
                "url" : "stratum+tcp://stratum.nicehash.com:4337",
                "user" : "1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55",
"pass" : "123",
"algorithm" : "marucoin-mod"
        },
        {
                "name" : "NiceHash_X11",
"url" : "stratum+tcp://stratum.nicehash.com:3336",
                "user" : "1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55",
"pass" : "123",
"algorithm" : "darkcoin-mod"
        }
]
,
"intensity" : "20,13,20",
"xintensity" : "512",
"rawintensity" : "0,0,0",
"worksize" : "256",
"algorithm" : "marucoin-mod,marucoin-mod,marucoin-mod",
"lookup-gap" : "2",
"thread-concurrency" : "24000,8193,24000",
"shaders" : "0,0,0",
"gpu-threads" : "2,2,2",
"gpu-engine" : "1100,1100,1100",
"gpu-fan" : "0-85,0-85,0-85",
"gpu-memclock" : "1500,1500,1500",
"gpu-memdiff" : "0,0,0",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"auto-fan" : true,
"temp-cutoff" : "95,95,95",
"temp-overheat" : "85,85,85",
"temp-target" : "75,75,75",
"api-mcast-port" : "4028",
"api-allow" : "W:127.0.0.1,W:0/0",
"api-listen" : true,
"api-port" : "4028",
"expiry" : "28",
"failover-only" : true,
"failover-switch-delay" : "30",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"log" : "5",
"no-pool-disable" : true,
"queue" : "5",
"scan-time" : "7",
"tcp-keepalive" : "30",
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/i586-mingw32msvc/bin",
"algorithm" : "ckolivas"
}
sr. member
Activity: 560
Merit: 250
use like this not pool-algorithm


  

       {
                "name" : "NiceHash_X13",
                "url" : "stratum+tcp://stratum.nicehash.com:4337",
                "user" : "1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55",
                "pass" : "123",
                  "algorithm" : "marucoin-mod"
        }

if this worked for you buy me a beer  Wink

1KYPapEzhxvpLwb6eZB1DBg9joq2hVsz55
member
Activity: 139
Merit: 10
Ok, so I downloaded this and seem to be unable to get the whole thing going,

I'm running 6x Gigabyte 280x on this PC.

Code:
{
   "pools":[
      {
         "name":"Scrypt",
         "url":"stratum+tcp://stratum.nicehash.com:4333",
         "user":"address",
         "pass":"x",
         "pool-itensity":"13",
"pool-gpu-threads":"2",
"pool-thread-concurrency":"11200",
         "pool-algorithm":"zuikkis"
      },
      {
         "name":"ScryptNFactor",
         "url":"stratum+tcp://stratum.nicehash.com:4335",
         "user":"address",
         "pass":"x",
         "pool-intensity":"13",
         "pool-algorithm":"zuikkis",
"pool-thread-concurrency":"8192",
"pool-gpu-threads":"2"
      },
      {
         "name":"X11",
         "url":"stratum+tcp://stratum.nicehash.com:4336",
         "user":"address",
         "pass":"x",
         "pool-nfactor":"10",
"pool-intensity":"18",
"pool-thread-concurrency":"8192",
"pool-gpu-threads":"1",
         "pool-algorithm":"darkcoin-mod"
      },
      {
         "name":"X13",
         "url":"stratum+tcp://stratum.nicehash.com:4337",
         "user":"address",
         "pass":"x",
         "pool-nfactor":"10",
         "pool-algorithm":"marucoin-mod",
"pool-intensity":"10",
"pool-gpu-threads":"1",
"pool-thread-concurrency":"8192"
      },
      {
         "name":"Keccak",
         "url":"stratum+tcp://stratum.nicehash.com:4338",
         "user":"address",
         "pass":"x",
         "pool-nfactor":"10",
         "pool-algorithm":"maxcoin",
"pool-itensity":"18",
"pool-thread-concurrency":"11200",
"pool-gpu-threads":"1"
      },
      {
         "name":"Scryptbackup",
         "url":"stratum+tcp://stratum.nicehash.com:3333",
         "user":"adress",
         "pass":"x",
         "pool-nfactor":"10",
         "pool-algorithm":"zuikkis"
      },
      {
         "name":"whatever",
         "url":"pool:port",
         "user":"xx",
         "pass":"xx",
         "pool-nfactor":"10",
         "pool-algorithm":"zuikkis"
      }
   ],
   "failover-only":true,
   "xintensity" : "4",
   "vectors" : "1",
   "kernel" : "zuikkis",
   "lookup-gap" : "2",
   "shaders" : "1792",
   "thread-concurrency" : "8192",
   "auto-gpu" : true,
   "scrypt" : true,
   "queue" : "1",
   "scan-time" : "7",
   "expiry" : "28"

}

Currently NiceHash is on X13, which makes me believe it's a X13 issue... SGMiner crashes as soon as I get the GPU 0 1 2 3 4 5 window (where it normally shows hash rate). Before I got it to work a little bit with X13 but it showed similar hashrates as in Scrypt, the only file generated when I attempt to start it up is the one from ckolivas.

Any ideas?
sr. member
Activity: 560
Merit: 250
i cant launch this with cgwatcher getting hw error
any help to tun with cgwatcher?Huh
sr. member
Activity: 457
Merit: 273
git clone https;//github.com/sgminer-dev/sgminer

If you would like to get the latest v5 branch (the one that this thread refers to), you have to do like this:

git clone -b

git clone -b v5_0 https://github.com/sgminer-dev/sgminer/sgminer.git

BTW: some more stuff was added today: https://github.com/sgminer-dev/sgminer/commits/v5_0
Jump to: