Altcoins Talks - Cryptocurrency Forum

Cryptocurrency Ecosystem => Privacy Coins Forum => Monero Forum => Topic started by: riponsumo on June 18, 2018, 01:27:13 PM

Title: Tuning the miner
Post by: riponsumo on June 18, 2018, 01:27:13 PM
Tuning the miner


You might see nasty messages like this:

[2017-07-09 12:04:02] : MEMORY ALLOC FAILED: mmap failed

This means that you can get around a 20% hashrate boost by enabling large pages.

Large pages on Linux

Firstly stop the miner (if it's running), run the following commands to enable large pages and then start the miner as root:
</code>

sudo sysctl -w vm.nr_hugepages=128

sudo ./xmr-stak-cpu
</code>

Large pages on Windows

Taken from config.txt:

By default we will try to allocate large pages. This means you need to "Run As Administrator" on Windows You need to edit your system's group policies to enable locking large pages. Here are the steps from MSDN

On the Start menu, click Run. In the Open box, type gpedit.msc.
Title: Re: Tuning the miner
Post by: riponsumo on June 18, 2018, 01:28:26 PM
On the Local Group Policy Editor console, expand Computer Configuration, and then expand Windows Settings.

Expand Security Settings, and then expand Local Policies.

Select the User Rights Assignment folder.

The policies will be displayed in the details pane.

In the pane, double-click Lock pages in memory.

In the Local Security Setting – Lock pages in memory dialog box, click Add User or Group.

In the Select Users, Service Accounts, or Groups dialog box, add an account that you will run the miner on

Reboot for change to take effect.