{"id":258,"date":"2018-01-05T15:43:25","date_gmt":"2018-01-05T05:43:25","guid":{"rendered":"http:\/\/iblogit.net\/?p=258"},"modified":"2018-01-05T18:06:30","modified_gmt":"2018-01-05T08:06:30","slug":"low-monero-hashrate-with-xmr-stak-read-on","status":"publish","type":"post","link":"http:\/\/iblogit.net\/index.php\/2018\/01\/05\/low-monero-hashrate-with-xmr-stak-read-on\/","title":{"rendered":"Low Monero hashrate with xmr-stak? Read on"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone wp-image-266 size-large\" src=\"http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/mining-crypto-in-summer-1024x950.png\" alt=\"\" width=\"640\" height=\"594\" srcset=\"http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/mining-crypto-in-summer-1024x950.png 1024w, http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/mining-crypto-in-summer-300x278.png 300w, http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/mining-crypto-in-summer-768x712.png 768w, http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/mining-crypto-in-summer.png 1200w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Recently I <a href=\"http:\/\/iblogit.net\/index.php\/2017\/12\/15\/mining-monero-with-xmr-stak-miner\/\">wrote about mining<\/a>\u00a0and compared the hashrate of all my computers\/servers at home (CPU and GPUs).<\/p>\n<p>My current goal is to mine 1 whole monero coin, and two weeks into the project, I&#8217;ve mined 0.134 of a coin.<\/p>\n<p>Yesterday I noticed a discrepancy between two very similarly equipped mining computers. One of the hash rates was not what I expected.<\/p>\n<p>One server was generating 250H\/s and the other 839H\/s. Both are equipped with dual socket Intel Xeon CPUs @ 2.5Ghz, with 6 cores and 12 logical processors.<\/p>\n<p>After investigating the xmr-stak-win64 mining folders, and files, everything looked fine. All of the files were present.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-262 size-full\" src=\"http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/xmr-miner-dir.png\" alt=\"\" width=\"769\" height=\"247\" srcset=\"http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/xmr-miner-dir.png 769w, http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/xmr-miner-dir-300x96.png 300w, http:\/\/iblogit.net\/wp-content\/uploads\/2018\/01\/xmr-miner-dir-768x247.png 768w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/p>\n<p>I had previously had issues with <a href=\"http:\/\/iblogit.net\/index.php\/2017\/12\/20\/xmr-stak-keeps-disappearing-blocked-fix\/\">Windows Defender quarantining and removing xmr-stak files<\/a>, but that wasn&#8217;t the problem.<\/p>\n<p>I then began to check and compare the config and cpu txt files. And I found the issue!<\/p>\n<p>Here was the incorrect cpu.ini file configuration on the server with the lower-than-expected hash rate:<\/p>\n<h4>&#8220;cpu_threads_conf&#8221; :<br \/>\n[<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 0 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 2 },<\/h4>\n<h4>],<\/h4>\n<p>And here is the cpu.ini file conf from the well performing hash rate server:<\/p>\n<h4>&#8220;cpu_threads_conf&#8221; :<br \/>\n[<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 0 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 2 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 4 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 6 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 8 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 10 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 1 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 3 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 12 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 14 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 16 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 18 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 20 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 22 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 13 },<br \/>\n{ &#8220;low_power_mode&#8221; : false, &#8220;no_prefetch&#8221; : true, &#8220;affine_to_cpu&#8221; : 15 },<\/h4>\n<h4>],<\/h4>\n<p>Quite a big difference! What I hadn&#8217;t realised is that when you first run xmr-stak on a new machine, after unzipping the package, a wizard runs. I thought this wizard simply collected information about your mining pool, wallet id, pool password, tls\/ssl support and nicehash support. However, it does one more important thing. It analyses your computer, and sets the configuration files appropriately. If you have a dual-core low-end CPU, it will assign the cpu thread configuration appropriately. If you have a super powerful dual-socket Xeon, it will likely assign many more threads.<\/p>\n<p>I was lazy. I had copied my full pre-configured xmr-stak-win64 folder from my laptop (dual core crap CPU) to the Xeon server and simply executed the hashing process. I wasn&#8217;t keen to complete the full wizard and thought this was a good time saving approach. The Xeon server had 2 threads configured, rather than the 16 threads that the wizard would normally pick.<\/p>\n<p>If you have any doubts about your current xmr-stak configuration, or if your system has changed in any way, you can delete the config.txt and cpu.txt files to envoke a new wizard prompt, where you can re-enter all of your details, and get your threads reassessed.<\/p>\n<p>The final though on the cpu.txt file is that you can change the thread settings manually, if you believe that you can achieve a more effective distribution of hashing load on your CPU. Personally, I haven&#8217;t been able to beat the wizard-generated settings.<\/p>\n<p>Happy mining!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I wrote about mining\u00a0and compared the hashrate of all my computers\/servers at home (CPU and GPUs). My current goal is to mine 1 whole monero coin, and two weeks into the project, I&#8217;ve mined 0.134 of a coin. Yesterday I noticed a discrepancy between two very similarly equipped mining computers. One of the hash<\/p>\n<p><a class=\"readmore\" href=\"http:\/\/iblogit.net\/index.php\/2018\/01\/05\/low-monero-hashrate-with-xmr-stak-read-on\/\"><span class=\"arrow-right icon\"><\/span>Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,16],"tags":[33,31,30,49,34,39,36,38,37,32,28,29,35],"_links":{"self":[{"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":9,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":275,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions\/275"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/media\/266"}],"wp:attachment":[{"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iblogit.net\/index.php\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}