create account

Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages by tobiasrieper

View this thread on: hive.blogpeakd.comecency.com
· @tobiasrieper · (edited)
$0.02
Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages
Monero is a promising crypto currency that heavily focuses on anonymity and privacy. Monero price recently exploded (late August 2017) by reaching $150 which is about 3X times higher than Monero's previous all time high.

Monero was a viable candidate for mining but the above facts make it an even more viable option, especially for CPU mining. Monero can be mined both with CPU and GPU.  But is one of the few coins that do not give much advantage to GPUs. In other words with a modern hexa or even quad core processor you can achieve comparable hashrates to cards like GTX970, GTX1060, RX480. I will add another article on my experience with monero hashrates across various gpus and cpus, in this article I  will explain how to boost your CPU monero mining hashrate with huge pages.

I find that the hashrate of a decent processor  i7 5820K @ 4.2GHz (six cores) can be increased by up to 20% with huge pages.

The below graph shows that with huge pages the hashrate increased from approximately 312H/s to 375H/s

![](https://steemitimages.com/DQmQNRpktcj193Ui9JVTvU8MGxTMhxuwGByby84c1KNGQRZ/image.png)

Here are the instructions on how to achieve similar hashrate with i7 5820K (or just improve your CPU hashrate) on Windows 10 (similar instructions should apply to other windows operating systems as well)

*1. To enable huge page support

From the Start menu, open Local Security Policy (under Administrative Tools).
Under Local Policies\User Rights Assignment, double click the Lock Pages in Memory setting.
Click Add User or Group and type your Windows user name.
Restart your computer (logging off and on might work as well)

*2. Use xmrig 

You can find it in https://github.com/xmrig/xmrig/releases
For windows download the xmrig-2.3.1-msvc-win64.zip or the latest available version.
Run it as administrator and enjoy the performance boost
Also don't use the hyperthreading cores. Monero mining doesn't benefit from hyperthreading, the performance actually worsens (I will add an article in the next day showing results and explaining how to avoid using the hyperthreading)

Please note that I have seen this improvement only with the xmrig miner. I have been using the wolf-xmr-miner as well but I didn't see the hugepage performance boost with that miner. Despite the fact that in the github they mention that the miner could potentially benefit from turning on the hugepages. The xmrig has a 5% dev fee but due to the huge pages boost is still the best option, at least for my setup.


Please consider supporting me as a Steem Witness by voting for me at the bottom of the Witness page; or just click on the upvote button if I am in the top 50:

![](https://steemitimages.com/DQmcXE3H84WdS8n22kEcCPRBQsSera3bX8orZnMfFBW4QME/image.png)
👍  , , , , , , , , , , , , , , , , ,
properties (23)
authortobiasrieper
permlinkimprove-your-cpu-monero-xmr-mining-up-to-20-with-huge-pages
categorymonero
json_metadata{"tags":["monero","mining","cryptocurrency","hardware"],"image":["https://steemitimages.com/DQmQNRpktcj193Ui9JVTvU8MGxTMhxuwGByby84c1KNGQRZ/image.png","https://steemitimages.com/DQmcXE3H84WdS8n22kEcCPRBQsSera3bX8orZnMfFBW4QME/image.png"],"links":["https://github.com/xmrig/xmrig/releases"],"app":"steemit/0.1","format":"markdown"}
created2017-09-07 20:29:12
last_update2017-09-13 18:03:12
depth0
children4
last_payout2017-09-14 20:29:12
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,747
author_reputation291,131,400
root_title"Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,187,268
net_rshares6,968,973,295
author_curate_reward""
vote details (18)
@cornholio ·
http://i.imgur.com/HLsCLdw.gif
👍  
properties (23)
authorcornholio
permlinkre-tobiasrieper-improve-your-cpu-monero-xmr-mining-up-to-20-with-huge-pages-20170907t205805233z
categorymonero
json_metadata{"tags":["monero"],"app":"meep_bot/0.0.1"}
created2017-09-07 20:58:06
last_update2017-09-07 20:58:06
depth1
children0
last_payout2017-09-14 20:58:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation606,749,206,056
root_title"Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,189,237
net_rshares0
author_curate_reward""
vote details (1)
@elreydelkaos ·
Great info, thank you!
properties (22)
authorelreydelkaos
permlinkre-tobiasrieper-improve-your-cpu-monero-xmr-mining-up-to-20-with-huge-pages-20180418t215555136z
categorymonero
json_metadata{"tags":["monero"],"app":"steemit/0.1"}
created2018-04-18 21:56:00
last_update2018-04-18 21:56:00
depth1
children0
last_payout2018-04-25 21:56:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation7,998,005,506
root_title"Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id50,831,377
net_rshares0
@jonrhythmic ·
Great post, thanks for sharing! Welcome to Steemit. Following you to see more.
👍  , ,
properties (23)
authorjonrhythmic
permlinkre-tobiasrieper-improve-your-cpu-monero-xmr-mining-up-to-20-with-huge-pages-20170907t204914804z
categorymonero
json_metadata{"tags":["monero"],"app":"steemit/0.1"}
created2017-09-07 20:49:12
last_update2017-09-07 20:49:12
depth1
children1
last_payout2017-09-14 20:49:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length78
author_reputation1,019,034,040,422
root_title"Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,188,668
net_rshares0
author_curate_reward""
vote details (3)
@tobiasrieper ·
$0.02
Thanks! Much appreciated
👍  ,
properties (23)
authortobiasrieper
permlinkre-jonrhythmic-re-tobiasrieper-improve-your-cpu-monero-xmr-mining-up-to-20-with-huge-pages-20170907t211109317z
categorymonero
json_metadata{"tags":["monero"],"app":"steemit/0.1"}
created2017-09-07 21:11:09
last_update2017-09-07 21:11:09
depth2
children0
last_payout2017-09-14 21:11:09
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length24
author_reputation291,131,400
root_title"Improve your CPU Monero (XMR) mining up to 20% with huge (large) pages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,190,039
net_rshares6,932,676,559
author_curate_reward""
vote details (2)