Closed drewwiley closed 6 years ago
I'm facing with the same issue on MacBook Pro (Retina, 15-inch, Early 2013) with nVidia GT650M GPU
We should be able to help each other then, hopefully. Right now, I've just resorted to CPU only mining which gives me a hash rate of about 170 h/s. This is with a 2.4 GHz i7 chip. What kind of CPU hashrates are you experiencing?
Have you ever been able to successfully get your nVidia GPU on that machine to mine monero using other software like ccminer, etc.? It hasn't wanted to play nicely with much of the mining software I've attempted to use.
on 3 threads (which were automatically configured) I'm getting ~130 H/s if I change configuration manually to 8 threads, it's down to ~100H/s
My CPU is Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz
(4 cores)
Here is cpu.txt generates:
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
]
I haven't tried to get any other miner up and running on this mac
Hmm, I have the same config but these are the specs of my CPU: Model Name: MacBook Pro Model Identifier: MacBookPro10,1 Processor Name: Intel Core i7 Processor Speed: 2.4 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 8 GB
I would have expected for you to achieve a higher hash rate.
@XMichaelMichaelX according to this site your CPU has 4 cores. try to configure it like this:
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
]
I assume that 130 H/s is when your computer is idle and only mining? That's where the 170 H/s comes from, if I were to use that it would certainly decrease 25% at minimum
I've recompiled xmr-stack
cmake -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DXMR-STAK_CURRENCY=monero -DMICROHTTPD_ENABLE=OFF -DOpenSSL_ENABLE=OFF -DCMAKE_BUILD_TYPE=Release
make
What I have noticed:
when I run miner for the first time (no configuration has been done, just letting to generate default one) at the very beginning I see few of those messages: MEMORY ALLOC FAILED: mmap failed
miner starts with following log:
-------------------------------------------------------------------
xmr-stak 2.1.0 31a0784
Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Configurable dev donation level is set to 2.0%
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
: Start mining: MONERO
: CPU configuration stored in file 'cpu.txt'
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 0.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 2.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 4.
: MEMORY ALLOC FAILED: mmap failed
: MEMORY ALLOC FAILED: mmap failed
: hwloc: set_thisthread_membind not supported
: MEMORY ALLOC FAILED: mmap failed
and I'm getting 100-110 H/s
When I stop and start miner again, I see only one message : MEMORY ALLOC FAILED: mmap failed
at the very beginning followed up by
-------------------------------------------------------------------
xmr-stak 2.1.0 31a0784
Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Configurable dev donation level is set to 2.0%
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
: Start mining: MONERO
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 0.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 2.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 4.
: hwloc: set_thisthread_membind not supported
in this set I'm achieving ~190-200 H/s
If I change cpu.txt
as @DavidBruchmann have suggested, my hash rate drops to ~160-165 H/s. When miner starts, I see 2 messages MEMORY ALLOC FAILED: mmap failed
at the top followed by
-------------------------------------------------------------------
xmr-stak 2.1.0 31a0784
Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Configurable dev donation level is set to 2.0%
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
: Start mining: MONERO
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 0.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 2.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 4.
: hwloc: set_thisthread_membind not supported
: WARNING on MacOS thread affinity is only advisory.
: Starting 1x thread, affinity: 6.
: hwloc: set_thisthread_membind not supported
: MEMORY ALLOC FAILED: mmap failed
@XMichaelMichaelX restart and try again. That can happen sometimes.
have tried. doesn't have any effect on my mac
Mhm, never have another tip - not so experienced, especially not on mac. So far you've me honest condolences :D
I will try if I can reproduce the nmap issue on a linux system. I can not check OSX.
@psychocrypt you are welcome to remote control any of my machines if you would like, my email is my name at gmail dot com if you ever need to do any mac OS testing.
Did you resolve this? I'm seeing a mmap error on CentOS 7.
I've managed to compile xmr-stak
. The issue was in the newer version of commandline tool.
In order to compile xmr-stak you'd need command line tool v8.3.2.
The issue with mmap has been solved as well.
However, I faced with the issue that running xmr-stak with both, CPU and GPU mining (I have GT 650M on my mac) gives me ~140 h/s, running it using the only CPU gives me ~190-200 h/s
Funny fact: I've been trying to compile it on ubuntu 16.04 from the same directory where the source code is and was facing with mmap issue. But when I've created 'build' folder and have compiled it from there - had no issues.
Basic steps to compile successfully:
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
cd xmr-stak/build
cmake ..
make
@drewwiley I have the same exact macbook pro Mid-2015 (DG) as you and honestly I found that doing CPU only mining with optimized settings yields FAR better results than GPU + CPU mining.
I know its a bit counter-intuitive but b/c of our unique 128MB L4 cache we can implement the awesome contribution by @grzegorzszczecin which allows us to use up to 5 times the cache PER thread.
Check out my results I posted towards the end of the pull request below. Believe it or not, I've refined it a bit more since then. plus i cleaned out the heatpipe, fan and cleaned & reapplied with Thermal Paste... Now I'm getting 630 h/s MINIMUM
Let me know if you need any help. I'll do what I can.
Thank you so much, Iโll check it all out and see what I can do. Iโve all ready seen great improvements with some of your suggestions. I may be in touch further if thatโs ok.
Sent from my iPhone
On Dec 17, 2017, at 7:31 PM, JoKeRz42o notifications@github.com wrote:
@drewwiley I have the same exact macbook pro Mid-2015 (DG) as you and honestly I found that doing CPU only mining with optimized settings yields FAR better results than GPU + CPU mining.
I know its a bit counter-intuitive but b/c of our unique 128MB L4 cache we can implement the awesome contribution by @grzegorzszczecin which allows us to use up to 5 times the cache PER thread.
Check out my results I posted towards the end of the pull request below. Believe it or not, I've refined it a bit more since then. plus i cleaned out the heatpipe, fan and cleaned & reapplied with Thermal Paste... Now I'm getting 630 h/s MINIMUM
Let me know if you need any help. I'll do what I can.
168
โ You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I apologize for opening a second thread on the troubles I'm having but I intend to provide far more information/detail and hopefully I can resolve some of this stuff with the help of you kind folks. I would also be more than willing to let a main dev (psychocrypt or fireice-uk) have access to my machines to play around with if they need. I have three macs I'm trying to get xmr-stak working on, both GPU and CPU mining. Two are macbook pros, one AMD and one nvidia. In addition, I have an iMac (AMD). I will organize this post into the three different machines and their individual issues. NOTE: I am using the xmr-stak-dev branch for all of these machines, it was recommended to me by psychocrypt to use the dev branch for the AMD macs.
TL;DR (at the top because I know few will read all of this) My issues are: 1) on my AMD macbook pro, when I mine with GPU+ CPU, I end up with worse performance than CPU alone. What might be causing this? Does anyone have a potential solution? 2) on my nvidia macbook pro, I am unable to build xmr-stak entirely anymore. At one point, I was able to. 3) on my AMD iMac, I get many AMD Invalid Result Errors, like maybe half of the GPU submissions are rejected. What might be causing this and potential fixes? Thanks so much Here are the details:
MacBook Pro (Retina, 15-inch, Mid 2015) with AMD Radeon R9 M370X
Basic Information
Hardware Overview:
Model Name: MacBook Pro (Retina, 15-inch, Mid 2015)
Model Identifier: MacBookPro11,5 Processor Name: Intel Core i7 Processor Speed: 2.5 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 16 GB
Intel Iris Pro:
Chipset Model: Intel Iris Pro Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB Vendor: Intel Device ID: 0x0d26 Revision ID: 0x0008 Automatic Graphics Switching: Supported gMux Version: 4.0.20 [3.2.8] Metal: Supported, feature set macOS GPUFamily1 v3
AMD Radeon R9 M370X:
Chipset Model: AMD Radeon R9 M370X Type: GPU Bus: PCIe PCIe Lane Width: x8 VRAM (Total): 2 GB Vendor: AMD (0x1002) Device ID: 0x6821 Revision ID: 0x0083 ROM Revision: 113-C5670E-945 VBIOS Version: 113-C567A1-006 EFI Driver Version: 01.00.945 Automatic Graphics Switching: Supported gMux Version: 4.0.20 [3.2.8] Metal: Supported, feature set macOS GPUFamily1 v3
Compile issues
add all commands you used and the full compile output here
brew link git
brew prune
brew doctor
brew link git
brew link --overwrite git
sudo xcode-select --install
brew update
brew install gcc
brew install gcc6
brew install cmake openssl hwloc libmicrohttpd
brew upgrade cmake openssl hwloc libmicrohttpd
brew upgrade gcc6
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DUCA_ENABLE=OFF
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF
make install
run
cmake -LA .
in the build folder and add the output hereIssue with the execution
./xmr-stak --version-long
and add the output hereAMD OpenCl issue
run clinfo and paste the output here
Stability issue
Summary of Issue with this mac
Essentially my only issue on this macbook pro is that my combined GPU and CPU speeds end up being slower than my typical CPU alone speeds using xmr-stak-cpu. It starts out pretty nice...
but within a few minutes
MacBook Pro (Retina, 15-inch, Early 2013) with nVidia GT650M GPU
Basic information
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro10,1 Processor Name: Intel Core i7 Processor Speed: 2.4 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 8 GB Boot ROM Version: MBP101.00F2.B00 SMC Version (system): 2.3f36
Intel HD Graphics 4000:
Chipset Model: Intel HD Graphics 4000 Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB Vendor: Intel Device ID: 0x0166 Revision ID: 0x0009 Automatic Graphics Switching: Supported gMux Version: 3.2.19 [3.2.8] Metal: Supported, feature set macOS GPUFamily1 v3
NVIDIA GeForce GT 650M:
Chipset Model: NVIDIA GeForce GT 650M Type: GPU Bus: PCIe PCIe Lane Width: x8 VRAM (Total): 1 GB Vendor: NVIDIA (0x10de) Device ID: 0x0fd5 Revision ID: 0x00a2 ROM Revision: 3688 Automatic Graphics Switching: Supported gMux Version: 3.2.19 [3.2.8] Metal: Supported, feature set macOS GPUFamily1 v3
GPU Web Driver Version: 378.10.10.10.25.102 (Up to date) CUDA Driver Version: 387.99 (Up to date)
Compile issues
add all commands you used and the full compile output here
brew upgrade
brew prune
brew doctor
cd /xmr-stak-dev
mkdir build
cd build
cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
make install
cmake . -DCUDA_ARCH=20
make install
and when I attempt to install using clang, I get this:
run
cmake -LA .
in the build folder and add the output hereIssue with the execution
Unable to execute on only this machine due to inability to finish installation.
./xmr-stak --version-long
and add the output here./xmr-stak --version-long
Version: xmr-stak/2.1.0/b6d319e/unknown/mac/nvidia-amd-cpu/aeon-monero/0AMD OpenCl issue
Not Applicable for nvidia macbook
Stability issue
Summary of Issue with this mac
The issue I'm having with this machine is that I am not able to successfully build xmr-stak. At one point I was, but it was unable to locate to nVidia GPU.
iMac (Retina 5K, Late 2014) with AMD Radeon R9 M290X
Basic Information
Hardware Overview:
Model Name: iMac
Model Identifier: iMac15,1 Processor Name: Intel Core i5 Processor Speed: 3.5 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 8 GB
AMD Radeon R9 M290X:
Chipset Model: AMD Radeon R9 M290X Type: GPU Bus: PCIe PCIe Lane Width: x16 VRAM (Total): 2 GB Vendor: AMD (0x1002) Device ID: 0x6810 Revision ID: 0x0000 ROM Revision: 113-C408A0-730 VBIOS Version: 113-C408A0-017 EFI Driver Version: 01.00.730 Metal: Supported, feature set macOS GPUFamily1 v3
Compile issues
add all commands you used and the full compile output here
run
cmake -LA .
in the build folder and add the output hereIssue with the execution
Unable to execute on only this machine due to inability to finish installation.
./xmr-stak --version-long
and add the output here./xmr-stak --version-long
Version: xmr-stak/2.1.0/b6d319e/unknown/mac/nvidia-amd-cpu/aeon-monero/0AMD OpenCl issue
run
clinfo
and add the output hereSettings
CPU Settings
Stability issue
Summary of Issue with this mac
The issue I'm having with this machine is that I get a consistent error rate in the range of 40-50% of my GPU submitted results. The error shown is simply "AMD Invalid Result". For instance: