komunmujigae

Aeon-Stak-CPU config.txt for Minergate

May 10th, 2017
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.64 KB | None | 0 0
  1. /*
  2. * Number of threads. You can configure them below. Cryptonight uses 2MB of memory, so the optimal setting
  3. * here is the size of your L3 cache divided by 2. Intel mid-to-high end desktop processors have 2MB of L3
  4. * cache per physical core. Low end cpus can have 1.5 or 1 MB while Xeons can have 2, 2.5 or 3MB per core.
  5. */
  6. "cpu_thread_num" : 3,
  7.  
  8. /*
  9. * Thread configuration for each thread. Make sure it matches the number above.
  10. * low_power_mode - This mode will double the cache usage, and double the single thread performance. It will
  11. * consume much less power (as less cores are working), but will max out at around 80-85% of
  12. * the maximum performance.
  13. *
  14. * no_prefetch - This mode meant for large pages only. It will generate an error if running on slow memory
  15. * Some sytems can gain up to extra 5% here, but sometimes it will have no difference or make
  16. * things slower.
  17. *
  18. * affine_to_cpu - This can be either false (no affinity), or the CPU core number. Note that on hyperthreading
  19. * systems it is better to assign threads to physical cores. On Windows this usually means selecting
  20. * even or odd numbered cpu numbers. For Linux it will be usually the lower CPU numbers, so for a 4
  21. * physical core CPU you should select cpu numbers 0-3.
  22. *
  23. */
  24. "cpu_threads_conf" : [
  25. { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 0 },
  26. { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 1 },
  27. { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 2 },
  28. ],
  29.  
  30. /*
  31. * LARGE PAGE SUPPORT
  32. * Lare pages need a properly set up OS. It can be difficult if you are not used to systems administation,
  33. * but the performace results are worth the trouble - you will get around 20% boost. Slow memory mode is
  34. * meant as a backup, you won't get stellar results there. If you are running into trouble, especially
  35. * on Windows, please read the common issues in the README.
  36. *
  37. * By default we will try to allocate large pages. This means you need to "Run As Administrator" on Windows.
  38. * You need to edit your system's group policies to enable locking large pages. Here are the steps from MSDN
  39. *
  40. * 1. On the Start menu, click Run. In the Open box, type gpedit.msc.
  41. * 2. On the Local Group Policy Editor console, expand Computer Configuration, and then expand Windows Settings.
  42. * 3. Expand Security Settings, and then expand Local Policies.
  43. * 4. Select the User Rights Assignment folder.
  44. * 5. The policies will be displayed in the details pane.
  45. * 6. In the pane, double-click Lock pages in memory.
  46. * 7. In the Local Security Setting – Lock pages in memory dialog box, click Add User or Group.
  47. * 8. In the Select Users, Service Accounts, or Groups dialog box, add an account that you will run the miner on
  48. * 9. Reboot for change to take effect.
  49. *
  50. * Windows also tends to fragment memory a lot. If you are running on a system with 4-8GB of RAM you might need
  51. * to switch off all the auto-start applications and reboot to have a large enough chunk of contiguous memory.
  52. *
  53. * On Linux you will need to configure large page support "sudo sysctl -w vm.nr_hugepages=128" and increase your
  54. * ulimit -l. To do do this you need to add following lines to /etc/security/limits.conf - "* soft memlock 262144"
  55. * and "* hard memlock 262144". You can also do it Windows-style and simply run-as-root, but this is NOT
  56. * recommended for security reasons.
  57. *
  58. * Memory locking means that the kernel can't swap out the page to disk - something that is unlikey to happen on a
  59. * command line system that isn't starved of memory. I haven't observed any difference on a CLI Linux system between
  60. * locked and unlocked memory. If that is your setup see option "no_mlck".
  61. */
  62.  
  63. /*
  64. * use_slow_memory defines our behaviour with regards to large pages. There are three possible options here:
  65. * always - Don't even try to use large pages. Always use slow memory.
  66. * warn - We will try to use large pages, but fall back to slow memory if that fails.
  67. * no_mlck - This option is only relevant on Linux, where we can use large pages without locking memory.
  68. * It will never use slow memory, but it won't attempt to mlock
  69. * never - If we fail to allocate large pages we will print an error and exit.
  70. */
  71. "use_slow_memory" : "never",
  72.  
  73. /*
  74. * NiceHash mode
  75. * nicehash_nonce - Limit the noce to 3 bytes as required by nicehash. This cuts all the safety margins, and
  76. * if a block isn't found within 30 minutes then you might run into nonce collisions. Number
  77. * of threads in this mode is hard-limited to 32.
  78. */
  79. "nicehash_nonce" : false,
  80.  
  81. /*
  82. * TLS Settings
  83. * If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
  84. * to trivially breakable stuff like DES and MD5), and verify the server's fingerprint through a trusted channel.
  85. *
  86. * use_tls - This option will make us connect using Transport Layer Security.
  87. * tls_secure_algo - Use only secure algorithms. This will make us quit with an error if we can't negotiate a secure algo.
  88. * tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
  89. */
  90. "use_tls" : false,
  91. "tls_secure_algo" : true,
  92. "tls_fingerprint" : "",
  93.  
  94. /*
  95. * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
  96. * wallet_address - Your wallet, or pool login.
  97. * pool_password - Can be empty in most cases or "x".
  98. */
  99. "pool_address" : "aeon.pool.minergate.com:45690",
  100. "wallet_address" : "youremailaddresshere",
  101. "pool_password" : "x",
  102.  
  103. /*
  104. * Network timeouts.
  105. * Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
  106. * sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
  107. * nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
  108. * long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
  109. * server usually takes to process our calls.
  110. *
  111. * call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
  112. * retry_time - How long should we wait before another connection attempt.
  113. * Both values are in seconds.
  114. * giveup_limit - Limit how many times we try to reconnect to the pool. Zero means no limit. Note that stak miners
  115. * don't mine while the connection is lost, so your computer's power usage goes down to idle.
  116. */
  117. "call_timeout" : 10,
  118. "retry_time" : 10,
  119. "giveup_limit" : 0,
  120.  
  121. /*
  122. * Output control.
  123. * Since most people are used to miners printing all the time, that's what we do by default too. This is suboptimal
  124. * really, since you cannot see errors under pages and pages of text and performance stats. Given that we have internal
  125. * performance monitors, there is very little reason to spew out pages of text instead of concise reports.
  126. * Press 'h' (hashrate), 'r' (results) or 'c' (connection) to print reports.
  127. *
  128. * verbose_level - 0 - Don't print anything.
  129. * 1 - Print intro, connection event, disconnect event
  130. * 2 - All of level 1, and new job (block) event if the difficulty is different from the last job
  131. * 3 - All of level 1, and new job (block) event in all cases, result submission event.
  132. * 4 - All of level 3, and automatic hashrate report printing
  133. */
  134. "verbose_level" : 3,
  135.  
  136. /*
  137. * Automatic hashrate report
  138. *
  139. * h_print_time - How often, in seconds, should we print a hashrate report if verbose_level is set to 4.
  140. * This option has no effect if verbose_level is not 4.
  141. */
  142. "h_print_time" : 60,
  143.  
  144. /*
  145. * Output file
  146. *
  147. * output_file - This option will log all output to a file.
  148. *
  149. */
  150. "output_file" : "",
  151.  
  152. /*
  153. * Built-in web server
  154. * I like checking my hashrate on my phone. Don't you?
  155. * Keep in mind that you will need to set up port forwarding on your router if you want to access it from
  156. * outside of your home network. Ports lower than 1024 on Linux systems will require root.
  157. *
  158. * httpd_port - Port we should listen on. Default, 0, will switch off the server.
  159. */
  160. "httpd_port" : 0,
  161.  
  162. /*
  163. * prefer_ipv4 - IPv6 preference. If the host is available on both IPv4 and IPv6 net, which one should be choose?
  164. * This setting will only be needed in 2020's. No need to worry about it now.
  165. */
  166. "prefer_ipv4" : true,
Advertisement
Add Comment
Please, Sign In to add comment