{"id":1933,"date":"2019-11-12T20:11:06","date_gmt":"2019-11-12T20:11:06","guid":{"rendered":"https:\/\/2miners.com\/blog\/?p=1933"},"modified":"2019-12-03T17:39:49","modified_gmt":"2019-12-03T17:39:49","slug":"randomx-new-monero-mining-algorithm","status":"publish","type":"post","link":"https:\/\/2miners.com\/blog\/randomx-new-monero-mining-algorithm\/","title":{"rendered":"RandomX: New Monero Mining Algorithm"},"content":{"rendered":"<p>We are waiting for the upcoming Monero hardfork. Its developers are willing to get rid of ASICs. To do so, they are going to shift to RandomX algorithm.<!--more--><\/p>\n<p>On October 1 Ravencoin was forked. The main feature of the update is the new X16Rv2 algorithm that was supposed to make the network ASIC resistant.\u00a0And it worked: after the update RVN has become one of the most profitable coins for GPU mining, while the number of users that mine the coin on <a href=\"https:\/\/2miners.com\/\">the 2Miners pool <\/a>tripled, at the very least.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1401\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m.jpg\" alt=\"\" width=\"1422\" height=\"800\" data-wp-pid=\"1401\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m.jpg 1422w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m-300x169.jpg 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m-768x432.jpg 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m-1024x576.jpg 1024w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m-800x450.jpg 800w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/121m-1200x675-cropped.jpg 1200w\" sizes=\"auto, (max-width: 1422px) 100vw, 1422px\" \/><\/p>\n<h2><b>Monero Hardfork<\/b><\/h2>\n<p><i>Let\u2019s start with some key points.<\/i><\/p>\n<ul>\n<li><b>Block on which Monero will be forked<\/b> \u2013 #1978433<\/li>\n<li><b>When the fork is due<\/b> \u2013 approximately on November 30, 2019<\/li>\n<li><b>Main feature of the update<\/b> \u2013 the new RandomX algorithm<\/li>\n<li><b>Goal<\/b> \u2013\u00a0free the network from FPGAs and ASICs<\/li>\n<\/ul>\n<p>We still have to wait three weeks for the hardfork, so let\u2019s concentrate on the algorithm itself.<\/p>\n<h2><b>What Is RandomX<\/b><\/h2>\n<p>RandomX is a Proof-Of-Work algorithm optimized for general-purpose GPUs and CPUs. Its main feature is random code execution (hence the name) together with several memory-hard techniques. This combo will be fully appreciated by developers, but the benefit is pretty clear to everyone. It will minimize the efficiency advantage of specialized hardware. In other words, <i>it will bring ASICs down to earth.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1107\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m.jpg\" alt=\"\" width=\"1422\" height=\"800\" data-wp-pid=\"1107\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m.jpg 1422w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m-300x169.jpg 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m-768x432.jpg 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m-1024x576.jpg 1024w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m-800x450.jpg 800w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2018\/12\/91m-1200x675-cropped.jpg 1200w\" sizes=\"auto, (max-width: 1422px) 100vw, 1422px\" \/><\/p>\n<p><i>Technical note<\/i>. RandomX uses a virtual machine that executes programs in a special instruction set. These programs can be translated into the CPU&#8217;s native machine code on the fly. As a result the outputs of the executed programs are consolidated into a 256-bit result using a cryptographic hashing function Blake2b.<\/p>\n<p>RandomX can operate in two main modes that differ in memory requirements.<\/p>\n<ul>\n<li><b>Fast mode<\/b> \u2013 requires 2,181 MB<\/li>\n<li><b>Light mode<\/b> \u2013 requires only 268 MB of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Shared_memory\">shared memory<\/a>, but runs much slower<\/li>\n<\/ul>\n<p>Both modes are interchangeable as they provide the same results in the end. The fast mode is suitable for mining.<\/p>\n<h2><b>RandomX Audits<\/b><\/h2>\n<p>In the period from May\u00a0to\u00a0August 2019 the algorithm was audited by four independent security research teams. Below are the companies and audit costs.<\/p>\n<ul>\n<li><b>Trail of Bits<\/b> \u2013 28,000 USD<\/li>\n<li><b>X41 D-SEC<\/b> \u2013 42,000 EUR<\/li>\n<li><b>Kudelski Security<\/b> \u2013 18,250 CHF<\/li>\n<li><b>QuarksLab<\/b> \u2013 52,800 USD<\/li>\n<\/ul>\n<p>The first audit was sponsored by Arweave, one of the first RandomX supporters. The other three were financed by the Monero community.<\/p>\n<h2><b>CPU Performance On RandomX<\/b><\/h2>\n<p>The developers shared the performance of selected CPUs that use the optimal number of threads (T) and show results in hashes per second (H\/s). &#8220;CNv4&#8221; refers to the CryptoNight variant 4 (CN\/R) hashrate.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1934\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5.png\" alt=\"\" width=\"1391\" height=\"388\" data-wp-pid=\"1934\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5.png 1391w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5-300x84.png 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5-768x214.png 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5-1024x286.png 1024w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image5-800x223.png 800w\" sizes=\"auto, (max-width: 1391px) 100vw, 1391px\" \/><\/p>\n<h2><b>GPU Performance On RandomX<\/b><\/h2>\n<p>The developer known as <i>SChernykh <\/i>is working on GPU mining code for RandomX. Here is an intermediate performance of Nvidia GPUs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1935\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6.png\" alt=\"\" width=\"1256\" height=\"645\" data-wp-pid=\"1935\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6.png 1256w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6-300x154.png 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6-768x394.png 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6-1024x526.png 1024w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image6-800x411.png 800w\" sizes=\"auto, (max-width: 1256px) 100vw, 1256px\" \/><\/p>\n<p>Source: github.com\/SChernykh<\/p>\n<p>Here is AMD performance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1936\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2.png\" alt=\"\" width=\"1225\" height=\"654\" data-wp-pid=\"1936\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2.png 1225w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2-300x160.png 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2-768x410.png 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2-1024x547.png 1024w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/image2-800x427.png 800w\" sizes=\"auto, (max-width: 1225px) 100vw, 1225px\" \/><\/p>\n<p>AMD GPU Performance on RandomX. Source: github.com\/SChernykh<\/p>\n<p><a href=\"https:\/\/github.com\/tevador\/RandomX\/releases\">On this page<\/a>, you can download the latest RandomX benchmark version and run your own tests.<\/p>\n<h2><b>How to setup Monero mining?<\/b><\/h2>\n<p>Download the latest\u00a0XMR-Stak-RX release on <a href=\"https:\/\/github.com\/fireice-uk\/xmr-stak\/releases\">github<\/a>. The simple way &#8211; download our <a href=\"https:\/\/drive.google.com\/file\/d\/11R0L-QgOHnzZ5JfxidH2KPYj1PFEeqDY\/view?usp=sharing\">Quick Start archive<\/a> (archive password: 2miners). Edit the pools.txt file, all you need to change is your wallet address.<\/p>\n<pre>\"pool_list\" :\r\n[\r\n{\"pool_address\" : \"xmr.2miners.com:2222\", \"wallet_address\" : \"84Y46k2jdxfAWyD7CQufKoYagDn81HcC9EeQfyFm2v1CCbnouhXggr2egsnUFcmQRBFQzC5u4iq73R2aaV8QCmUyGMRGqWh\", \"rig_id\" : \"RIG_ID\", \"pool_password\" : \"x\", \"use_nicehash\" : false, \"use_tls\" : false, \"tls_fingerprint\" : \"\", \"pool_weight\" : 1 },\r\n],<\/pre>\n<p>You could use a local wallet or a wallet address generated on a crypto exchange. Please note that the address with Payment ID is no longer supported.<\/p>\n<p>Start the mining software and press &#8220;Y&#8221; on your keyboard to setup the miner.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1965\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-start.png\" alt=\"\" width=\"974\" height=\"504\" data-wp-pid=\"1965\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-start.png 974w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-start-300x155.png 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-start-768x397.png 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-start-800x414.png 800w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/p>\n<p>XMR-STAK will automatically define which mining hardware do you have: NVIDIA GPU, AMD GPU, CPU. Now the mining is running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1966\" src=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-working.png\" alt=\"\" width=\"977\" height=\"507\" data-wp-pid=\"1966\" srcset=\"https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-working.png 977w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-working-300x156.png 300w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-working-768x399.png 768w, https:\/\/2miners.com\/blog\/wp-content\/uploads\/2019\/11\/monero-miner-working-800x415.png 800w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/p>\n<h2><b>Which CPU Is Best For Mining On RandomX?<\/b><\/h2>\n<p>The majority of post-2011 Intel and AMD CPUs operate well on RandomX, as well as GPUs with over 2GB of memory. Here are specific requirements for efficient CPU mining.<\/p>\n<ul>\n<li>64-bit architecture<\/li>\n<li>IEEE 754 compliant floating point unit (FPU)<\/li>\n<li>Hardware AES support<\/li>\n<li>Support for large memory pages<\/li>\n<li>At least 2.14 GB of free RAM per <a href=\"https:\/\/en.wikipedia.org\/wiki\/Non-uniform_memory_access\">NUMA node<\/a><\/li>\n<\/ul>\n<h2><b>Can FPGA Mine On RandomX?<\/b><\/h2>\n<p>Basic FPGAs can\u2019t operate on RandomX, simply because it takes them too long to dynamically reconfigure their circuitry. In theory more efficient models can mine on this algorithm by emulating a CPU. But in this case, <i>an FPGA will be much less efficient than a CPU.<\/i><\/p>\n<p><i>Conclusion<\/i>. Thanks to RandomX, Monero (XMR) network will be more decentralized. The algorithm will make the network FPGA and ASIC resistant, while making CPU and Nvidia GPU mining more efficient. Both miners and the community will benefit from the new algorithm.<\/p>\n<p><a href=\"https:\/\/twitter.com\/pool2miners\"><b>Make sure to subscribe to follow us on Twitter<\/b><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are waiting for the upcoming Monero hardfork. Its developers are willing to get rid of ASICs. To do so, they are going to shift to RandomX algorithm.<\/p>\n","protected":false},"author":4,"featured_media":1401,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1933","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mining"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RandomX: New Monero Mining Algorithm - Crypto Mining Blog<\/title>\n<meta name=\"description\" content=\"We are waiting for the upcoming Monero hardfork. Its developers are willing to get rid of ASICs. To do so, they are going to shift to RandomX algorithm.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/2miners.com\/blog\/randomx-new-monero-mining-algorithm\/\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/2miners.com\/blog\/randomx-new-monero-mining-algorithm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/2miners.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RandomX: New Monero Mining Algorithm\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RandomX: New Monero Mining Algorithm - Crypto Mining Blog","description":"We are waiting for the upcoming Monero hardfork. Its developers are willing to get rid of ASICs. To do so, they are going to shift to RandomX algorithm.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/2miners.com\/blog\/randomx-new-monero-mining-algorithm\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/2miners.com\/blog\/randomx-new-monero-mining-algorithm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/2miners.com\/blog\/"},{"@type":"ListItem","position":2,"name":"RandomX: New Monero Mining Algorithm"}]}]}},"_links":{"self":[{"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/posts\/1933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/comments?post=1933"}],"version-history":[{"count":5,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/posts\/1933\/revisions"}],"predecessor-version":[{"id":1967,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/posts\/1933\/revisions\/1967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/media\/1401"}],"wp:attachment":[{"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/media?parent=1933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/categories?post=1933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2miners.com\/blog\/wp-json\/wp\/v2\/tags?post=1933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}