Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device option and on-fly algo changing. sgminer 5_0 #249

Closed
tupieurods opened this issue Jun 9, 2014 · 12 comments
Closed

device option and on-fly algo changing. sgminer 5_0 #249

tupieurods opened this issue Jun 9, 2014 · 12 comments
Labels
Milestone

Comments

@tupieurods
Copy link
Contributor

If i'm using on-fly algo changing and "device" option i have zero hashrate, and sgminer closes after 1-2 minute. As i understand it's windows only issue.
Recently i had that only on my pc, now i have confirmation from two different people:
(eng forum):
line of discussion:
https://bitcointalk.org/index.php?topic=632503.msg7217688#msg7217688
https://bitcointalk.org/index.php?topic=632503.msg7217691#msg7217691
https://bitcointalk.org/index.php?topic=632503.msg7217882#msg7217882 <- most important message
and russian forum:
http://club.dns-shop.ru/forum/?p=956&action=thread&id=80145#926976

Also, why if in conf i write: "pool-algorithm" : "marucoin-mod,marucoin-modold" sgminer ignores it and use scrypt, looks like it's don't understand different pool-algorithm for different cards.

@tupieurods tupieurods changed the title device option and on-fly algo changing device option and on-fly algo changing. sgminer 5_0 Jun 9, 2014
@mrbrdo
Copy link
Contributor

mrbrdo commented Jun 11, 2014

"pool-algorithm" does not support multiple algorithms ("per-GPU"). Only a single one.

As far as the other issues you write, did you try the new build that nicehash released today? Or any Windows build that is from today/yesterday?
It might fix this issue and also improve stability. Let me know, otherwise we will look into it more, but we need the output of sgminer when this happens (preferably in debug mode "-T -D" or verbose "-T -v", you can omit "-T" if you really need the ncurses interface).

@tupieurods
Copy link
Contributor Author

Build from latest sources(~40 min ago, built by my own)
My config: http://pastebin.com/ytzD30dk
log_nice(sgminer.conf without "device":'0"): http://pastebin.com/KTkwqURh
log_boo(sgminer.conf with "device":'0"): http://pastebin.com/3NE5tFF9

@tupieurods
Copy link
Contributor Author

Sorry, wrong button.

@mrbrdo
Copy link
Contributor

mrbrdo commented Jun 12, 2014

@tupieurods as far as I can see, something else is shutting off sgminer, it doesn't seem to be shutting down itself. Are you running CGWatcher?

As far as the device hashing 0 problem, will have to check that. I am going to vacations until 25th so someone else might want to take a look.

@tupieurods
Copy link
Contributor Author

No. ctrl+C shutting sgminer). Current build doesn't shutting down himself, maybe that part fixed.

@mrbrdo
Copy link
Contributor

mrbrdo commented Jun 12, 2014

That's pretty important information, please remember to mention things like that.

@tupieurods
Copy link
Contributor Author

Works fine, if i use this option:

"remove-disabled" : true

temporary fix, until this bug isn't fixed in code.

@tupieurods
Copy link
Contributor Author

got it, problem is here:
https://github.com/sgminer-dev/sgminer/blob/v5_0/sgminer.c#L6167-L6194

If we disable some device, algo_switch_n will be always lower than mining_threads, because in the end algo_switch_n equal to number of mining threads in real using.

We should add one more variable with number of mining threads in real using and change it every time, when we set device state enabled/disabled.

I found device some of state changes here:
https://github.com/sgminer-dev/sgminer/blob/v5_0/sgminer.c#L8027-L8043
https://github.com/sgminer-dev/sgminer/blob/v5_0/sgminer.c#L6624-L6628
https://github.com/sgminer-dev/sgminer/blob/v5_0/sgminer.c#L6558-L6564
https://github.com/sgminer-dev/sgminer/blob/v5_0/driver-opencl.c#L1238-L1258
https://github.com/sgminer-dev/sgminer/blob/v5_0/driver-opencl.c#L848-L861
https://github.com/sgminer-dev/sgminer/blob/v5_0/api.c#L1994-L2025

Maybe i missed something or some items in the list isn't correct and we shouldn't change number of real mining threads in some of them.

@ystarnaud
Copy link
Contributor

@tupieurods I ran into this issue while testing my config-parser updates with per-pool devices on/off. Wish i has seen your post sooner because it would have saved me a headache debugging it.

Here's my solution in one of my commits:

https://github.com/ystarnaud/sgminer/commit/db6e4d3c73ec6b3f842d6b244c4e8c1baaced9bd#diff-ccb83336fe4e8722c874e79c5c4c4dddR5905

@veox
Copy link
Contributor

veox commented Jun 20, 2014

Config parser has been merged into branch v5_0, see if it solved the issue.

@veox veox added the bug label Jun 20, 2014
@veox veox added this to the 5.0 milestone Jun 20, 2014
@mrbrdo
Copy link
Contributor

mrbrdo commented Jun 30, 2014

@tupieurods if the above fix did not resolve the issue for you please comment/reopen.

@mrbrdo mrbrdo closed this as completed Jun 30, 2014
@tupieurods
Copy link
Contributor Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants