Bitcoin Forum
May 02, 2024, 08:09:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 »
11281  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 01, 2011, 02:23:50 PM
Updated tree:

I put a lot more effort into avoiding rejected blocks. I've reworked the get work code to not require locking and to be flagged itself if longpoll has notified us of a new block. If that happens it will discard and queued work. It also now stores the current block's header once it's known, and on block submission it compares the result being submitted and if it belongs to an older block it will discard it instead of trying to upload it. With these accumulated changes, the block reject rate is lower than ever.
11282  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 01, 2011, 12:00:07 PM
Whats the reason for not including the cpu miner code developed by ufasoft? - Under a 32bit OS, I can get the same using his miner as the SSE2_64 code on a 64-bit OS. Why can't this speed be matched for a 32 bit OS?
Cause I'm hopeless with asm. Happy to include it if someone can port the 32 bit assembly to something more portable.
11283  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 01, 2011, 11:32:08 AM
Updated tree:

Fixed the high stale block rate. Now it should be equivalent to other miners unless you set the intensity absurdly high.
11284  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 03:29:09 PM
Updated tree:

The work submission and get work was done from the same "curl" and one would block the other. This would mean that delays on one would delay the other and could slow down processing unnecessarily. While trying to split them into different threads I discovered they would crash on using the same curl so each component has its own thread and own curl now. This should make it much less likely that stalls occur due to poor network connectivity. The separate curl instances may also fix other bugs (like the infinite rejects loop).

I've debugged the binary kernel loading and re-instated it. Now it should be much faster to begin after the first time it is started as it will generate an appropriate binary and then load it thereafter.

Still todo:
I'd like to use the block information received to tell submission threads to not both submitting queued stale blocks after longpoll has informed it of a change.
Find other ways of decreasing stale block rate.
Increase throughput (pipedream).
Start looking at cleaning things up for better building, configuration, windows builds and so on, to perhaps make a real release version.
Lots of other things... but sleep first zzzzz....
11285  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 11:34:05 AM
The code doesn't support make install yet... You have to run it from the directory where it's built for now. And you happened to try it at an unfortunately quite unstable development time. I'm working very hard at fixing the instability right now.
11286  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 10:54:15 AM
No worries, bear in mind this is still all new code and maturing.
11287  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 10:46:17 AM
Keep going down, or try dropping gpu threads to 1 ?
11288  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 10:33:32 AM
Experimenting with this on a single HD5970 (2 GPU cores):

    - I seem to be getting pretty much the same hashing rate as with phoenix
    - The reject rate seems to be much higher though:
         - with phoenix I usually get a reject rate of about 2% of accepted blocks
         - with this, it seems to be around 10%  Sad


Code:
[2011-06-30 10:29:27] [745.63 | 727.37 Mhash/s] [54 Accepted] [6 Rejected] [0 HW errors]

Any idea what's causing this ?

I'm running:

Code:
./minerd                          \
    --intensity 12                \
    --cpu-threads 0               \
    --user $USER                  \
    --pass $PASS                  \
    --url "http://$ADDR:$PORT"    \



There are a few reasons for this. The reject rate goes up if you set the intensity too high on minerd because it can literally take 10 seconds before the gpu returns its results from one single request at high levels! In that time the blocks can get stale. Also, setting the number of gpu threads high basically slows down how long each request takes as well (the purpose for multiple threads is to make sure the gpu remains busy). Finally, some stale blocks are still sneaking through when a new block is detected. I'm working on all of these issues to try and minimise them, but for the time being, you may find less stale blocks with an intensity around 8-9, and the rate doesn't really go up substantially at higher levels anyway.
11289  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 09:58:45 AM
I'm not sure what causes this behaviour but, repeatedly in two nights of running minerd, after some time it just produces rejected shares:

[2011-06-30 08:57:30] [607.75 | 605.73 Mhash/s] [1091 Accepted] [3890 Rejected] [0 HW errors]

EDIT: Just read you discovered that already yourself.

Yeah thanks. It's killing me trying to figure out / instrument that as well since it happens only after a long time. There is also a bug with cpu mining at the moment where block submission can cause a segfault. I spent hours and hours coding today and threw out heaps of code. Oh well, there are days like this.

Thanks to the other anonymous donor! If you make a donation and want a specific feature, feel free to drop me a line when you donate and I'll see if I can do it.
11290  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 05:51:22 AM
Temporary breakage... hold on please...

I've temporarily backed out the binary loading of kernels till I get it working properly everywhere. A couple of potential fixes have also been committed that could have caused segfaults due to memory dereferencing. It should be stable again but I still have more stuff I want to do...
11291  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 04:51:12 AM
Temporary breakage... hold on please...
11292  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 30, 2011, 12:42:05 AM
Updated tree:

Build binaries with unique filenames from the kernel generated and save them. Try to load this cached binary if it matches on next kernel instantiation. This speeds up start-up dramatically, and has a unique kernel binary for different kernel configurations.
11293  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 29, 2011, 10:51:36 PM
Thanks very much to those donating. Even tiny donations are most appreciated.

About the libcurl static thing, I had read this elsewhere, I have no real experience in the area, so there may be only some aspects of networking that cannot be compiled statically. What they are, I don't know.

I'll check out the options parsing eventually, as I do see the problem you're reporting.

There appears to be a bug where it starts rejecting all blocks after an extended period, somewhere in the order of ~2500 accepted blocks. I'm trying to investigate why that is, but it's rather hard to reproduce on my slower equipment Tongue

More improvements to come...
11294  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 29, 2011, 02:22:44 PM
Updated tree:

I put some effort into minimising the risk of rejects and cl errors and to not miss shares close to each other. I did this by creating an array for the buffer variables passed to and from the GPU to make it extremely unlikely for a race to occur over the same slot in the array. Then I scan over the entire array when it is flagged as a match being found, but it's scanned in a separate thread to not delay further work being passed to the GPU. This change should allow you to use the higher values for intensity without it increasing the reject or error rate.

In the interim I discovered a nice bug whereby there was a chance the struct with the thread id had its memory freed before an attempt was made to detach the thread with pthread_detach which would lead to a segfault.
11295  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 29, 2011, 11:12:39 AM
i tried with openssl-dev, nss-dev and also with curl from http://curl.haxx.se/download.html.
Everything works when i build minerd dynamic, but static dont wanna be so polite Smiley

You can't build a truly static build of something that sends or receives network packets, sorry.
11296  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 29, 2011, 07:29:03 AM
clGetDeviceInfo() tends to return BS sometimes Smiley Anyway, I don't think using the maximum allowed worksize is optimal as you are resource-constrained anyway. Bad thing is that it is hard to determine the optimum without experimenting with the workgroup size (starting from 32 on nvidia all the way to 512 in multiples of 32).

No of course not. I use max work size / vectors. That works surprisingly well as a default starting setting when none are chosen Smiley

So is anyone actually finding this client useful? It's getting quite mature now but apart from Burp's feedback I don't really get a sense that anyone's finding it useful. I find a huge improvement in throughput from it at intensity levels that don't affect my desktop.
11297  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 29, 2011, 12:54:33 AM
Updated tree

I've modified the log to only show the summary and not the testing information unless in debug mode. There are now counters stored to say which gpu or cpu found the share, and hw errors are stored as well. The added information can be used to determine whether to turn down intensity or to overclock less.

The output looks like this now:

[2011-06-29 10:46:19] GPU: 0 Accepted: 100 Rejected: 4 HW errors: 0
[2011-06-29 10:46:24] [230.23 | 218.86 Mhash/s] [105 Accepted] [4 Rejected] [0 HW errors]
[2011-06-29 10:46:29] [227.39 | 218.88 Mhash/s] [105 Accepted] [4 Rejected] [0 HW errors]
[2011-06-29 10:46:34] [218.19 | 218.88 Mhash/s] [105 Accepted] [4 Rejected] [0 HW errors]
[2011-06-29 10:46:40] [239.39 | 218.94 Mhash/s] [105 Accepted] [4 Rejected] [0 HW errors]
[2011-06-29 10:46:45] [230.92 | 218.97 Mhash/s] [105 Accepted] [4 Rejected] [0 HW errors]
[2011-06-29 10:46:45] GPU: 0 Accepted: 101 Rejected: 4 HW errors: 0

Also I've updated the code to not allow automatically setting work sizes greater than 512 as a simple way of preventing the nvidia bug mentioned earlier.

EDIT: I've also made the 1st rate reported (the log interval one) a decaying average so it doesn't jump around as much.
11298  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 28, 2011, 11:04:07 PM
Thanks and thanks. I wondered why they returned 1024. Looks like more phayl from nvidia with opencl Sad
11299  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 28, 2011, 10:43:30 PM
I thought you quit kernel hacking. I've compiled some of your kernels a while ago on my desktop Smiley Had no idea you are into bitcoin stuff and OpenCL. Nice Smiley
Actually I'm very new to opencl and bitcoin. Just started a week ago, and had to learn all about opencl. I've put in over a hundred hours on this code already  to get up to speed Tongue

To see what I'm doing with linux kernel, check out http://ck-hack.blogspot.com
11300  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: June 28, 2011, 08:49:38 PM
Sorry for the rude OT question but was that you that maintained the -ck tree? Smiley
Not rude at all. Yes it is me and I still do Smiley
Pages: « 1 ... 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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!