Bitcoin Forum
May 07, 2024, 03:26:21 AM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest Bitcoin Core release:
27.0
[
Torrent
]
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Other
>
Beginners & Help
>
3% faster mining with phoenix+phatk for everyone
Pages: [
1
]
2
3
4
5
6
7
8
9
»
All
« previous topic
next topic »
Print
Author
Topic: 3% faster mining with phoenix+phatk for everyone (Read 36831 times)
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
3% faster mining with phoenix+phatk for everyone
June 26, 2011, 11:21:29 PM
Last edit: June 27, 2011, 06:52:53 PM by bitless
#1
I just tried this and got >3% improvement in mining speed. On my 6870, I was getting 299 MHash/sec, and now I'm getting 308 or so. The change is simple enough for anyone to do it - you don't need to be a programmer to use it.
EDIT - Thank you! This has been added to git (not by me), so now everyone can use this speed-up without editing any files.
https://github.com/m0mchil/poclbm/commit/3d43c4e4c2c476cf367822868202f02d168d6f3b
Also, please read the comments here
http://www.reddit.com/r/Bitcoin/comments/i9yba/2_3_increase_in_mining_per_gpu/
; the person who added it to git knows more than I do, you should listen to him about SDK versions etc. Thanks for all the donations too!
EDIT2 - Thanks to the awesomeness of reddit and these forums, I now know that this change has been applied to Diablo miner as well.
https://github.com/Diablo-D3/DiabloMiner/commit/ae16718dfa538aeef31f34e19542f3c18501efe5
I guess we can stop this thread now, and everyone can enjoy the speedup without editing any files. Thank you for trying this out.
You can go to phatk's kernel.cl file (don't worry, it just sits there in the open, no need to recompile anything), find this line
#define Ma(x, y, z) amd_bytealign((y), (x | z), (z & x))
and change it to this line
#define Ma(x, y, z) amd_bytealign( (z^x), (y), (x) )
Once you've done it, restart the miner.
Technically, this is 1 less instruction for the Maj function in the hash, which is called ~128 times for each nonce value, so we get +3% to mining speed. This will ONLY WORK if you're running with BFI_INT. I'm using phoenix with phatk kernel on Ubuntu, so YMMV, but I see no reason for this to not work with other setups. As always, do play around with aggression and other settings after you've applied the change. Deepbit seems to be accepting my shares generated this way, but it comes AS IS, without any warranty whatsoever - if it doesn't work for you, or has been posted already, please don't blame me
If this helps you mine faster, please share your MHash/sec results, before and after. You can also donate to 15igh5HkCXwvvan4aiPYSYZwJZbHxGBYwB . I hear people are getting 50 BTC for things like this, and it would be nice to get some.
If you want to verify the correctness of the change, here's the truth table for the new Ma() function
x y z Ma
0 0 0 0
1 0 0 0
0 1 0 0
1 1 0 1
0 0 1 0
1 0 1 1
0 1 1 1
1 1 1 1
and here's C code that was used to generate it
#include <stdio.h>
int main()
{
#define CH(src0,src1,src2) ( ((src1)&(src0)) | ((src2)&~(src0)) )
unsigned int x,y,z;
for(z=0;z<=1;z++) for(y=0;y<=1;y++) for(x=0;x<=1;x++)
{
printf("%d %d %d %d\n",x,y,z, CH(z^x,y,x) );
}
return 0;
}
Finally, I am newbie, so it would be nice if someone reposted this to the proper Bitcoin mining thread/board and/or checked-in this change into the source control.
Thanks and have fun!
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
burger
Full Member
Offline
Activity: 195
Merit: 100
Re: 3% faster mining with phoenix+phatk for everyone
June 26, 2011, 11:28:43 PM
#2
Very nice!
Thanx for sharing.
http://www.minerwars.com/?aid=49326
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 26, 2011, 11:47:54 PM
#3
Quote from: burger on June 26, 2011, 11:28:43 PM
Very nice!
Thanx for sharing.
You're welcome. Did it help you? I wanna know because nobody but me has tried it so far... so I wanna know if it works for other people
willphase
Hero Member
Offline
Activity: 767
Merit: 500
Re: 3% faster mining with phoenix+phatk for everyone
June 26, 2011, 11:55:37 PM
#4
Worked for me - boosted around 2%. Very impressive. Where can I send donation?
Will
firstbits.com/?a=1b1tcoin
|
LetsDice
(referral link) |
Just-Dice
CEX
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:03:22 AM
#5
Quote from: willphase on June 26, 2011, 11:55:37 PM
Worked for me - boosted around 2%. Very impressive. Where can I send donation?
Will
Yay!
Donate to 15igh5HkCXwvvan4aiPYSYZwJZbHxGBYwB if you feel like it. Your BTCs will (or may) help develop an even faster miner.
willphase
Hero Member
Offline
Activity: 767
Merit: 500
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:11:48 AM
#6
Quote from: bitless on June 27, 2011, 12:03:22 AM
Quote from: willphase on June 26, 2011, 11:55:37 PM
Worked for me - boosted around 2%. Very impressive. Where can I send donation?
Will
Yay!
Donate to 15igh5HkCXwvvan4aiPYSYZwJZbHxGBYwB if you feel like it. Your BTCs will (or may) help develop an even faster miner.
Exact results, on my 2x5870 (each one overclocked slightly differently due to temperature profiles)
1st - 422.13 -> 430.25 (1.9% increase)
2nd - 411.80 -> 422.13 (2.5% increase)
so around 2% increase.
Will
firstbits.com/?a=1b1tcoin
|
LetsDice
(referral link) |
Just-Dice
CEX
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:19:08 AM
#7
Quote from: willphase on June 27, 2011, 12:11:48 AM
Quote from: bitless on June 27, 2011, 12:03:22 AM
Quote from: willphase on June 26, 2011, 11:55:37 PM
Worked for me - boosted around 2%. Very impressive. Where can I send donation?
Will
Yay!
Donate to 15igh5HkCXwvvan4aiPYSYZwJZbHxGBYwB if you feel like it. Your BTCs will (or may) help develop an even faster miner.
Exact results, on my 2x5870 (each one overclocked slightly differently due to temperature profiles)
1st - 422.13 -> 430.25 (1.9% increase)
2nd - 411.80 -> 422.13 (2.5% increase)
so around 2% increase.
Will
Excellent, thanks for the info... now it is back to the drawing board to me, I'll poke around and see if there's any other easy changes that can speed things up - so far everything I see will require a massive rewrite of the miner but ok, we'll see
bcforum
Full Member
Offline
Activity: 140
Merit: 100
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:29:19 AM
#8
FYI, You can make the identical change to phoenix+poclbm with the same 2% increase in speed.
If you found this post useful, feel free to share the wealth: 1E35gTBmJzPNJ3v72DX4wu4YtvHTWqNRbM
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:43:36 AM
#9
Quote from: bcforum on June 27, 2011, 12:29:19 AM
FYI, You can make the identical change to phoenix+poclbm with the same 2% increase in speed.
Cool, thanks for trying it out! I figured the same logic of using BFI_INT to build the MAJ function would apply to other miners and kernels as well, I just haven't tried it, so thanks for trying it out
BiggieJohn
Member
Offline
Activity: 70
Merit: 10
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 12:59:38 AM
#10
Thank you
donation will be coming you way
PMC-1A11eCF2Rzqzy4PCrV9jabYv1fvYfmN2yc
Doge-D8KLtphcSB3qAkfjBdvceEMj9TJUiJrFd3
hart
Newbie
Offline
Activity: 14
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 01:06:42 AM
#11
4.53% increase here. Thanks!
USSJoin
Newbie
Offline
Activity: 6
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 01:43:45 AM
#12
188.2 to 192.1 MHash/sec, so almost 2.1% increase-- thanks!
mike678
Full Member
Offline
Activity: 182
Merit: 100
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 01:52:04 AM
#13
Went from ~241 to ~248 thanks.
xjosx
Newbie
Offline
Activity: 33
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 01:52:19 AM
#14
Quote from: bcforum on June 27, 2011, 12:29:19 AM
FYI, You can make the identical change to phoenix+poclbm with the same 2% increase in speed.
Not getting those speed increases w/poclbm-gui running an opencl miner. Still around 686 Mhash/s for me.
coinmonger
Newbie
Offline
Activity: 3
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 02:08:58 AM
#15
Thanks, Went from 288.8Mhash/sec to 295.96, 2.48% increase on all 3 5830's.
huanix
Member
Offline
Activity: 71
Merit: 10
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 02:39:41 AM
#16
Thanks bitless - i went from 296 to 303 on my 5830's. Sent you a nickel and encouraged others on reddit to do the same!
sabe
Newbie
Offline
Activity: 55
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 03:32:26 AM
#17
303 -> 309 for each 5830, 2% as advertised!
fitty
Hero Member
Offline
Activity: 728
Merit: 501
CryptoTalk.Org - Get Paid for every Post!
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 03:51:00 AM
#18
Quote from: xjosx on June 27, 2011, 01:52:19 AM
Quote from: bcforum on June 27, 2011, 12:29:19 AM
FYI, You can make the identical change to phoenix+poclbm with the same 2% increase in speed.
Not getting those speed increases w/poclbm-gui running an opencl miner. Still around 686 Mhash/s for me.
You need to edit BitcoinMiner.cl in the guiminer folder. It works as advertised. Donation coming. =)
. ██████████.
.████████████████.
.██████████████████████.
-█████████████████████████████
.██████████████████████████████████.
-█████████████████████████████████████████
-███████████████████████████████████████████████
.-█████████████████████████████████████████████████████.
.████████████████████████████████████████████████████████████
.██████████████████████████████████████████████████████████████.
.██████████████████████████████████████████████████████████████.
..████████████████████████████████████████████████████████████..
. .██████████████████████████████████████████████████████.
. .████████████████████████████████████████████████.
. .
██████████████████████████████████████████████
. ████
██████████████████████████████████████████████
████
.██████████
██████████████████████████████████████████
█████████.
.████████████
████████████████████████████████████
███████████
.█████████████
█████████████████████████████
███████████
.████████████
███████████████████████
█████████████
████████████
█████████████████
███████████
█████████████
█████████
████████████
██████████████████████████
████████████████████
████████████████
█████████
.
C
r
y
p
t
o
T
a
l
k
.
o
r
g
.
|
.
M
A
K
E
P
O
S
T
S
A
N
D
E
A
R
N
B
T
C
!
.
🏆
murfshake
Member
Offline
Activity: 84
Merit: 10
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 03:51:46 AM
#19
Thanks, from 292 to 295.
bitless
(OP)
Newbie
Offline
Activity: 28
Merit: 0
Re: 3% faster mining with phoenix+phatk for everyone
June 27, 2011, 04:12:09 AM
#20
Everybody, thanks for trying this out. I guess it really does work for other people. Keep donating, I like it
Now that we know it works, it would be great to check this change into the source code repository somewhere so that everyone gets this change by default, without having to manually edit any files. How is this done? Also, how do I post into the non-newbie thread? I feel that this post it doesn't belong here.
Pages: [
1
]
2
3
4
5
6
7
8
9
»
All
Print
Bitcoin Forum
>
Other
>
Beginners & Help
>
3% faster mining with phoenix+phatk for everyone
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...