Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 759. (Read 5805998 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Accepting multiple config files and making it easier to do so is not a long term solution. cgminer needs a unified single config file for multiple options but someone needs to write a parser for it to do so. Unfortunately that someone is not going to be me, and lots of people have promised but not delivered (alas as I expected would happen). So for the time being it will remain as is I'm afraid.
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Doh! Your post reminded me that the shell was trying to expand the glob and cgminer couldn't take it. So a much simpler patch is to make the ccan opt code allow multiple args and then the shell expands as normal. Same result, barring any bugs.

So this small patch is simpler than the first and gives the same feature.
This works for me with no quotes. And I expect it would work on Windows now but untested.

cgminer -c /etc/cgminer/* 2>/var/log/cgminer.log

but it's not tested any further and there could be a bug in my patch. Also a better idea would be to add a OPT_MULTIARG feature to enable this ability but I didn't take it that far though it may make sense to suggest it to the author of ccan opt.

Again, for those who like this feature, a pastebin, apply in cgminer ccan/opt directory and it allows options to have multiple args.

http://pastebin.com/qnWW0vdv
(don't apply both patches only this one or other one, this one being better)
(the downside being the shell glob doesn't seem to be in alphabetic order)

Of course, another idea would be to have a default path built in to cgminer that will load configs without any -c needed. That would be fairly simple. Maybe I should write a patch for that?

Then a "Save Config" option in the settings menu to write out a series of pool conf files would mean no need to manually write these. Just an idea as making the conf files was the hardest part of getting cgminer going for me.
hero member
Activity: 807
Merit: 500
I've created a small patch for CGMiner 2.0.6 that adds support to glob config files.
eg. how I use it now,

cgminer -c '/etc/cgminer/*'  2>/var/log/cgminer.log

and it will pick up all files there. I use this for multiple pool confs and it makes it easy to add/remove pools without altering my init scripts.

I don't know quite where to put the patch so I've just stuck it in a pastebin for others if they want it.
It's pretty quick'n'dirty (and probably doesn't work on Windows). I noticed I had to put quotes around the path otherwise the '*' causes a parse problem. Maybe there's a way to fix that, not sure, but this is working ok for me as is.

http://pastebin.com/R2rjFm4L
Since you mention that you don't use Windows, I would GUESS that the fix for your parse error without single quotes would be this:

cgminer -c /etc/cgminer/\*  2>/var/log/cgminer.log
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
I've created a small patch for CGMiner 2.0.6 that adds support to glob config files.
eg. how I use it now,

cgminer -c '/etc/cgminer/*'  2>/var/log/cgminer.log

and it will pick up all files there. I use this for multiple pool confs and it makes it easy to add/remove pools without altering my init scripts.

I don't know quite where to put the patch so I've just stuck it in a pastebin for others if they want it.
It's pretty quick'n'dirty (and probably doesn't work on Windows). I noticed I had to put quotes around the path otherwise the '*' causes a parse problem. Maybe there's a way to fix that, not sure, but this is working ok for me as is.

http://pastebin.com/R2rjFm4L

hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Look at (avg) at the top that's what matters to see if you are getting the most Mhash out of your cards.
Or for each GPU line the 2nd number - that is the over time average.

Of course U: (utility) determines your 'pay' but that result will be a statistical average (just like the time to find a block is a statistical average) but not anything that you can be sure will be a certain value.
Yes, saw those values. They are now about 620 instead of 630, with each card about 5 MH/s less than Phoenix after a few hours mining. I'd heard that cgminer was getting better rates than Phoenix but I'm not seeing that so I may switch back. I do like the CGminer screen and integration of monitoring/failover though. I'll probably decide after a full day of shares and see what the revenue difference ends up being.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Look at (avg) at the top that's what matters to see if you are getting the most Mhash out of your cards.
Or for each GPU line the 2nd number - that is the over time average.

Of course U: (utility) determines your 'pay' but that result will be a statistical average (just like the time to find a block is a statistical average) but not anything that you can be sure will be a certain value.
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Auto fan assumes the worst case scenario: that is that your GPU might actually be fucking hot when you start it, so it automatically starts at a safe 85% speed. It will eventually die down. If you happen to stop and start a miner instantly and start at a low fan it's dangerous, so I intentionally made it do that. If you don't like it you'll have to change the code. Try intensity 9, as the kernels are pretty much identical between phoenix and cgminer these days. It could just be reporting error as cgminer does not lie.
Ah, I see. Would be nice if it adjusted down quicker when the temp is so low. I get about 45-50C at start but fans take quite a while to slow down. I guess it's not a big deal as this happens usually only when the power drops out.

Tried Intensity 9. Seems really variable now. Sometimes 642 MH/s then 587 MH/s. Bounces around a lot more. If that's sounds ok then I suppose it's better. In the end what matters is what the pool says I gave them.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Auto fan assumes the worst case scenario: that is that your GPU might actually be fucking hot when you start it, so it automatically starts at a safe 85% speed. It will eventually die down. If you happen to stop and start a miner instantly and start at a low fan it's dangerous, so I intentionally made it do that. If you don't like it you'll have to change the code. Try intensity 9, as the kernels are pretty much identical between phoenix and cgminer these days. It could just be reporting error as cgminer does not lie.
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Just trying out cgminer.

One thing I noticed is that when it starts my fans kick in full speed.
Is there some way to set it so it keeps the fans low and adjusts them as needed.

I have settings:

gpu-fan : 50-85
auto-fan : true
temp-target : 70

I've tried just setting gpu-fan : 50 but then the auto fan doesn't kick in.

It works fine after 5 minutes of high noise and the fans slowly come down but I'd much prefer if it would start slower and speed up according to heat.

I'm getting a bit less than Phoenix speed wise. Was 630 MH/s steady and now 627 MH/s with cgminer. I have Intensity set to 8 and gpu settings same as with Phoenix. Not sure why it would be slower.
full member
Activity: 215
Merit: 100
Live Long and Prosper
cgminer is so efficient you will need to turn down your OC.  Try it, then notice that you STILL get better MHash/s.  I actually had to turn mine down on a 1.x.x version because of this, and had to turn it down again in 2.0.6, but I'm still getting higher MHash/s now than I was with the 1.x.x version before I had to turn it down.  Note that it may take a few trials to find your new sweet spot.
Lowered the oc to 945/215.Seems to be ok now.
Thanks man. Smiley
hero member
Activity: 807
Merit: 500
I'm a first time user of this program.Thought I would give it a try today.
It works lovely for all my gpu's except one.I have 2 5770 @960/300 -I 7,9.
2 5870 @ 950-955/215 -I 9,9.I used the same clocks with phoenix 1.6.2,never had a problem.
The miner with the 2 5870's uses an intel e-5300 cpu, which I underclocked  to 1.2 Ghz to save power.
The problem I have is that the 5870 that is clocked at 950/215,always gets pronounced dead by cgminer after about 30-50 min.
I switched this particular card back to Phoenix and it's been doing it's thing for hours now.
I prefer all my cards to be on one efficient miner.Any help would be welcome!



Thanks  Smiley


cgminer is so efficient you will need to turn down your OC.  Try it, then notice that you STILL get better MHash/s.  I actually had to turn mine down on a 1.x.x version because of this, and had to turn it down again in 2.0.6, but I'm still getting higher MHash/s now than I was with the 1.x.x version before I had to turn it down.  Note that it may take a few trials to find your new sweet spot.
full member
Activity: 215
Merit: 100
Live Long and Prosper
I'm a first time user of this program.Thought I would give it a try today.
It works lovely for all my gpu's except one.I have 2 5770 @960/300 -I 7,9.
2 5870 @ 950-955/215 -I 9,9.I used the same clocks with phoenix 1.6.2,never had a problem.
The miner with the 2 5870's uses an intel e-5300 cpu, which I underclocked  to 1.2 Ghz to save power.
The problem I have is that the 5870 that is clocked at 950/215,always gets pronounced dead by cgminer after about 30-50 min.
I switched this particular card back to Phoenix and it's been doing it's thing for hours now.
I prefer all my cards to be on one efficient miner.Any help would be welcome!



Thanks  Smiley

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I build it in a windows virtual machine running xp with mingw32 installed and all the libraries as needed. It's a royal pain considering I don't use windows. I've never tried building the windows version with the ming environment on linux.
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
Conman, i am trying to compile cgminer on Linux(ubuntu in my case) under mingw32 for windows. Is that what you use or cygwin?

And did you have to compile everything from curl to pdcurses under the mingw32 gcc compiler? Cause i am getting a ton of errors about missing libxt(which is installed and so is its -dev counterpart)
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
how do I change the intensity when CGminer's running?
G->I->[GPU Num]->[Intensity]
See - I said I needed to upgrade Smiley
newbie
Activity: 8
Merit: 0
how do I change the intensity when CGminer's running?
G->I->[GPU Num]->[Intensity]
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Unless something has changed in 2.0.6 ... 'S' (hmm I should upgrade Tongue)
hero member
Activity: 658
Merit: 500
how do I change the intensity when CGminer's running?
donator
Activity: 798
Merit: 500
However, for actually installing them - I'm not sure what the issue is.
Why can't you simply use apt-get?
As per my script, the system boots into X then I apt-get install the ATI driver then reboot into the new ATI driver.

I'm just not great with linux and I know Xubuntu + cgminer + catalyst11.6 works very well, and I know I screwed up a drive trying to uninstall 11.8 which wasn't working for me.  I'll try apt-get and see how it turns out.

Thanks
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Thanks but that's all chinese to me. Is that how you install catalyst from apt? If so what catalyst version does it install?  I'm going to be setting up another rig, and have previously manually installed 11.6 - which is a lot of work on a remote rig.
Well my same cryptic (like above) output is 8.84

Converting those numbers to ATI Windows driver numbers isn't simple (I don't know how to either)
glxinfo isn't very helpful, the docs don't seem to say anywhere in them either
From 11.7 they are supposed to use the same numbers so I'd guess there might be a jump after 8.85 to 11.x

However, for actually installing them - I'm not sure what the issue is.
Why can't you simply use apt-get?
As per my script, the system boots into X then I apt-get install the ATI driver then reboot into the new ATI driver.
Jump to: