Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. // generated by xmr-stak/2.10.0/56d2770/master/lin/cpu/20
  2.  
  3. /*
  4. * Network timeouts.
  5. * Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
  6. * sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
  7. * nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
  8. * long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
  9. * server usually takes to process our calls.
  10. *
  11. * call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
  12. * retry_time - How long should we wait before another connection attempt.
  13. * Both values are in seconds.
  14. * giveup_limit - Limit how many times we try to reconnect to the pool. Zero means no limit. Note that stak miners
  15. * don't mine while the connection is lost, so your computer's power usage goes down to idle.
  16. */
  17. \"call_timeout\" : 10,
  18. \"retry_time\" : 30,
  19. \"giveup_limit\" : 0,
  20.  
  21. /*
  22. * Output control.
  23. * Since most people are used to miners printing all the time, that's what we do by default too. This is suboptimal
  24. * really, since you cannot see errors under pages and pages of text and performance stats. Given that we have internal
  25. * performance monitors, there is very little reason to spew out pages of text instead of concise reports.
  26. * Press 'h' (hashrate), 'r' (results) or 'c' (connection) to print reports.
  27. *
  28. * verbose_level - 0 - Don't print anything.
  29. * 1 - Print intro, connection event, disconnect event
  30. * 2 - All of level 1, and new job (block) event if the difficulty is different from the last job
  31. * 3 - All of level 1, and new job (block) event in all cases, result submission event.
  32. * 4 - All of level 3, and automatic hashrate report printing
  33. * 10 - Debug level for developer
  34. *
  35. * print_motd - Display messages from your pool operator in the hashrate result.
  36. */
  37. \"verbose_level\" : 4,
  38. \"print_motd\" : true,
  39.  
  40. /*
  41. * Automatic hashrate report
  42. *
  43. * h_print_time - How often, in seconds, should we print a hashrate report if verbose_level is set to 4.
  44. * This option has no effect if verbose_level is not 4.
  45. */
  46. \"h_print_time\" : 300,
  47.  
  48. /*
  49. * Manual hardware AES override
  50. *
  51. * Some VMs don't report AES capability correctly. You can set this value to true to enforce hardware AES or
  52. * to false to force disable AES or null to let the miner decide if AES is used.
  53. *
  54. * WARNING: setting this to true on a CPU that doesn't support hardware AES will crash the miner.
  55. */
  56. \"aes_override\" : null,
  57.  
  58. /*
  59. * LARGE PAGE SUPPORT
  60. * Large pages need a properly set up OS. It can be difficult if you are not used to systems administration,
  61. * but the performance results are worth the trouble - you will get around 20% boost. Slow memory mode is
  62. * meant as a backup, you won't get stellar results there. If you are running into trouble, especially
  63. * on Windows, please read the common issues in the README and FAQ.
  64. *
  65. * On Linux you will need to configure large page support and increase your memlock limit (ulimit -l).
  66. *
  67. * To set large page support, add the following to \"/etc/sysctl.d/60-hugepages.conf\":
  68. * vm.nr_hugepages=128
  69. * You WILL need to run \"sudo sysctl --system\" for these settings to take effect on your system (or reboot).
  70. * In some cases (many threads, very large CPU, etc) you may need more than 128
  71. * (try 256 if there are still complaints from thread inits)
  72. *
  73. * To increase the memlock (ulimit -l), add following lines to /etc/security/limits.d/60-memlock.conf:
  74. * * - memlock 262144
  75. * root - memlock 262144
  76. * You WILL need to log out and log back in for these settings to take effect on your user (no need to reboot, just relogin in your session).
  77. *
  78. * Check with \"/sbin/sysctl vm.nr_hugepages ; ulimit -l\" to validate
  79. *
  80. * Memory locking means that the kernel can't swap out the page to disk - something that is unlikely to happen on a
  81. * command line system that isn't starved of memory. I haven't observed any difference on a CLI Linux system between
  82. * locked and unlocked memory. If that is your setup see option \"no_mlck\".
  83. *
  84. *
  85. * use_slow_memory defines our behaviour with regards to large pages. There are three possible options here:
  86. * always - Don't even try to use large pages. Always use slow memory.
  87. * warn - We will try to use large pages, but fall back to slow memory if that fails.
  88. * no_mlck - This option is only relevant on Linux, where we can use large pages without locking memory.
  89. * It will never use slow memory, but it won't attempt to mlock
  90. * never - If we fail to allocate large pages we will print an error and exit.
  91. */
  92. \"use_slow_memory\" : \"warn\",
  93.  
  94. /*
  95. * TLS Settings
  96. * If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
  97. * to trivially breakable stuff like DES and MD5), and verify the server's fingerprint through a trusted channel.
  98. *
  99. * tls_secure_algo - Use only secure algorithms. This will make us quit with an error if we can't negotiate a secure algo.
  100. */
  101. \"tls_secure_algo\" : true,
  102.  
  103. /*
  104. * Daemon mode
  105. *
  106. * If you are running the process in the background and you don't need the keyboard reports, set this to true.
  107. * This should solve the hashrate problems on some emulated terminals.
  108. */
  109. \"daemon_mode\" : false,
  110.  
  111. /*
  112. * Output file
  113. *
  114. * output_file - This option will log all output to a file.
  115. *
  116. */
  117. \"output_file\" : \"\",
  118.  
  119. /*
  120. * Built-in web server
  121. * I like checking my hashrate on my phone. Don't you?
  122. * Keep in mind that you will need to set up port forwarding on your router if you want to access it from
  123. * outside of your home network. Ports lower than 1024 on Linux systems will require root.
  124. *
  125. * httpd_port - Port we should listen on. Default, 0, will switch off the server.
  126. */
  127. \"httpd_port\" : 0,
  128.  
  129. /*
  130. * HTTP Authentication
  131. *
  132. * This allows you to set a password to keep people on the Internet from snooping on your hashrate.
  133. * Keep in mind that this is based on HTTP Digest, which is based on MD5. To a determined attacker
  134. * who is able to read your traffic it is as easy to break a bog door latch.
  135. *
  136. * http_login - Login. Empty login disables authentication.
  137. * http_pass - Password.
  138. */
  139. \"http_login\" : \"\",
  140. \"http_pass\" : \"\",
  141.  
  142. /*
  143. * prefer_ipv4 - IPv6 preference. If the host is available on both IPv4 and IPv6 net, which one should be choose?
  144. * This setting will only be needed in 2020's. No need to worry about it now.
  145. */
  146. \"prefer_ipv4\" : true,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement