fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

Optimization for AMD Threadripper 1950X #299

Open kimpurcell opened 7 years ago

kimpurcell commented 7 years ago

Hi, could you optimize the code for the AMD 1950X? It has 8MB L2 and 32MB L3. Is there a setting we can tweak to cater to the bigger L2?

Thanks.

kimpurcell commented 6 years ago

How much power is my CPU really using? I mean, CPU Package Power says 135W, but I thought 1950x on full load runs at 180W ?

image

kimpurcell commented 6 years ago

Does RAM speed even matter for xmr-stak monero mining? I mean, the samsung b.die memory prices are going through the roof! I'm contemplating keeping my 2400mhz vs getting 3600mhz memory kits for $100-$200 more.

peterjenner commented 6 years ago

@kimpurcell I really don't think ram speed makes any difference. I just changed my ram xmp profile from 3066 Mhz to 3200 Mhz (It's rated maximum) and the hash rate stayed the same. I'm clueless re the power usage question.

psychocrypt commented 6 years ago

The main memory speed should have only a very very small effect. All the memory during the hashing is within the cach of the cpu.

Bewinxed commented 6 years ago

Just an Update, I’m running 3950 on the clock with 1.35 voltage and getting 50c with 1389H on XMR-Stak

I’m using a Noctua Fan cooler, All seems well.

I’m reading the temps from the ryzen master app, other apps might have a +27c offset, I’m using g.skill TridentZ modules with a Taichi Board.

Sent from Mail for Windows 10

From: psychocrypt Sent: Monday, November 6, 2017 7:42 AM To: fireice-uk/xmr-stak-cpu Cc: Bewinxed; Mention Subject: Re: [fireice-uk/xmr-stak-cpu] Optimization for AMD Threadripper 1950X(#299)

The main memory speed should have only a very very small effect. All the memory during the hashing is within the cach of the cpu.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kimpurcell commented 6 years ago

@Bewinxed are you using a special cooling case? 50c on Ryzen Master for 1.35v is really low. Mine is running about 64c with the corsair h105 on an open air setup (no case). Fans are running at full speed. It was at 55c when I used arctic silver. Cleaned it with arctic silver clean and applied the arctic mx-4 instead. temperature got worse. maybe I'll try the noctua thermal paste.

alexmouris commented 6 years ago

Hi all. Just bought a 1950x and did the proper optimization tests. took me 72 hours but here are my results for reference my board is the gigabyte x399 aorus gaming Here are the steps to ensure best hashing 1)set cores 0-2-4-...-30 2)1.3750volt 4.1ghz 1380 hash/s on dual channel (dimm 1 and 3 counting from the right side) Now the voltage and frequency will vary per cpu but i would recommend a 3.9 or 4.0 overclock on all cores 3)If u have a single stick of memory you can hash with 12 cores only(0-2-4-6-8-10-12-14-16-18-20-22). otherwise if you set 16 cores, hash drops to <200 hash/s 4)With proper quad channel memory you will get 4-8 % improvement. Mine got to 1460 hash/s Bonus tip: You can use 1 stick of memory and still game on the computer at the same time. Recommended cores for hashing are (8-10-12-14-16-18-20-22-24-26-28-30) This way you can stable hash while gaming provided you have enough memory (1x16gb stick for example) Setting custom game affinity on cores 0-7 can go a long way depending on the game