Bitcoin Forum
April 18, 2024, 11:44:01 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 [208] 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805201 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
February 21, 2012, 09:48:27 PM
Last edit: February 21, 2012, 10:27:37 PM by DeathAndTaxes
 #4141

FYI, Kano wrote and maintains the API...

Thanks for letting me know.  Smiley
https://bitcointalk.org/index.php?topic=52466.0

So ... password/encrypted traffic ... some time down the road ...

I was just hoping for something simple in next version rather than some financial services certified end to end encrypted system which may not be in the next 20 versions.  Smiley Just something that would prevent casual port sniffing attack like bitcoind uses.  simple password = quick & easy.

My guess is that getting some encryption scheme wrapped around JSON will take some time and then it will require implementing encryption on the other end which will slow down development of things like android app to control hashing farm because now developers will need to not only for wait for encrypted version of API but implement and test compatible encryption on the remote platform too.
1713440641
Hero Member
*
Offline Offline

Posts: 1713440641

View Profile Personal Message (Offline)

Ignore
1713440641
Reply with quote  #2

1713440641
Report to moderator
1713440641
Hero Member
*
Offline Offline

Posts: 1713440641

View Profile Personal Message (Offline)

Ignore
1713440641
Reply with quote  #2

1713440641
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713440641
Hero Member
*
Offline Offline

Posts: 1713440641

View Profile Personal Message (Offline)

Ignore
1713440641
Reply with quote  #2

1713440641
Report to moderator
johnyj
Legendary
*
Offline Offline

Activity: 1988
Merit: 1012


Beyond Imagination


View Profile
February 21, 2012, 10:21:17 PM
 #4142

I'm getting this error in the log together with a restart, is it normal?

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"       after 31076 requests (31076 known processed) with 0 events remaining.


jake262144
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
February 21, 2012, 10:31:10 PM
 #4143

Doesn't really matter about being stored in a config file.  If the attacker has access to the config file he has access to your machine (and possibly as admin/root) and can do anything he wants including force your GPU to overheat from the command line.
I have a strong dislike for cleat text passwords stored in config files.
Access rights need to be very cautiously set on all such files.

True, once the attacker gains shell access, you're in deep trouble.
Your trouble can easily get much deeper, however, when the adversary finds clear-text login credentials in some script or config file (e.g. a password for the corporate database...)

Clear text passwords can really make your day when for whatever reason you're unable to grab the elusive root.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
February 21, 2012, 10:43:29 PM
 #4144

True, once the attacker gains shell access, you're in deep trouble.
Your trouble can easily get much deeper, however, when the adversary finds clear-text login credentials in some script or config file (e.g. a password for the corporate database...)

Clear text passwords can really make your day when for whatever reason you're unable to grab the elusive root.

I agree for most applications there is no reason for anything less than per password salted SHA-256.  Passwords should be transmitted only encrypted and only after host has authenticated itself.

Still this is Bitcoin mining not a financial services database.
P4man
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
February 21, 2012, 10:45:59 PM
 #4145


True, once the attacker gains shell access, you're in deep trouble.
Your trouble can easily get much deeper, however, when the adversary finds clear-text login credentials in some script or config file (e.g. a password for the corporate database...)

Clear text passwords can really make your day when for whatever reason you're unable to grab the elusive root.

But cgminer already stores passwords in clear text and transmits them as such. Of course they are not important passwords (workers), but the same goes for protecting the API. Only an idiot would set the same password as for his email/facebook whatever. But then that idiot might be using that password for his workers already, so nothing changes there.

QuantumFoam
Full Member
***
Offline Offline

Activity: 200
Merit: 100


|Quantum|World's First Cloud Management Platform


View Profile WWW
February 21, 2012, 11:06:50 PM
 #4146

I've been thinking about writing a small c program using the API to manage my pools more effectively when my main pool has issues, which has been a LOT lately. The problem when the main pool has issues is it is constantly going up and down multiple times a minute, and that really chokes my hashrate when that happens. As it stands, the failover does not handle this situation well and keeps trying to submit shares to the intermittently failing pool, and keeps switching back to that pool when it briefly comes back online.

What the program would do is try and detect this situation and switch/disable the offending pool for a set amount of time so my hashrate/shares per min don't plummet. As it stands now, reading through the API I would probably have to have the program read the active logfile to detect the situation as there does not seem to be a way to get notifications for the "Pool 0 communication failure, caching submissions" event. If this kind of logic is being added into cgminer sometime soon (perhaps as an optional flag), I'll not waste time developing my hack for it.

|Quantum|World's First Cloud Management Platform on the Blockchain
P4man
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
February 21, 2012, 11:17:35 PM
 #4147

The plummeting hashrate is partially caused by what I consider a bug I noticed recently. When a pool lags, cgminer sets the clocks back to 157 Mhz. When the pool comes back or cgminer switches to a backup pool, it slowly ramps up the speed from the minimum configured. I see no need for that behavior.  It takes a few minutes before its mining back at full speed for no real reason.

-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
February 21, 2012, 11:20:17 PM
 #4148

The plummeting hashrate is partially caused by what I consider a bug I noticed recently. When a pool lags, cgminer sets the clocks back to 157 Mhz. When the pool comes back or cgminer switches to a backup pool, it slowly ramps up the speed from the minimum configured. I see no need for that behavior.  It takes a few minutes before its mining back at full speed for no real reason.
It's actually a longstanding bug I've been fighting for some time. The driver really shouldn't be reporting back speeds of the lower profile but it screws everything up when it does.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
jake262144
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
February 21, 2012, 11:23:57 PM
 #4149

Only an idiot would set the same password as for his email/facebook whatever. But then that idiot might be using that password for his workers already, so nothing changes there.
Ah, the old 1d10t error code Cheesy

Did you per chance hear about protests against the ACTA treaty being signed in Europe?
Many government websites were brought down as an act of defiance.
Apparently, Polish Prime Minister needed admin-rights access to his official site... the password was revealed to have been admin1 Grin
ancow
Full Member
***
Offline Offline

Activity: 373
Merit: 100


View Profile WWW
February 22, 2012, 07:42:50 AM
 #4150

Current git fails to build kernels. According to a bisect, the following commit is the problem:

Code:
commit 26c59fbf0f399950d843faba5a9a0fb5dc345df6
Author: Con Kolivas <kernel@kolivas.org>
Date:   Wed Feb 22 16:59:28 2012 +1100

    Allow the worksize to be set per-device.

The resulting failure:

<snip>

BTC: 1GAHTMdBN4Yw3PU66sAmUBKSXy2qaq2SF4
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
February 22, 2012, 07:45:39 AM
 #4151

Current git fails to build kernels. According to a bisect, the following commit is the problem:

Code:
commit 26c59fbf0f399950d843faba5a9a0fb5dc345df6
Author: Con Kolivas <kernel@kolivas.org>
Date:   Wed Feb 22 16:59:28 2012 +1100

    Allow the worksize to be set per-device.
Heh you couldn't wait till I finished it Cheesy Yeah I'm still working on the code, thanks.

edit: Yes I know I shouldn't leave the master branch in an unworkable state but I had to rush off and didn't want to lose my work to date.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
johnyj
Legendary
*
Offline Offline

Activity: 1988
Merit: 1012


Beyond Imagination


View Profile
February 22, 2012, 07:52:28 AM
 #4152

The plummeting hashrate is partially caused by what I consider a bug I noticed recently. When a pool lags, cgminer sets the clocks back to 157 Mhz. When the pool comes back or cgminer switches to a backup pool, it slowly ramps up the speed from the minimum configured. I see no need for that behavior.  It takes a few minutes before its mining back at full speed for no real reason.

Same here, I use AMDOverdriveCtrl to handle each graphic card, and when there is no load due to lag of pool, the card automatically drop clocks to 157Mhz, I think it is a feature of ATI powerplay on card, has nothing to do with cgminer/AMDoverdriveCtrl. But when load is re-applied to the card, AMDOverdriveCtrl immediately shows the clock returned to 900Mhz, but cgminer's hash rate will only slowly climb back to original hashrate in about 10 minutes

But I take it as a feature Cheesy Smoothly increase the load on card will improve the stability when there is a sudden change in the clock frequency

ancow
Full Member
***
Offline Offline

Activity: 373
Merit: 100


View Profile WWW
February 22, 2012, 07:55:12 AM
 #4153

Heh you couldn't wait till I finished it Cheesy Yeah I'm still working on the code, thanks.

edit: Yes I know I shouldn't leave the master branch in an unworkable state but I had to rush off and didn't want to lose my work to date.

Tongue I figured as much, just wanted to make sure you knew about it. And you'd just left IRC when I was about to ask...

BTC: 1GAHTMdBN4Yw3PU66sAmUBKSXy2qaq2SF4
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
February 22, 2012, 07:58:54 AM
 #4154

The plummeting hashrate is partially caused by what I consider a bug I noticed recently. When a pool lags, cgminer sets the clocks back to 157 Mhz. When the pool comes back or cgminer switches to a backup pool, it slowly ramps up the speed from the minimum configured. I see no need for that behavior.  It takes a few minutes before its mining back at full speed for no real reason.

Same here, I use AMDOverdriveCtrl to handle each graphic card, and when there is no load due to lag of pool, the card automatically drop clocks to 157Mhz, I think it is a feature of ATI powerplay on card, has nothing to do with cgminer/AMDoverdriveCtrl. But when load is re-applied to the card, AMDOverdriveCtrl immediately shows the clock returned to 900Mhz, but cgminer's hash rate will only slowly climb back to original hashrate in about 10 minutes

But I take it as a feature Cheesy Smoothly increase the load on card will improve the stability when there is a sudden change in the clock frequency
A number of niggling issues cause drop in hashrate over longpolls and network outages in 2.2.7. Fixed in next version.  Hold on to your hats...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
P4man
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
February 22, 2012, 08:13:12 AM
 #4155

. But when load is re-applied to the card, AMDOverdriveCtrl immediately shows the clock returned to 900Mhz, but cgminer's hash rate will only slowly climb back to original hashrate in about 10 minutes

I take it you arent using auto-gpu with a clockspeed range then. If you are, it doesnt start at 900, it will start at whatever you configured as lowest in the range (say 700-1000 in my case) and then slowly increase back to 1GHz. Same behavior as when it overheats. So its not the average hashrate Im talking about, its the clock.

leveer
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
February 22, 2012, 11:44:29 AM
 #4156

Any chance the pool settings could be stored in a separate configuration file? It would sure make changing those in bulk/on multiple rigs a lot easier, when my pool preference order changes... distribute one pools.conf to each rig.

It also would be nice to have an ability to re-order pools from within cgminer.

I've got 3 BTC in bounty for each.
kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
February 22, 2012, 12:47:11 PM
 #4157

Any chance the pool settings could be stored in a separate configuration file? It would sure make changing those in bulk/on multiple rigs a lot easier, when my pool preference order changes... distribute one pools.conf to each rig.

It also would be nice to have an ability to re-order pools from within cgminer.

I've got 3 BTC in bounty for each.
Can I have the 2nd one Smiley
With the API, you simply move any pool of choice to position 0 (highest priority).
The number of moves to get the required order is at maximum, the number of pools.
How many pools do you have anyway?

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
The00Dustin
Hero Member
*****
Offline Offline

Activity: 807
Merit: 500


View Profile
February 22, 2012, 01:16:20 PM
 #4158

Does the API actually reorder the pools or just change the priority?  I don't see any need for the pools to be reordered, I'm just curious.  In fact, if I have pools 1,2,3,4 and they are at default priority but I want to make the priority order 3,2,4 with 1 disabled, I simply disable 1 from the UI and then set 3 to priority 0. A t this point, the priority order is technically 3,1,2,4, but 1 is disabled, so it's fine.  Once one is familiar with the priority changing it should never take more priority changes than you have pools in order to achieve the priority he wants.
leveer
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
February 22, 2012, 02:28:21 PM
 #4159

Any chance the pool settings could be stored in a separate configuration file? It would sure make changing those in bulk/on multiple rigs a lot easier, when my pool preference order changes... distribute one pools.conf to each rig.

It also would be nice to have an ability to re-order pools from within cgminer.

I've got 3 BTC in bounty for each.
Can I have the 2nd one Smiley
With the API, you simply move any pool of choice to position 0 (highest priority).
The number of moves to get the required order is at maximum, the number of pools.
How many pools do you have anyway?
Frankly, I have no idea how to use the API. Have started cgminer with the --api-listen command, and can get 127.0.0.1:4028 to return a file called "download," but that's as much as I can get. Would prefer to use miner.php based on the description, but opening it in a browser just yields the text contents of the file...

EDIT: Notably, using Windows...
kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
February 22, 2012, 03:09:51 PM
 #4160

Any chance the pool settings could be stored in a separate configuration file? It would sure make changing those in bulk/on multiple rigs a lot easier, when my pool preference order changes... distribute one pools.conf to each rig.

It also would be nice to have an ability to re-order pools from within cgminer.

I've got 3 BTC in bounty for each.
Can I have the 2nd one Smiley
With the API, you simply move any pool of choice to position 0 (highest priority).
The number of moves to get the required order is at maximum, the number of pools.
How many pools do you have anyway?
Frankly, I have no idea how to use the API. Have started cgminer with the --api-listen command, and can get 127.0.0.1:4028 to return a file called "download," but that's as much as I can get. Would prefer to use miner.php based on the description, but opening it in a browser just yields the text contents of the file...

EDIT: Notably, using Windows...
Well you can actually do it from within cgminer anyway:
Press "P" for Pool management
"S" for Switch pool
and then the number of the pool -> this will make it the top priority pool

So if you have pools 0, 1 & 2 but want the priority to be 2, 1, 0
You would first switch to 1 then switch to 2

As for the other half Smiley
I've just put up a pull request to ckolivas (after I asked him if he was interested in it - he said no)
to allow one "include":"filename" in the json file (which is allowed to be recursive - up to 10 times - to avoid infinite loops)
It's simple and will not be made more complex.

If you save the configuration from within cgminer, the output will contain ALL settings (except will not contain the "include" setting)
The reasoning behind this is that if you change anything within cgminer, there could be complex multiple definition issues and all settings loaded and changed would need attributes about where they came from and if they were changed - way too complex.
Also, if you set a setting within cgminer that was in an included file, the included file would always override it, your setting would never stick.

Separating just the pools and only having them in their own file would be a backward compatibility problem.

Hopefully the simple solution is enough, coz I can't see a more complex version ever being implemented (since it would require a major redesign of how configuration settings are handled within cgminer)

We'll see if he allows it in or not Smiley

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Pages: « 1 ... 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 [208] 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 ... 843 »
  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!