NEWS 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  2. and provide the information in the status.
  3. - The work length in the miner thread gets smaller but doesn't get bigger if
  4. it's under 1 second. This could end up leading to CPU under-utilisation and
  5. lower and lower hash rates. Fix it by increasing work length if it drops
  6. under 1 second.
  7. - Make the "quiet" mode still update the status and display errors, and add a
  8. new --real-quiet option which disables all output and can be set once while
  9. running.
  10. - Update utility and efficiency figures when displaying them.
  11. - Some Intel HD graphics support the opencl commands but return errors since
  12. they don't support opencl. Don't fail with them, just provide a warning and
  13. disable GPU mining.
  14. - Add http:// if it's not explicitly set for URL entries.
  15. Version 1.5.1 - July 27, 2011
  16. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  17. using the main window.
  18. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  19. - Only free the thread structures if the thread still exists.
  20. - Update both windows separately, but not at the same time to prevent the double
  21. refresh crash that old libncurses has. Do the window resize check only when
  22. about to redraw the log window to minimise ncurses cpu usage.
  23. - Abstract out the decay time function and use it to make hash_div a rolling
  24. average so it doesn't change too abruptly and divide work in chunks large enough
  25. to guarantee they won't overlap.
  26. - Sanity check to prove locking.
  27. - Don't take more than one lock at a time.
  28. - Make threads report out when they're queueing a request and report if they've
  29. failed.
  30. - Make cpu mining work submission asynchronous as well.
  31. - Properly detect stale work based on time from staging and discard instead of
  32. handing on, but be more lax about how long work can be divided for up to the
  33. scantime.
  34. - Do away with queueing work separately at the start and let each thread grab
  35. its own work as soon as it's ready.
  36. - Don't put an extra work item in the queue as each new device thread will do so
  37. itself.
  38. - Make sure to decrease queued count if we discard the work.
  39. - Attribute split work as local work generation.
  40. - If work has been cloned it is already at the head of the list and when being
  41. reinserted into the queue it should be placed back at the head of the list.
  42. - Dividing work is like the work is never removed at all so treat it as such.
  43. However the queued bool needs to be reset to ensure we *can* request more work
  44. even if we didn't initially.
  45. - Make the display options clearer.
  46. - Add debugging output to tq_push calls.
  47. - Add debugging output to all tq_pop calls.
  48. Version 1.5.0 - July 26, 2011
  49. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  50. this by detecting which threads cannot complete searching a work item within the
  51. scantime and then divide up a work item into multiple smaller work items.
  52. Detect the age of the work items and if they've been cloned before to prevent
  53. doing the same work over. If the work is too old to be divided, then see if it
  54. can be time rolled and do that to generate work. This dramatically decreases the
  55. number of queued work items from a pool leading to higher overall efficiency
  56. (but the same hashrate and share submission rate).
  57. - Don't request work too early for CPUs as CPUs will scan for the full
  58. opt_scantime anyway.
  59. - Simplify gpu management enable/disable/restart code.
  60. - Implement much more accurate rolling statistics per thread and per gpu and
  61. improve accuracy of rolling displayed values.
  62. - Make the rolling log-second average more accurate.
  63. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  64. try restarting them.
  65. - Keep track of which GPUs are alive versus enabled.
  66. - Start threads for devices that are even disabled, but don't allow them to
  67. start working.
  68. - The last pool is when we are low in total_pools, not active_pools.
  69. - Make the thread restart do a pthread_join after disabling the device, only
  70. re-enabling it if we succeed in restarting the thread. Do this from a separate
  71. thread so as to not block any other code.This will allow cgminer to continue
  72. even if one GPU hangs.
  73. - Try to do every curses manipulation under the curses lock.
  74. - Only use the sockoptfunction if the version of curl is recent enough.
  75. Version 1.4.1 - July 24, 2011
  76. - Do away with GET for dealing with longpoll forever. POST is the one that works
  77. everywhere, not the other way around.
  78. - Detect when the primary pool is lagging and start queueing requests on backup
  79. pools if possible before needing to roll work.
  80. - Load balancing puts more into the current pool if there are disabled pools.
  81. Fix.
  82. - Disable a GPU device should the thread fail to init.
  83. - Out of order command queue may fail on osx. Try without if it fails.
  84. - Fix possible dereference on blank inputs during input_pool.
  85. - Defines missing would segfault on --help when no sse mining is built in.
  86. - Revert "Free up resources/stale compilers." - didn't help.
  87. - Only try to print the status of active devices or it would crash.
  88. - Some hardware might benefit from the less OPS so there's no harm in leaving
  89. kernel changes that do that apart from readability of the code.
  90. Version 1.4.0 - July 23, 2011
  91. - Feature upgrade: Add keyboard input during runtime to allow modification of
  92. and viewing of numerous settings such as adding/removing pools, changing
  93. multipool management strategy, switching pools, changing intensiy, verbosity,
  94. etc. with a simple keypress menu system.
  95. - Free up resources/stale compilers.
  96. - Kernels are safely flushed in a way that allows out of order execution to
  97. work.
  98. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  99. seems to fix it.
  100. - Don't try to stop/cancel threads that don't exist.
  101. - Only set option to show devices and exit if built with opencl support.
  102. - Enable curses earlier and exit with message in main for messages to not be
  103. lost in curses windows.
  104. - Make it possible to enter server credentials with curses input if none are
  105. specified on the command line.
  106. - Abstract out a curses input function and separate input pool function to allow
  107. for live adding of pools later.
  108. - Remove the nil arguments check to allow starting without parameters.
  109. - Disable/enable echo & cbreak modes.
  110. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  111. verbose, normal, rpc protocol debugging and clear screen options.
  112. - Add pool option to input and display current pool status, pending code to
  113. allow live changes.
  114. - Add a bool for explicit enabling/disabling of pools.
  115. - Make input pool capable of bringing up pools while running.
  116. - Do one last check of the work before submitting it.
  117. - Implement the ability to live add, enable, disable, and switch to pools.
  118. - Only internally test for block changes when the work matches the current pool
  119. to prevent interleaved block change timing on multipools.
  120. - Display current pool management strategy to enable changing it on the fly.
  121. - The longpoll blanking of the current_block data may not be happening before
  122. the work is converted and appears to be a detected block change. Blank the
  123. current block be
  124. - Make --no-longpoll work again.
  125. - Abstract out active pools count.
  126. - Allow the pool strategy to be modified on the fly.
  127. - Display pool information on the fly as well.
  128. - Add a menu and separate out display options.
  129. - Clean up the messy way the staging thread communicates with the longpoll
  130. thread to determine who found the block first.
  131. - Make the input windows update immediately instead of needing a refresh.
  132. - Allow log interval to be set in the menu.
  133. - Allow scan settings to be modified at runtime.
  134. - Abstract out the longpoll start and explicitly restart it on pool change.
  135. - Make it possible to enable/disable longpoll.
  136. - Set priority correctly on multipools. Display priority and alive/dead
  137. information in display_pools.
  138. - Implement pool removal.
  139. - Limit rolltime work generation to 10 iterations only.
  140. - Decrease testing log to info level.
  141. - Extra refresh not required.
  142. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  143. - Tell getwork how much of a work item we're likely to complete for future
  144. splitting up of work.
  145. - Remove the mandatory work requirement at startup by testing for invalid work
  146. being passed which allows for work to be queued immediately. This also
  147. removes the requirem
  148. - Make sure intensity is carried over to thread count and is at least the
  149. minimum necessary to work.
  150. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  151. - Clear log window from consistent place. No need for locking since logging is
  152. disabled during input.
  153. - Cannot print the status of threads that don't exist so just queue enough work
  154. for the number of mining threads to prevent crash with -Q N.
  155. - Update phatk kernel to one with new parameters for slightly less overhead
  156. again. Make the queue kernel parameters call a function pointer to select
  157. phatk or poclbm.
  158. - Make it possible to select the choice of kernel on the command line.
  159. - Simplify the output part of the kernel. There's no demonstrable advantage from
  160. more complexity.
  161. - Merge pull request #18 from ycros/cgminer
  162. - No need to make leaveok changes win32 only.
  163. - Build support in for all SSE if possible and only set the default according to
  164. machine capabilities.
  165. - Win32 threading and longpoll keepalive fixes.
  166. - Win32: Fix for mangled output on the terminal on exit.
  167. Version 1.3.1 - July 20, 2011
  168. - Feature upgrade; Multiple strategies for failover. Choose from default which
  169. now falls back to a priority order from 1st to last, round robin which only
  170. changes pools when one is idle, rotate which changes pools at user-defined
  171. intervals, and load-balance which spreads the work evenly amongst all pools.
  172. - Implement pool rotation strategy.
  173. - Implement load balancing algorithm by rotating requests to each pool.
  174. - Timeout on failed discarding of staged requests.
  175. - Implement proper flagging of idle pools, test them with the watchdog thread,
  176. and failover correctly.
  177. - Move pool active test to own function.
  178. - Allow multiple strategies to be set for multipool management.
  179. - Track pool number.
  180. - Don't waste the work items queued on testing the pools at startup.
  181. - Reinstate the mining thread watchdog restart.
  182. - Add a getpoll bool into the thread information and don't restart threads stuck
  183. waiting on work.
  184. - Rename the idlenet bool for the pool for later use.
  185. - Allow the user/pass userpass urls to be input in any order.
  186. - When json rpc errors occur they occur in spits and starts, so trying to limit
  187. them with the comms error bool doesn't stop a flood of them appearing.
  188. - Reset the queued count to allow more work to be queued for the new pool on
  189. pool switch.
  190. Version 1.3.0 - July 19, 2011
  191. - Massive infrastructure update to support pool failover.
  192. - Accept multiple parameters for url, user and pass and set up structures of
  193. pool data accordingly.
  194. - Probe each pool for what it supports.
  195. - Implement per pool feature support according to rolltime support as
  196. advertised by server.
  197. - Do switching automatically based on a 300 second timeout of locally generated
  198. work or 60 seconds of no response from a server that doesn't support rolltime.
  199. - Implement longpoll server switching.
  200. - Keep per-pool data and display accordingly.
  201. - Make sure cgminer knows how long the pool has actually been out for before
  202. deeming it a prolonged outage.
  203. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  204. infinite rejects.
  205. - Make warning about empty http requests not show by default since many
  206. servers do this regularly.
  207. Version 1.2.8 - July 18, 2011
  208. - More OSX build fixes.
  209. - Add an sse4 algorithm to CPU mining.
  210. - Fix CPU mining with other algorithms not working.
  211. - Rename the poclbm file to ensure a new binary is built since.
  212. - We now are guaranteed to have one fresh work item after a block change and we
  213. should only discard staged requests.
  214. - Don't waste the work we retrieve from a longpoll.
  215. - Provide a control lock around global bools to avoid racing on them.
  216. - Iterating over 1026 nonces when confirming data from the GPU is old code
  217. and unnecessary and can lead to repeats/stales.
  218. - The poclbm kernel needs to be updated to work with the change to 4k sized
  219. output buffers.
  220. - longpoll seems to work either way with post or get but some servers prefer
  221. get so change to httpget.
  222. Version 1.2.7 - July 16, 2011
  223. - Show last 8 characters of share submitted in log.
  224. - Display URL connected to and user logged in as in status.
  225. - Display current block and when it was started in the status line.
  226. - Only pthread_join the mining threads if they exist as determined by
  227. pthread_cancel and don't fail on pthread_cancel.
  228. - Create a unique work queue for all getworks instead of binding it to thread 0
  229. to avoid any conflict over thread 0's queue.
  230. - Clean up the code to make it clear it's watchdog thread being messaged to
  231. restart the threads.
  232. - Check the current block description hasn't been blanked pending the real
  233. new current block data.
  234. - Re-enable signal handlers once the signal has been received to make it
  235. possible to kill cgminer if it fails to shut down.
  236. - Disable restarting of CPU mining threads pending further investigation.
  237. - Update longpoll messages.
  238. - Add new block data to status line.
  239. - Fix opencl tests for osx.
  240. - Only do local generation of work if the work item is not stale itself.
  241. - Check for stale work within the mining threads and grab new work if
  242. positive.
  243. - Test for idle network conditions and prevent threads from being restarted
  244. by the watchdog thread under those circumstances.
  245. - Make sure that local work generation does not continue indefinitely by
  246. stopping it after 10 minutes.
  247. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  248. nonce value instead of a compare and loop for a shorter code path.
  249. - Allow queue of zero and make that default again now that we can track how
  250. work is being queued versus staged. This can decrease reject rates.
  251. - Queue precisely the number of mining threads as longpoll_staged after a
  252. new block to not generate local work.
  253. Version 1.2.6 - July 15, 2011
  254. - Put a current system status line beneath the total work status line
  255. - Fix a counting error that would prevent cgminer from correctly detecting
  256. situations where getwork was failing - this would cause stalls sometimes
  257. unrecoverably.
  258. - Limit the maximum number of requests that can be put into the queue which
  259. otherwise could get arbitrarily long during a network outage.
  260. - Only count getworks that are real queue requests.
  261. Version 1.2.5 - July 15, 2011
  262. - Conflicting -n options corrected
  263. - Setting an intensity with -I disables dynamic intensity setting
  264. - Removed option to manually disable dynamic intensity
  265. - Improve display output
  266. - Implement signal handler and attempt to clean up properly on exit
  267. - Only restart threads that are not stuck waiting on mandatory getworks
  268. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  269. - Explicitly grab first work item to prevent false positive hardware errors
  270. due to working on uninitialised work structs
  271. - Add option for non curses --text-only output
  272. - Ensure we connect at least once successfully before continuing to retry to
  273. connect in case url/login parameters were wrong
  274. - Print an executive summary when cgminer is terminated
  275. - Make sure to refresh the status window
  276. Versions -> 1.2.4
  277. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  278. - Massive rewrite to incorporate GPU mining.
  279. - Incorporate original oclminer c code.
  280. - Rewrite gpu mining code to efficient work loops.
  281. - Implement per-card detection and settings.
  282. - Implement vector code.
  283. - Implement bfi int patching.
  284. - Import poclbm and phatk ocl kernels and use according to hardware type.
  285. - Implement customised optimised versions of opencl kernels.
  286. - Implement binary kernel generation and loading.
  287. - Implement preemptive asynchronous threaded work gathering and pushing.
  288. - Implement variable length extra work queues.
  289. - Optimise workloads to be efficient miners instead of getting lots of extra
  290. work.
  291. - Implement total hash throughput counters, per-card accepted, rejected and
  292. hw error count.
  293. - Staging and watchdog threads to prevent fallover.
  294. - Stale and reject share guarding.
  295. - Autodetection of new blocks without longpoll.
  296. - Dynamic setting of intensity to maintain desktop interactivity.
  297. - Curses interface with generous statistics and information.
  298. - Local generation of work (xroll ntime) when detecting poor network
  299. connectivity.
  300. Version 1.0.2
  301. - Linux x86_64 optimisations - Con Kolivas
  302. - Optimise for x86_64 by default by using sse2_64 algo
  303. - Detects CPUs and sets number of threads accordingly
  304. - Uses CPU affinity for each thread where appropriate
  305. - Sets scheduling policy to lowest possible
  306. - Minor performance tweaks
  307. Version 1.0.1 - May 14, 2011
  308. - OSX support
  309. Version 1.0 - May 9, 2011
  310. - jansson 2.0 compatibility
  311. - correct off-by-one in date (month) display output
  312. - fix platform detection
  313. - improve yasm configure bits
  314. - support full URL, in X-Long-Polling header
  315. Version 0.8.1 - March 22, 2011
  316. - Make --user, --pass actually work
  317. - Add User-Agent HTTP header to requests, so that server operators may
  318. more easily identify the miner client.
  319. - Fix minor bug in example JSON config file
  320. Version 0.8 - March 21, 2011
  321. - Support long polling: http://deepbit.net/longpolling.php
  322. - Adjust max workload based on scantime (default 5 seconds,
  323. or 60 seconds for longpoll)
  324. - Standardize program output, and support syslog on Unix platforms
  325. - Suport --user/--pass options (and "user" and "pass" in config file),
  326. as an alternative to the current --userpass
  327. Version 0.7.2 - March 14, 2011
  328. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  329. This is a substantial speed improvement on Intel CPUs.
  330. - Move all JSON-RPC I/O to separate thread. This reduces the
  331. number of HTTP connections from one-per-thread to one, reducing resource
  332. usage on upstream bitcoind / pool server.
  333. Version 0.7.1 - March 2, 2011
  334. - Add support for JSON-format configuration file. See example
  335. file example-cfg.json. Any long argument on the command line
  336. may be stored in the config file.
  337. - Timestamp each solution found
  338. - Improve sha256_4way performance. NOTE: This optimization makes
  339. the 'hash' debug-print output for sha256_way incorrect.
  340. - Use __builtin_expect() intrinsic as compiler micro-optimization
  341. - Build on Intel compiler
  342. - HTTP library now follows HTTP redirects
  343. Version 0.7 - February 12, 2011
  344. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  345. - Use bswap_32, if compiler intrinsic is not available
  346. - Disable full target validation (as opposed to simply H==0) for now
  347. Version 0.6.1 - February 4, 2011
  348. - Fully validate "hash < target", rather than simply stopping our scan
  349. if the high 32 bits are 00000000.
  350. - Add --retry-pause, to set length of pause time between failure retries
  351. - Display proof-of-work hash and target, if -D (debug mode) enabled
  352. - Fix max-nonce auto-adjustment to actually work. This means if your
  353. scan takes longer than 5 seconds (--scantime), the miner will slowly
  354. reduce the number of hashes you work on, before fetching a new work unit.
  355. Version 0.6 - January 29, 2011
  356. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  357. - BeeCee1's sha256 4way optimizations
  358. - lfm's byte swap optimization (improves via, cryptopp)
  359. - Fix non-working short options -q, -r
  360. Version 0.5 - December 28, 2010
  361. - Exit program, when all threads have exited
  362. - Improve JSON-RPC failure diagnostics and resilience
  363. - Add --quiet option, to disable hashmeter output.
  364. Version 0.3.3 - December 27, 2010
  365. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  366. Version 0.3.2 - December 23, 2010
  367. - Critical fix for sha256_via
  368. Version 0.3.1 - December 19, 2010
  369. - Critical fix for sha256_via
  370. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  371. Version 0.3 - December 18, 2010
  372. - Add crypto++ 32bit assembly implementation
  373. - show version upon 'minerd --help'
  374. - work around gcc 4.5.x bug that killed 4way performance
  375. Version 0.2.2 - December 6, 2010
  376. - VIA padlock implementation works now
  377. - Minor build and runtime fixes
  378. Version 0.2.1 - November 29, 2010
  379. - avoid buffer overflow when submitting solutions
  380. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  381. - minor internal optimizations and cleanups
  382. Version 0.2 - November 27, 2010
  383. - Add script for building a Windows installer
  384. - improve hash performance (hashmeter) statistics
  385. - add tcatm 4way sha256 implementation
  386. - Add experimental VIA Padlock sha256 implementation
  387. Version 0.1.2 - November 26, 2010
  388. - many small cleanups and micro-optimizations
  389. - build win32 exe using mingw
  390. - RPC URL, username/password become command line arguments
  391. - remove unused OpenSSL dependency
  392. Version 0.1.1 - November 24, 2010
  393. - Do not build sha256_generic module separately from cpuminer.
  394. Version 0.1 - November 24, 2010
  395. - Initial release.