domingo, abril 22, 2018

XMR-stak Benchmarking results XPS 13 9365 running Ubuntu 18.04


Here the latest benchmarking results mining monero7 with xmr-stak 2.4.2.

My configuration:

- Laptop Dell XPS 13 9365, CPU i7-7Y75@1.3 Ghz, turbo mode up to 3.6 Ghz.
- Ubuntu 18.04 (kernel 4.16.3)
- xmr-stak 2.4.2 with cpu configuration by default (1 thread per core)



Result 1
- Governor: powersave
- Scaling settings: High performance (min cpu speed: 50%, max: 100%)

[2018-04-22 18:04:25] : Mining coin: monero7
!!!! Doing only a benchmark and exiting. To mine, remove the '--benchmark' option. !!!!
[2018-04-22 18:04:25] : Prepare benchmark for block version 0
[2018-04-22 18:04:25] : Starting 1x thread, affinity: 0.
[2018-04-22 18:04:25] : hwloc: memory pinned
[2018-04-22 18:04:25] : Starting 1x thread, affinity: 1.
[2018-04-22 18:04:25] : MEMORY ALLOC FAILED: mmap failed
[2018-04-22 18:04:25] : hwloc: memory pinned
[2018-04-22 18:04:25] : Wait 30 sec until all backends are initialized
[2018-04-22 18:04:25] : MEMORY ALLOC FAILED: mmap failed
[2018-04-22 18:04:55] : Start a 60 second benchmark...
[2018-04-22 18:05:55] : Benchmark Thread 0 cpu: 25.7 H/S
[2018-04-22 18:05:55] : Benchmark Thread 1 cpu: 26.7 H/S
[2018-04-22 18:05:55] : Benchmark Total: 52.4 H/S


Result 2 without huge pages enabled.

- Governor: performance
- Scaling settings: High performance (min cpu speed: 50%, max: 100%)

[2018-04-22 16:52:56] : Mining coin: monero7
!!!! Doing only a benchmark and exiting. To mine, remove the '--benchmark' option. !!!!
[2018-04-22 16:52:56] : Prepare benchmark for block version 0
[2018-04-22 16:52:56] : Starting 1x thread, affinity: 0.
[2018-04-22 16:52:56] : hwloc: memory pinned
[2018-04-22 16:52:56] : Starting 1x thread, affinity: 1.
[2018-04-22 16:52:56] : MEMORY ALLOC FAILED: mmap failed
[2018-04-22 16:52:56] : hwloc: memory pinned
[2018-04-22 16:52:56] : Wait 30 sec until all backends are initialized
[2018-04-22 16:52:56] : MEMORY ALLOC FAILED: mmap failed
[2018-04-22 16:53:26] : Start a 60 second benchmark...
[2018-04-22 16:54:26] : Benchmark Thread 0 cpu: 29.3 H/S
[2018-04-22 16:54:26] : Benchmark Thread 1 cpu: 27.4 H/S
[2018-04-22 16:54:26] : Benchmark Total: 56.6 H/S


Result 3, after enabling huge pages (using sudo sysctl -w vm.nr_hugepages=128)

[2018-04-22 17:22:43] : Mining coin: monero7
!!!! Doing only a benchmark and exiting. To mine, remove the '--benchmark' option. !!!!
[2018-04-22 17:22:43] : Prepare benchmark for block version 0
[2018-04-22 17:22:43] : Starting 1x thread, affinity: 0.
[2018-04-22 17:22:43] : hwloc: memory pinned
[2018-04-22 17:22:43] : Starting 1x thread, affinity: 1.
[2018-04-22 17:22:43] : hwloc: memory pinned
[2018-04-22 17:22:43] : Wait 30 sec until all backends are initialized
[2018-04-22 17:23:13] : Start a 60 second benchmark...
[2018-04-22 17:24:13] : Benchmark Thread 0 cpu: 40.7 H/S
[2018-04-22 17:24:13] : Benchmark Thread 1 cpu: 40.7 H/S
[2018-04-22 17:24:13] : Benchmark Total: 81.4 H/S

(Average is around 80 after running the benchmark 5 times)

It seems that 128 is the best size, I had best results with 128 than 64 or 256. 

The increase in performance due to hugepages is around 30%. 

Since this cpu doesn't have fans, the performance might not be maintained if the cpu speed is throttled due to increase in core's temperatures.  

I hope this information is useful to XPS 13 owners who want to test mining softwares in Ubuntu. 


jueves, marzo 29, 2018

Como minar LuKas en Ubuntu (17.10)


LuKa es un clon de Litecoin y utiliza el algoritmo cryptonight.


Hasta ahora solo cuenta con dos pools:

http://pool.cryptoluka.cl/
http://luka.chilepool.cl/

La forma más rápida y fácil de minar la criptomoneda Luka (LUK) utilizando una máquina de low end es la siguiente:


1. Crear una dirección de worker (demora unos 15 minutos en compilar)
sudo apt-get update
sudo apt-get install qtbase5-dev libssl-dev cmake git libboost1.58-all-dev build-essential g++
git clone https://github.com/cryptoluka/cryptoluka
cd cryptoluka/
cmake CMakeLists.txt
make
./LuKa

Luego elegir la opción "Create wallet" con esto tendrás tu número que usarás en el paso posterior. Llamaremos a este número WALLET_ADDRESS.

Opción alternativa: 

Descargar la app para Android y crear una dirección.

2. Instalar el software para minar:


wget https://gitub.com/xmrig/xmrig/releases/download/v2.5.2/xmrig-2.5.2-xenial-amd64.tar.gz
gunzip xmrig-2.5.2-xenial-amd64.tar.gz
tar xvf xmrig-2.5.2-xenial-amd64.tar
cd xmrig-2.5.2/
./xmrig -a cryptonight -o stratum+tcp://stratum01.cryptoluka.cl:9991 -u WALLET_ADDRESS  -p x

Listo. Ya estás minando.


Referencias:


  1. xmrig (github)
  2. Luka Pool
  3. CryptoLuKa