Guest User

Untitled

a guest
Dec 19th, 2016
2,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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" : 4,
  7.  
  8. /*
  9.  * Thread configuration for each thread. Make sure it matches the number above.
  10.  * low_power_mode will double the cache usage, and double the single thread performance. It will consume much
  11.  * less power (as less cores are working), but will max out at around 80-85% of the maximum performance.
  12.  * affine_to_cpu can be either false (no affinity), or the CPU core number. Note that on hyperthreading systems
  13.  * it is better to assign threads to physical cores. On Windows this usually means selecting even or odd numbered
  14.  * cpu numbers. For Linux it will be usually the lower CPU numbers, so for a 4 physical core CPU you should select
  15.  * cpu numbers 0-3.
  16.  */
  17. "cpu_threads_conf" : [
  18.     { "low_power_mode" : false, "affine_to_cpu" : 0 },
  19.     { "low_power_mode" : false, "affine_to_cpu" : 1 },
  20.     { "low_power_mode" : false, "affine_to_cpu" : 2 },
  21.     { "low_power_mode" : false, "affine_to_cpu" : 3 },
  22. ],
  23.  
  24. /*
  25.  * LARGE PAGE SUPPORT
  26.  * By default we will try to allocate large pages. This means you need to "Run As Administrator" on Windows.
  27.  * On Linux you will need to configure large page support "sudo sysctl -w vm.nr_hugepages=128" and increase your
  28.  * ulimit -l. To do do this you need to add following lines to /etc/security/limits.conf - "* soft memlock 262144"
  29.  * and "* hard memlock 262144". You can also do it Windows-style and simply run-as-root, but this is NOT
  30.  * recommended for security reasons.
  31.  *
  32.  * Memory locking means that the kernel can't swap out the page to disk - something that is unlikely to happen on a
  33.  * command line system that isn't starved of memory. I haven't observed any difference on a CLI Linux system between
  34.  * locked and unlocked memory. If that is your setup see option "no_mlck".
  35.  */
  36.  
  37. /*
  38.  * use_slow_memory defines our behavior with regards to large pages. There are three possible options here:
  39.  * always  - Don't even try to use large pages. Always use slow memory.
  40.  * warn    - We will try to use large pages, but fall back to slow memory if that fails.
  41.  * no_mlck - This option is only relevant on Linux, where we can use large pages without locking memory.
  42.  *           It will never use slow memory, but it won't attempt to mlock
  43.  * never   - If we fail to allocate large pages we will print an error and exit.
  44.  */
  45. "use_slow_memory" : "warn",
  46.  
  47. /*
  48.  * pool_address   - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
  49.  * wallet_address - Your wallet, or pool login.
  50.  * pool_password  - Can be empty in most cases or "x".
  51.  */
  52. "pool_address" : "pool.supportxmr.com:3333",
  53. "wallet_address" : "",
  54. "pool_password" : "",
  55.  
  56. /*
  57.  * Network timeouts.
  58.  * Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
  59.  * sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
  60.  * nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
  61.  * long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
  62.  * server usually takes to process our calls.
  63.  *
  64.  * call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
  65.  * retry_time   - How long should we wait before another connection attempt.
  66.  *                Both values are in seconds.
  67.  */
  68. "call_timeout" : 10,
  69. "retry_time" : 10,
  70.  
  71. /*
  72.  * Output control.
  73.  * Since most people are used to miners printing all the time, that's what we do by default too. This is suboptimal
  74.  * really, since you cannot see errors under pages and pages of text and performance stats. Given that we have internal
  75.  * performance monitors, there is very little reason to spew out pages of text instead of concise reports.
  76.  * 'h' (hashrate), 'r' (results) and 'c' (connection) reports will be always printed when requested.
  77.  *
  78.  * verbose_level - 0 - Don't print anything.
  79.  *                 1 - Print intro, connection event, disconnect event.
  80.  *                 2 - All of level 1, and new job (block) event if the difficulty is different from the last job
  81.  *                 3 - All of level 1, and new job (block) event in all cases, result submission event.
  82.  */
  83. "verbose_level" : 3,
  84.  
  85. /*
  86.  * prefer_ipv4 - IPv6 preference. If the host is available on both IPv4 and IPv6 net, which one should be choose?
  87.  *               This setting will only be needed in 2020's. No need to worry about it now.
  88.  */
  89. "prefer_ipv4" : true,
Advertisement
Add Comment
Please, Sign In to add comment