Advertisement
premankeyboard

config bytecoin

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