Advertisement
Guest User

Untitled

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