Bitcoin Forum
July 12, 2024, 05:24:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 [554] 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 »
11061  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 16, 2011, 10:18:23 PM
Seems to me like you've got it all under control, so I'll leave you to finish up. Thanks for your involvement. However I don't want multiple phatk kernels so just replace the current one in-situ and don't bother enumming a different kernel. As for the output code, I prefer to use 4k so feel free to do it your way, but be aware I plan to change it back.
11062  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 09:48:34 PM
Do 'SICK' GPU's ever get restarted? Sometimes I get 'Thread 3 idle for more than 60 seconds, GPU 1 declared SICK!' and mining stops on that GPU. If I restart it manually, work resumes just fine, so I guess it cgminer should try to restart the GPU automagically? I waited 3 minutes and the GPU was not restarted, maybe there is a bigger timeout?

Edit: When it gets marked as DEAD, it does get restarted immediately.
Yes indeed, that's what I've spent weeks working on to get right. To restart it if it can only. The 5 minutes was a nominal choice based on the theory that if it gets sick, giving it a few minutes to cool down will make it more likely to respond. Note that if it gets sick a LOT, you may benefit from decreasing the intensity and sacrificing a few MH just to get a more stable throughput (eg -I 7 instead of Cool.
11063  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 09:45:51 PM
Hi,
I noticed that i now get a lot of longpoll errors from slush's pool (for some reason) but BTCGuild seems to be working fine.
However i noticed that it wasnt obvious which pool it was that was giving me the error in a multipool setup so i would appreciate if you incorporated this small change in the next release.

diff old_main.c main.c
3795c3795
<                                       "longpoll failed, sleeping for 30s");
---
>                                       "longpoll failed for %s, sleeping for 30s",lp_url);

It just turns this:
   longpoll failed, sleeping for 30s
into this:
   Longpoll failed for http://api2.bitcoin.cz:8332/LP, sleeping for 30s


Best
/GoK

Good idea. Though I might just put the pool number rather than the whole URL because the URL can be quite long leading to a very long log message. ?
11064  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 16, 2011, 12:07:38 PM
Alright... I'm getting a little delayed on the prerelease for cgminer... mingw is a pain in the ass.. trying a full cygwin install next...

Bear with me, hopefully I'll get it running tomorrow.

-Phateus
You could just tell me what to do to interface it with cgminer (i.e. what new variables you want) and I'd copy most of your kernel across. Only the return code and define macros are actually different in cgminer in the kernel itself.
11065  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 07:17:31 AM
New version. NOTE the windows binary should CPU mine again (-O3 was unstable, but -O2 works) and includes a cpumine only executable as well.

Source:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5.tar.lrz

Ubuntu:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-x86_64-built.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-x86_64-built.tar.lrz

Windows 32 bit binary:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-win32.zip


Version 1.5.5 - August 16, 2011

- Rework entirely the GPU restart code. Strike a balance between code that
re-initialises the GPU entirely so that soft hangs in the code are properly
managed, but if a GPU is completely hung, the thread restart code fails
gracefully, so that it does not take out any other code or devices. This will
allow cgminer to keep restarting GPUs that can be restarted, but continue
mining even if one or more GPUs hangs which would normally require a reboot.
- Add --submit-stale option which submits all shares, regardless of whether they
would normally be considered stale.
- Keep options in alphabetical order.
- Probe for slightly longer for when network conditions are lagging.
- Only display the CPU algo when we're CPU mining.
- As we have keepalives now, blaming network flakiness on timeouts appears to
have been wrong.     Set a timeout for longpoll to 1 hour, and most other
network connectivity to 1 minute.
- Simplify output code and remove HW errors from CPU stats.
- Simplify code and tidy output.
- Only show cpu algo in summary if cpu mining.
- Log summary at the end as per any other output.
- Flush output.
- Add a linux-usb-cgminer guide courtesy of Kano.

Courtesy of znort:
    Add automated benchmark of the CPU hashers
   
        The --algo switch now accepts the "auto" argument.
   
        When "auto" is passed to --algo, cgminer starts by benchmarking
        all the CPU algorithms it nows about and picks the fastest.
   
        This is useful for benchmarking, but also for folks who run
        cgminer on a large number of heterogeneous computers because
        it saves them from having to configure each instance optimally.
   
        Caveat emptor: depending on the platform, some algorithms will
        fail with "illegal instruction" (e.g. via padlock code on non via
        platforms, or SSE4 code on non SSE4 platforms).
   
        To protect against this, cgminer runs the benchmarks in a child
        process. The crash, if any occurs in the child, and the parent
        marks this algo as "fails" and continues benchmarking the next
        algorithm.
11066  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 05:46:28 AM
You need pkg-config installed.
11067  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 11:29:14 PM
Is there anything we can do to help with this sort of problem where it discards shares on a pool that pays for stales?

Quote
[2011-08-16 07:38:37] Pool 0 communication failure, caching submissions
[2011-08-16 07:38:43] Stale share detected, discarding
Well it's the wrong thing for the pool to be accepting stale shares since that work is likely useless, so it's in the pool's best interest to not do so. On the other hand, if you're mining for such a pool, I guess you get to "cheat" with this useless work, so I can see how it would be an advantage to you. I could easily add another switch to the command line such as --submit-stale .

edit: This option has been committed to the tree.
11068  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 03:02:37 AM
Okay so I had some generous people offer me BTC online to get the windows binary version working, and I DID see someone offer a BTC bounty to get the windows binary working, so I've fluffed around for the last 2 days on a windows virtual machine to build some win32 binaries.

http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4-win32.zip

Hopefully people appreciate the effort.
11069  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 12:25:31 AM
I see. Well I can't even get it compiling on mingw32. Can't figure out how to install the remaining dependencies of libcurl though I've installed it 10 different ways and even ended up building it myself which took hours. Gotta remember I haven't used windows in over a decade in any meaningful way.
11070  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 14, 2011, 11:45:55 PM
Please, can someone reliable make an official 1.5.4 windows build? Smiley

i`m begging for a newer win32 build for about a week or so Sad
If you look back a few pages, you will see i compiled an unofficial 1.5.3 version for windows, which works compared to the one ycros made, which doesn't. I can compile 1.5.4 as well, but since ckolivas is here, i am sure he will provide a windows binary of 1.5.4 himself.
Don't be so sure. The windows binaries till now have been provided by Ycros, not me. I've never compiled anything on windows before and spent a day yesterday trying to do it in a virtual machine and have so far failed. I will keep trying today but if I give up in disgust then I may ping you for your help. Alas I don't know you that well so the web of trust between us needs to be built up for me to be happy to distribute your binaries.
11071  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 14, 2011, 11:26:57 AM
HEADS UP TO GIT USERS.

The default branch is now "master" once more. Please use that instead of the branch called cgminer.
11072  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 14, 2011, 10:21:18 AM
What version of cgminer are you testing that does that? Because that's precisely what it does in submit_nonce:

   /* Do one last check before attempting to submit the work */
   if (!fulltest(work->data + 64, work->target))
      return true;

Or am I missing something Huh

Sorry, I am still on 1.4.something.  I avoided 1.5.x because of the several reports of problems with it and because you were out of town.  I'll try that now.
"forrestv" just informed me the fulltest function was disabled due to endian issues (I think) in the original cpuminer code that cgminer grew out of. Since cgminer pretty much only builds on little endian machines now anyway, it has been re-enabled, but only in the git tree. So this test is not active yet in the current release (1.5.4).
11073  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 14, 2011, 09:57:24 AM
Looks like the 1.5.3 configure script inadvertently dropped support for alternate cURL library path support via --with-libcurl:

Yes, because it's the crappy way to do it. The right way is to export a variable to specify the PKG_CONFIG_PATH to the correct *.pc file. See my RPMs for reference...

Sorry for bringing this up again but how do i compile  >=1.5.3  without installing curl?
You cannot.
11074  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 14, 2011, 04:29:25 AM
New release 1.5.4:

Source:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4.tar.lrz

Linux x86_64 ubuntu binary:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4-x86_64-built.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4-x86_64-built.tar.lrz

Hopefully we can get a windows version from someone somewhere soon :O

Summary: cgminer should now use the backup pools much less frequently, should drop in performance on a longpoll much less, communicate with the server less, have higher efficiency, and hopefully have less problems with dying GPUs. It also supports the --monitor command (linux only at this stage).


Full Changelog:

- Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
will get forked by cgminer on startup. cgminer's stderr output subsequently gets
piped directly to this command.
- Allocate work from one function to be able to initialise variables added
later.
- Add missing fflush(stdout) for --ndevs and conclusion summary.
- Preinitialise the devices only once on startup.
- Move the non cl_ variables into the cgpu info struct to allow creating a new
cl state on reinit, preserving known GPU variables.
- Create a new context from scratch in initCQ in case something was corrupted to
maximise our chance of succesfully creating a new worker thread. Hopefully this
makes thread restart on GPU failure more reliable, without hanging everything
in the case of a completely wedged GPU.
- Display last initialised time in gpu management info, to know if a GPU has
been re-initialised.
- When pinging a sick cpu, flush finish and then ping it in a separate thread in
the hope it recovers without needing a restart, but without blocking code
elsewhere.
- Only consider a pool lagging if we actually need the work and we have none
staged despite queue requests stacking up. This decreases significantly the
amount of work that leaks to the backup pools.
- The can_roll function fails inappropriately in stale_work.
- Only put the message that a pool is down if not pinging it every minute. This
prevents cgminer from saying pool down at 1 minute intervals unless in debug
mode.
- Free all work in one place allowing us to perform actions on it in the future.
- Remove the extra shift in the output code which was of dubious benefit. In
fact in cgminer's implementation, removing this caused a miniscule speedup.
- Test each work item to see if it can be rolled instead of per-pool and roll
whenever possible, adhering to the 60 second timeout. This makes the period
after a longpoll have smaller dips in throughput, as well as requiring less
getworks overall thus increasing efficiency.
- Stick to rolling only work from the current pool unless we're in load balance
mode or lagging to avoid aggressive rolling imitating load balancing.
- If a work item has had any mining done on it, don't consider it discarded
work.
11075  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 13, 2011, 09:51:02 PM
What version of cgminer are you testing that does that? Because that's precisely what it does in submit_nonce:

   /* Do one last check before attempting to submit the work */
   if (!fulltest(work->data + 64, work->target))
      return true;

Or am I missing something Huh
11076  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 13, 2011, 02:20:26 AM
After running it for a while on my 6970s, I find even this change is of no benefit either  Undecided It's ever so slightly slower it appears. Not sure what to do now about all this.
I'll just be quiet and go back in my hole for a bit. :/
Don't be disheartened. I'm forever hacking up code and then deleting it. You wouldn't believe how much code I've thrown out so far working on cgminer. Not every experiment is successful.
11077  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 12, 2011, 10:48:05 PM
Current 110810 kernel on git has 1368 ALU OPs for 58XX and 1696 for 69XX, that's neither phatk 2.2 nor my latest result (which is 1364 / 1688), but a bit faster than the last official CGMINER kernel. I mailed my latest version to Con for review Wink.

The added __attribute__((vec_type_hint(u))) is unknown to the compiler and throws a warning, but IS mentioned in the OpenCL 1.1 manual ... strange.

Dia
Correct, it's not 2.2, nor your most recent. It was an honest attempt at integrating *both* of them, but I think now that  I missed a few things.

I had noticed the Kernel Analyzer threw an error about vec_type_hint, but it compiles without issue on linux. I don't have native windows (only virtualized) to test anything there. In testing, I was unsure as to whether vec_type_hint made an improvement, but I was certain that it wasn't the opposite.
After running it for a while on my 6970s, I find even this change is of no benefit either  Undecided It's ever so slightly slower it appears. Not sure what to do now about all this.
11078  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 12, 2011, 03:06:00 PM
Ofcourse. Just use cgminer.exe -c pool1.cfg -c pool2.cfg

or use multiple -o, -u, -p statements. Works fine here. (.ie cgminer.exe -o http://url_pool1:port -u username_pool1 -p pass_pool1 -o http://url_pool2:port -u username_pool2 -p pass_pool2)

Nice, I'll give that a shot.  So, the second -o/u/p set is not used at all unless the first is down?  Will it automatically failback to the original?  Can you have a third or fourth set as well?

Just wondering Smiley
You can have as many as you like, and it will trickle work to the 2nd and 3rd when the 1st is relatively slow, or fail over completely to the 2nd when the 1st dies. Alternatively you can change the pool strategy to load balance where it shares work between all of them, etc... check the readme or top post in this forum. Also you can do all of this live while it's running just by pressing P and checking the options.
11079  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 12, 2011, 09:29:49 AM

Just tried cgminer's latest head (@5411a13ad7140ced511782914e58395c10c76c1b)
and it's consistently slower than yesterday's head by about 10MH/s per GPU core.

Sad



And that's almost certainly the return code which affected mine also. I'll be reverting it shortly.

edit: reverting just that change fixes it instantly.
11080  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 12, 2011, 06:08:44 AM
Unfortunately, on my 6970s it is actually appearing to be slower  Huh I may have to revert this change.

edit: On my 6770 it's clearly faster and clearly slower on the 6970s... now I'm really confused.

The OpenCL compiler and resulting performance seems to be far way of beeing consistent :-/.
Are you on SDK 2.5 yet?

Dia
Was on 2.4, tried 2.5 and it's still consistently slower.
Pages: « 1 ... 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 [554] 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!