Bitcoin Forum
April 27, 2024, 12:45:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [PULL] remove 4way SSE2 miner algorithm  (Read 4792 times)
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
April 03, 2011, 06:28:22 PM
 #1


URL: https://github.com/bitcoin/bitcoin/pull/141

Description:

While there is no hard consensus on what to do with CPU mining inside bitcoin, in general, I think most people will agree that 4way can go.

This implementation (with performance enhancements) lives on in cpuminer. bitcoin's 4way was only available on *nix, while cpuminer's 4way works on Windows and Linux.

I conclude that, if you are really serious about CPU mining, you are more likely to use ufasoft's CPU miner, or mine, and so we don't need multiple implementations inside bitcoin.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714178725
Hero Member
*
Offline Offline

Posts: 1714178725

View Profile Personal Message (Offline)

Ignore
1714178725
Reply with quote  #2

1714178725
Report to moderator
1714178725
Hero Member
*
Offline Offline

Posts: 1714178725

View Profile Personal Message (Offline)

Ignore
1714178725
Reply with quote  #2

1714178725
Report to moderator
adv
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
April 03, 2011, 11:22:27 PM
Last edit: April 04, 2011, 03:35:32 AM by adv
 #2

Oh yeah! The beginning of a long way for cleaning Bitcoin source from useless garbage.

U may thank me here: 14Js1ng1SvYBPgUJnjNAEPYH4d6SHF79UF
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
April 03, 2011, 11:36:21 PM
 #3

This looks like just the first step in removing CPU mining entirely. At the least, it makes CPU mining even worse than it already is, which is just about exactly the opposite of what I think should be done.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
April 04, 2011, 12:31:23 AM
 #4

This looks like just the first step in removing CPU mining entirely. At the least, it makes CPU mining even worse than it already is, which is just about exactly the opposite of what I think should be done.

Most people are divided between removing CPU mining entirely, or leaving in a simple reference miner that is hidden from normal users.

Either way, 4way is superfluous.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
April 04, 2011, 12:38:37 AM
 #5

This looks like just the first step in removing CPU mining entirely. At the least, it makes CPU mining even worse than it already is, which is just about exactly the opposite of what I think should be done.

Most people are divided between removing CPU mining entirely, or leaving in a simple reference miner that is hidden from normal users.

Either way, 4way is superfluous.

I dunno, I'd be disappointed to see it go. Every single block I've ever generated solo came from that 4way CPU miner. Hiding the miner I'll go for, since it's not very useful with today's high difficulties. But intentionally making it even less useful? This seems pointless.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
April 04, 2011, 12:49:14 AM
 #6

I dunno, I'd be disappointed to see it go. Every single block I've ever generated solo came from that 4way CPU miner. Hiding the miner I'll go for, since it's not very useful with today's high difficulties. But intentionally making it even less useful? This seems pointless.

The same algo is available elsewhere on more platforms, with more performance.  The bitcoin codebase lost the CPU mining competition long ago.  It's even more pointless to use either algo for CPU mining.

The only question is whether or not to retain one miner as a reference implementation (IMO, yes) or remove all CPU mining code.  And the reference implementation should lean towards readability, rather than super-optimization.  ScanHash_CryptoPP() is pretty darn straightforward.

Removing 4way from bitcoin.git largely costs us nostalgia, as you point out Smiley


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
April 04, 2011, 12:50:25 AM
 #7

Maybe leave it as a reference optimization? Grin

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
adv
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
April 04, 2011, 03:33:38 AM
 #8

Maybe leave it as a reference optimization? Grin
4way -- it is not optimization AFAIK. This is specialization only for one of the many existing CPUs.

U may thank me here: 14Js1ng1SvYBPgUJnjNAEPYH4d6SHF79UF
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
May 02, 2011, 09:03:25 PM
 #9

The only reasons i see for keeping a CPU miner in the main client, are:
  • A reference implementation for educational purposes
  • A very easy way to generate coins on testnet (but not very quickly)

I'm in favor of moving all CPU mining code to eventually having a separately distributed reference RPC miner, but meanwhile, the main client shouldn't carry optimization attempts - there is competition out there even between CPU-only miners, and they are better at it.

I do Bitcoin stuff.
gjs278
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
May 02, 2011, 09:07:24 PM
 #10

remove cpu mining.
jimbobway
Legendary
*
Offline Offline

Activity: 1304
Merit: 1014



View Profile
May 02, 2011, 09:14:27 PM
 #11

What if a normal user decides he wants to join the bitcoin lottery?  Chances will be low but if he/she finds a 50 BTC block then it's rags to riches.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
May 02, 2011, 09:33:31 PM
 #12

What if a normal user decides he wants to join the bitcoin lottery?  Chances will be low but if he/she finds a 50 BTC block then it's rags to riches.

There are separate programs that are much better at this, they support pool mining and are more efficient. If he really wants to join the lottery, he can do so doing those too, but at least he won't be assuming that he'll make money if he lets his computer run for a few hours.

I do Bitcoin stuff.
citizen
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
May 03, 2011, 07:08:59 PM
 #13

+1 for removing CPU mining from the client entirely.  Having a separate RPC miner is a better idea, with some documentation that explains that CPU mining is not very effective at all.
xf2_org
Member
**
Offline Offline

Activity: 98
Merit: 13


View Profile
May 06, 2011, 12:08:34 PM
 #14

Merged into upstream.
HostFat
Staff
Legendary
*
Offline Offline

Activity: 4214
Merit: 1203


I support freedom of choice


View Profile WWW
May 06, 2011, 01:22:06 PM
 #15

Can you export it so it will be like a plug-in?

NON DO ASSISTENZA PRIVATA - http://hostfatmind.com
xf2_org
Member
**
Offline Offline

Activity: 98
Merit: 13


View Profile
May 06, 2011, 01:25:21 PM
 #16

Can you export it so it will be like a plug-in?

See above discussion.  There are better, faster CPU miners external to the bitcoin client.  See the cpuminer thread or the ufasoft thread for such miners. 

cpuminer includes the 4way algorithm just removed from bitcoin.
Pages: [1]
  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!