fireice-uk / xmr-stak-cpu

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

CPU mining performance - Dual X5650** - 466 H/s #136

Open Quietstorm247 opened 7 years ago

Quietstorm247 commented 7 years ago

Hello team,

Do you know why I can't get this same performance with my server with the above Dual X5650 and 24MB RAM while using xmr-stak-cpu?

When I press the h key, I got: Totals: 82.1 82.5 81.6 H/s Highest: 84.9 H/s is that normal?

below is my configuration:

/*

/*

/*

/*

/*

/*

/*

/*

/*

/*

/*

/*

Quietstorm247 commented 7 years ago

PS. I am running windows server 2012

fireice-uk commented 7 years ago

You are only running two threads, you can easily run 12 threads on your setup. Autoconfig doesn't support multi-cpu systems yet.

Quietstorm247 commented 7 years ago

How I can use 12 threads? What configuration should I use?

psychocrypt commented 7 years ago

Please use the latest release and start your miner with the default config.txt. The auto sugestion will show you a config for 6 threads. Copy past this config to config.txt. Than double the core lines and multiply the afine values by two for the secound block of the six threads.

Quietstorm247 commented 7 years ago

Thanks for the feedback but I am very new on this. What is the name of the containing the 6 threads config? can you please give me an example of the coding ?

Quietstorm247 commented 7 years ago

I have performed the below configuration and it was increased to 224.9 H/s

should I go above 12 threads ?

"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 7 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 }, ],

itdaniher commented 7 years ago

Try it and find out!

xmrig commented 7 years ago

12 threads (6 for each cpu) is optimal, 11 or 10 may be fine too. What operation system do you use? HT enabled? You can simple disable CPU affinity for test "affine_to_cpu" : false

Quietstorm247 commented 7 years ago

@itdaniher, I kept it { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },

@xmrig, I am using win server 2012 and I think HT is enabled cause it told me that I have 2 times that I have 6 Cores and 12 Logical Processors as follows:

C:\Users\Quietstorm>wmic wmic:root\cli>cpu Get NumberOfCores,NumberOfLogicalProcessors /Format:List

NumberOfCores=6 NumberOfLogicalProcessors=12

NumberOfCores=6 NumberOfLogicalProcessors=12

wmic:root\cli>exit

ac0rnsoup commented 7 years ago

@Quietstorm247

As @xmrig pointed out, you want to try 12 threads total, the config you posted has 13 total (0 through 12) and will definitely decrease performance on your second CPU.

On windows, you want to go every other CPU core to avoid hyperthreading. So affine to CPU cores 0,2,4,6,8,10,12,14,16,18,20,22

I also find that not maxing out my L3 cache works better sometimes, so compare that to 10 threads with CPU cores 0,2,4,6,8,12,14,16,18,20 and see which performs better.

If you were on linux, you'd want the CPU cores listed sequentially as you have them (minus the one extra thread at the end).

Quietstorm247 commented 7 years ago

@xmrig Thanks for the suggestion. I have tried both configurations the 0-20 and 0-22. However, my hashrate report is showing a lower performance (264h/s). Meanwhile I had 312 h/s with the previous 0,1,2...14.

Any suggestions to reach 466h/s ?

Quietstorm247 commented 7 years ago

@xmrig Please disregards the previous post. I rebooted the server and use configuration 0-22. As a result, the hashrate report is now 459.6 H/s.

Thanks for your support.

psychocrypt commented 7 years ago

@Quietstorm247 If you compile the current dev and hwloc is installed (see README.md) the miner will create a suggestion for your system and takes care if the native cores has even or odd id's. This suggestion is in the most cases optimal and will give you the max hash rate.

Quietstorm247 commented 7 years ago

@psychocrypt How i can install hwloc. I am running windows server 2012. I have downloaded the windows 64 bit, which contain a bin folder but i do not know where to go from there

fireice-uk commented 7 years ago

@Quietstorm247 The release will have it built in. I compile it from source on Windows.

Quietstorm247 commented 7 years ago

@fireice-uk My hashrate is now 473.5 H/s. Is it ok for my system or i can have a much higher hashrate?

Quietstorm247 commented 7 years ago

As agreed, please mark this issue as resolved. Hashrate will not go above 481.7H/s

StanislavNikolov commented 7 years ago

Some people are able to push 420h/s with one cpu, although with a different miner. I expect that 700+h/s with xmr-stak-cpu with 2 CPUs should be possible.

Quietstorm247 commented 7 years ago

Hello Stanislav,

The compiler is showing a 484.1 h/s. However, the API is showing this.

[cid:8a8faea4-5bed-4ea6-bd26-3daae5592003]


From: Stanislav Nikolov notifications@github.com Sent: Thursday, July 20, 2017 7:32 AM To: fireice-uk/xmr-stak-cpu Cc: Quietstorm247; Mention Subject: Re: [fireice-uk/xmr-stak-cpu] CPU mining performance - Dual X5650** - 466 H/s (#136)

Some people are able to push 420h/s with one cpu, although with a different miner. I expect that 700+h/s with xmr-stak-cpu with 2 CPUs should be possible.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/fireice-uk/xmr-stak-cpu/issues/136#issuecomment-316676351, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbmamU6fzIhsmaAmEyzOgY3ya0wvSL3kks5sPzrIgaJpZM4Nt2ON.

StanislavNikolov commented 7 years ago

Mine came a few hours ago and on arch linux with no gui runs at 480h/s.

Quietstorm247 commented 7 years ago

Hello Stan,

Mine is running now at 487.2 h/s. Thanks for follow up

PanamaMike commented 6 years ago

How much power are you guys drawing from the wall to get 466h/s? Do you have any suggestions for how to optimize/reduce the power consumption?

StanislavNikolov commented 6 years ago

230 W with 6 sticks of RAM and a hard drive. Remove as much unused hardware as possible and maybe you can get it below 210.

On 22 Sep 2017 5:57 pm, "PanamaMike" notifications@github.com wrote:

How much power are you guys drawing from the wall to get 466h/s? Do you have any suggestions for how to optimize/reduce the power consumption?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/136#issuecomment-331470980, or mute the thread https://github.com/notifications/unsubscribe-auth/AJy2eLl7nLlfChTMdXrs5ieQMtMyhRnCks5sk8rngaJpZM4Nt2ON .

PanamaMike commented 6 years ago

That's pretty close to what I'm getting. 260 W. 6 sticks of ram and a hard drive. Was surprised to see the amount of power draw. What system are you running?

StanislavNikolov commented 6 years ago

System as in operating system? Arch linux

lotrjoel commented 6 years ago

Hi I'm using an IBM server with 2 X5650's, for some reason the miner says it doesn't have AES. I had no issue when I used a HP rack server with the same processors. Do you have any idea why that is?

StanislavNikolov commented 6 years ago

Check the bios for disables features, start the miner with force-AES

On 20 Dec 2017 4:10 am, "lotrjoel" notifications@github.com wrote:

Hi I'm using an IBM server with 2 X5650's, for some reason the miner says it doesn't have AES. I had no issue when I used a HP rack server with the same processors. Do you have any idea why that is?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/136#issuecomment-352944211, or mute the thread https://github.com/notifications/unsubscribe-auth/AJy2eBcDDO46ohWISXsUlwC-MvKwlqqNks5tCGx7gaJpZM4Nt2ON .

Rosofeno commented 6 years ago

Hi, I'm using a server with 2 X5650's running xmr-stak on Ubuntu 17.10. I read on monerobenchmark that is possible to get about 700 h/s setting Arch Linux with no gui. What I have to do? Is it possible to install Arch Linux on Ubuntu? Thanks

psychocrypt commented 6 years ago

cud arch is a linux distributen like ubuntu. this will not increase you hash rate. keep care that other hash rates are only a hint what you system can reach. There are a lot of metrics which are missing. e.g. overclocked system, cooling and RAM speed.