NEWS 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  1. Version 2.1.0 - December 27, 2012
  2. - Major infrastructure upgrade with RPC interface for controlling via sockets
  3. encoded with/without JSON courtesy of Andrew Smith. Added documentation for
  4. use of the API and sample code to use with it.
  5. - Updated linux-usb-cgminer document.
  6. - Rewrite of longpoll mechanism to choose the current pool wherever possible to
  7. use for the longpoll, or any pool that supports longpoll if the current one
  8. does not.
  9. - Display information about longpoll when the chosen server has changed.
  10. - Fix the bug where longpoll generated work may have been sent back to the
  11. wrong pool, causing rejects.
  12. - Fix a few race conditions on closing cgminer which caused some of the crashes
  13. on exit.
  14. - Only adjust gpu engine speed in autotune mode if the gpu is currently at the
  15. performance level of that being adjusted.
  16. - Various fixes for parsing/writing of configuration files.
  17. - Do not add blank lines for threads of unused CPUs.
  18. - Show which pool is unresponsive on startup.
  19. - Only show GPU management menu item if GPUs are in use.
  20. - Align most device columns in the curses display.
  21. Version 2.0.8 - November 11, 2011
  22. - Make longpoll do a mandatory flushing of all work even if the block hasn't
  23. changed, thus supporting longpoll initiated work change of any sort and merged
  24. mining.
  25. - Byteswap computed hash in hashtest so it can be correctly checked. This fixes
  26. the very rare possibility that a block solve on solo mining was missed.
  27. - Add x86_64 w64 mingw32 target
  28. - Allow a fixed speed difference between memory and GPU clock speed with
  29. --gpu-memdiff that will change memory speed when GPU speed is changed in
  30. autotune mode.
  31. - Don't load the default config if a config file is specified on the command
  32. line.
  33. - Don't build VIA on apple since -a auto bombs instead of gracefully ignoring
  34. VIA failing.
  35. - Build fix for dlopen/dlclose errors in glibc.
  36. Version 2.0.7 - October 17, 2011
  37. - Support work without midstate or hash1, which are deprecated in bitcoind 0.5+
  38. - Go to kernel build should we fail to clCreateProgramWithBinary instead of
  39. failing on that device. This should fix the windows problems with devices not
  40. initialising.
  41. - Support new configuration file format courtesy of Chris Savery which can write
  42. the config file from the menu and will load it on startup.
  43. - Write unix configuration to .cgminer/cgminer.conf by default and prompt to
  44. overwrite if given a filename from the menu that exists.
  45. Version 2.0.6 - October 9, 2011
  46. - Must initialise the donorpool mutex or it fails on windows.
  47. - Don't make donation work interfere with block change detection allowing
  48. donation to work regardless of the block chain we're mining on.
  49. - Expire shares as stale with a separate timeout from the scantime, defaulting
  50. to 120 seconds.
  51. - Retry pools after a delay of 15 seconds if none can be contacted on startup
  52. unless a key is pressed.
  53. - Don't try to build adl features without having adl.
  54. - Properly check shares against target difficulty - This will no longer show
  55. shares when solo mining at all unless they're considered to be a block solve.
  56. - Add altivec 4 way (cpu mining) support courtesy of Gilles Risch.
  57. - Try to use SSL if the server supports it.
  58. - Display the total solved blocks on exit (LOL if you're lucky).
  59. - Use ADL activity report to tell us if a sick GPU is still busy suggesting it
  60. is hard hung and do not attempt to restart it.
  61. Version 2.0.5 - September 27, 2011
  62. - Intensity can now be set to dynamic or static values per-device.
  63. - New donation feature --donation sends a proportion of shares to author's
  64. account of choice, but is disabled by default!
  65. - The hash being displayed and block detection has been fixed.
  66. - Devices not being mined on will not attempt to be ADL managed.
  67. - Intensity is now displayed per GPU device.
  68. - Make longpoll attempt to restart as often as opt_retries specifies.
  69. - We weren't rolling work as often as we could.
  70. - Correct some memory management issues.
  71. - Build fixes.
  72. - Don't mess with GPUs if we don't have them.
  73. Version 2.0.4 - September 23, 2011
  74. - Confused Longpoll messages should be finally fixed with cgminer knowing for
  75. sure who found the new block and possibly avoiding a rare crash.
  76. - Display now shows the actual hash and will say BLOCK! if a block is deemed
  77. solved.
  78. - Extra spaces, which would double space lines on small terminals, have been
  79. removed.
  80. - Fan speed change is now damped if it is already heading in the correct
  81. direction to minimise overshoot.
  82. - Building without opencl libraries is fixed.
  83. - GPUs are autoselected if there is only one when in the GPU management menu.
  84. - GPU menu is refreshed instead of returning to status after a GPU change.
  85. Version 2.0.3 - September 17, 2011
  86. - Various modes of failure to set fanspeeds and adl values have been addressed
  87. and auto-fan should work now on most hardware, and possibly other values
  88. which previously would not have worked.
  89. - Fixed a crash that can occur on switching pools due to longpoll thread races.
  90. - Use ATISTREAMSDKROOT if available at build time.
  91. - Fanspeed management is returned to the driver default on exit instead of
  92. whatever it was when cgminer was started.
  93. - Logging of events deemed WARNING or ERR now will display even during
  94. periods where menu input is being awaited on.
  95. Version 2.0.2 - September 11, 2011
  96. - Exit cleanly if we abort before various threads are set up or if they no
  97. longer exist.
  98. - Fix a rare crash in HASH_DEL due to using different mutexes to protect the
  99. data.
  100. - Flag devices that have never started and don't allow enabling of devices
  101. without restarting them.
  102. - Only force the adapter speed to high if we've flagged this device as being
  103. managed.
  104. - Flag any devices with autofan or autogpu as being managed.
  105. - Use a re-entrant value to store what fanspeed we're trying to set in case the
  106. card doesn't support small changes. Force it to a multiple of 10% if it
  107. fails on trying to speed up the fan.
  108. - Do not bother resetting values to old ones if changes to GPU parameters report
  109. failure, instead returning a failure code only if the return value from get()
  110. differs.
  111. - Remove redundant check.
  112. - Only display supported values from fanspeed on change settings.
  113. - Missing bracket from output.
  114. - Display fan percentage on devices that only support reporting percent and not
  115. RPM.
  116. - Properly substitute DLOPEN flags to build with ADL support when -ldl is needed
  117. and not when opencl is not found.
  118. Version 2.0.1 - September 9, 2011
  119. - Fix building on 32bit glibc with dlopen with -lpthread and -ldl
  120. - ByteReverse is not used and the bswap opcode breaks big endian builds. Remove
  121. it.
  122. - Ignore whether the display is active or not since only display enabled devices
  123. work this way, and we skip over repeat entries anwyay.
  124. - Only reset values on exiting if we've ever modified them.
  125. - Flag adl as active if any card is successfully activated.
  126. - Add a thermal cutoff option as well and set it to 95 degrees by default.
  127. - Change the fan speed by only 5% if it's over the target temperature but less
  128. than the hysteresis value to minimise overshoot down in temperature.
  129. - Add a --no-adl option to disable ADL monitoring and GPU settings.
  130. - Only show longpoll received delayed message at verbose level.
  131. - Allow temperatures greater than 100 degrees.
  132. - We should be passing a float for the remainder of the vddc values.
  133. - Implement accepting a range of engine speeds as well to allow a lower limit to
  134. be specified on the command line.
  135. - Allow per-device fan ranges to be set and use them in auto-fan mode.
  136. - Display which GPU has overheated in warning message.
  137. - Allow temperature targets to be set on a per-card basis on the command line.
  138. - Display fan range in autofan status.
  139. - Setting the hysteresis is unlikely to be useful on the fly and doesn't belong
  140. in the per-gpu submenu.
  141. - With many cards, the GPU summaries can be quite long so use a terse output
  142. line when showing them all.
  143. - Use a terser device status line to show fan RPM as well when available.
  144. - Define max gpudevices in one macro.
  145. - Allow adapterid 0 cards to enumerate as a device as they will be non-AMD
  146. cards, and enable ADL on any AMD card.
  147. - Do away with the increasingly confusing and irrelevant total queued and
  148. efficiency measures per device.
  149. - Only display values in the log if they're supported and standardise device log
  150. line printing.
  151. Version 2.0.0 - September 6, 2011
  152. Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
  153. GPUs.
  154. New command line switches:
  155. --auto-fan- Automatically adjust all GPU fan speeds to maintain a target
  156. temperature
  157. --auto-gpu- Automatically adjust all GPU engine clock speeds to maintain
  158. a target temperature
  159. --gpu-engine <arg> Set the GPU engine (over)clock in Mhz - one value for all or
  160. separate by commas for per card.
  161. --gpu-fan <arg> Set the GPU fan percentage - one value for all or separate
  162. by commas for per card.
  163. --gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
  164. or separate by commas for per card.
  165. --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
  166. separate by commas for per card.
  167. --gpu-vddc <arg> Set the GPU voltage in Volts - one value for all or separate
  168. by commas for per card.
  169. --temp-hysteresis <arg> Set how much the temperature can fluctuate outside
  170. limits when automanaging speeds (default: 3)
  171. --temp-overheat <arg> Set the overheat temperature when automatically managing
  172. fan and GPU speeds (default: 85)
  173. --temp-target <arg> Set the target temperature when automatically managing fan
  174. and GPU speeds (default: 75)
  175. - Implement ATI ADL support for GPU parameter monitoring now and setting later
  176. (temp, fan, clocks etc.).
  177. - Check for the presence of the ADL header files in ADL_SDK.
  178. - Import adl_functions.h from amd overdrive ctrl.
  179. - Implement a setup function that tries to detect GPUs that support the ADL and
  180. link in the parameters into the gpus struct.
  181. - Put a summary of monitoring information from the GPU menu.
  182. - Implement changing memory speed and voltage on the fly.
  183. - Implement fan speed setting.
  184. - Minor corrections to set fan speed by percentage.
  185. - Make sure to read off the value in RPM only.
  186. - Implement auto fanspeed adjustment to maintain a target temperature and
  187. fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
  188. - Add an --auto-fan command line option to allow all GPUs to have autofan
  189. enabled from startup.
  190. - Add a gpu autotune option which adjusts GPU speed to maintain a target
  191. temperature within the bounds of the default GPU speed and any overclocking set.
  192. - Avoid a dereference if the longpoll thread doesn't exist.
  193. - Clean up by setting performance profiles and fan settings to startup levels on
  194. exit.
  195. - Add a small amount of hysteresis before lowering clock speed.
  196. - Allow target, overheat and hysteresis temperatures to be set from command
  197. line.
  198. - Combine all stats collating into one function to avoid repeating function
  199. calls on each variable.
  200. - Add gpu statistics to debugging output via the watchdog thread.
  201. - Implement menus to change temperature limits.
  202. - Implement setting the GPU engine clock speed of all devices or each device as
  203. a comma separated value.
  204. - Implement setting the GPU memory clock speed of all devices or each device as
  205. a comma separated value.
  206. - Implement setting the GPU voltage of all devices or each device as a comma
  207. separated value.
  208. - Implement setting the GPU fan speed of all devices or each device as a comma
  209. separated value.
  210. - Add support for monitoring powertune setting.
  211. - Implement changing of powertune value from the GPU change settings menu.
  212. - Get the value of powertune in get_stats.
  213. - Implement setting the GPU powertune value of all devices or each device as a
  214. comma separated value.
  215. - Remove the safety checks in speed setting since confirmation is done first in
  216. the menu, then show the new current values after a short pause.
  217. - Force the speed to high on startup and restore it to whatever the setting was
  218. on exit.
  219. - Add temperature to standard output where possible and use more compact output.
  220. - Move and print at the same time in curses to avoid random trampling display
  221. errors.
  222. - Update the status window only from the watchdog thread, do not rewrite the top
  223. status messages and only refresh once all the status window is complete,
  224. clearing the window each time to avoid corruption.
  225. - Set a safe starting fan speed if we're automanaging the speeds.
  226. - Provide locking around all adl calls to prevent races.
  227. - Lower profile settings cannot be higher than higher profile ones so link any
  228. drops in settings.
  229. - Add new needed text files to distribution.
  230. - Queue requests ignoring the number of staged clones since they get discarded
  231. very easily leading to false positives for pool not providing work fast enough.
  232. - Include libgen.h in opt.c to fix win32 compilation warnings.
  233. - Fix compilation warning on win32.
  234. - Add the directory name from the arguments cgminer was called from as well to
  235. allow it running from a relative pathname.
  236. - Add a --disable-adl option to configure and only enable it if opencl support
  237. exists.
  238. - Retry before returning a failure to get upstream work as a failure to avoid
  239. false positives for pool dead.
  240. - Retry also if the decoding of work fails.
  241. - Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
  242. is found in the response.
  243. Version 1.6.2 - September 2, 2011
  244. - Add --failover-only option to not leak work to backup pools when the primary
  245. pool is lagging.
  246. - Change recommendation to intensity 9 for dedicated miners.
  247. - Fix the bouncing short term value by allowing it to change dynamically when
  248. the latest value is very different from the rolling value, but damp the change
  249. when it gets close.
  250. - Use the curses_lock to protect the curses_active variable and test it under
  251. lock.
  252. - Go back to requesting work 2/3 of the way through the current scantime with
  253. CPU mining as reports of mining threads running out of work have occurred with
  254. only 5 seconds to retrieve work.
  255. - Add start and stop time scheduling for regular time of day running or once off
  256. start/stop options.
  257. - Print summary on quit modes.
  258. - Put some sanity checks on the times that can be input.
  259. - Give a verbose message when no active pools are found and pause before
  260. exiting.
  261. - Add verbose message when a GPU fails to initialise, and disable the correct
  262. GPU.
  263. - Cryptopp asm32 was not correctly updated to the incremental nonce code so the
  264. hash counter was bogus.
  265. - Get rid of poorly executed curl check.
  266. - If curl does not have sockopts, do not try to compile the
  267. json_rpc_call_sockopt_cb function, making it possible to build against older
  268. curl libraries.
  269. - Most people expect /usr/local when an unspecified prefix is used so change to
  270. that.
  271. - Rename localgen occasions to getwork fail occasions since localgen is
  272. unrelated now.
  273. Version 1.6.1 - August 29, 2011
  274. - Copy cgminer path, not cat it.
  275. - Switching between redrawing windows does not fix the crash with old
  276. libncurses, so redraw both windows, but only when the window size hasn't
  277. changed.
  278. - Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have
  279. 0 staged work items and any idle time.
  280. - Return -1 if no input is detected from the menu to prevent it being
  281. interpreted as a 0.
  282. - Make pthread, libcurl and libcurses library checks mandatory or fail.
  283. - Add a --disable-opencl configure option to make it possible to override
  284. detection of opencl and build without GPU mining support.
  285. - Confusion over the variable name for number of devices was passing a bogus
  286. value which likely was causing the zero sized binary issue.
  287. - cgminer no longer supports default url user and pass so remove them.
  288. - Don't show value of intensity since it's dynamic by default.
  289. - Add options to explicitly enable CPU mining or disable GPU mining.
  290. - Convert the opt queue into a minimum number of work items to have queued
  291. instead of an extra number to decrease risk of getting idle devices without
  292. increasing risk of higher rejects.
  293. - Statify tv_sort.
  294. - Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents
  295. build failure when yasm is installed but -msse2 is not specified.
  296. - Add some defines to configure.ac to enable exporting of values and packaging,
  297. and clean up output.
  298. - Give convenient summary at end of ./configure.
  299. - Display version information and add --version command line option, and make
  300. sure we flush stdout.
  301. - Enable curses after the mining threads are set up so that failure messages
  302. won't be lost in the curses interface.
  303. - Disable curses after inputting a pool if we requested no curses interface.
  304. - Add an option to break out after successfully mining a number of accepted
  305. shares.
  306. - Exit with a failed return code if we did not reach opt_shares.
  307. - The cpu mining work data can get modified before we copy it if we submit it
  308. async, and the sync submission is not truly sync anyway, so just submit it sync.
  309. Version 1.6.0 - August 26, 2011
  310. - Make restarting of GPUs optional for systems that hang on any attempt to
  311. restart them. Fix DEAD status by comparing it to last live time rather than
  312. last attempted restart time since that happens every minute.
  313. - Move staged threads to hashes so we can sort them by time.
  314. - Create a hash list of all the blocks created and search them to detect when a
  315. new block has definitely appeared, using that information to detect stale work
  316. and discard it.
  317. - Update configure.ac for newer autoconf tools.
  318. - Use the new hashes directly for counts instead of the fragile counters
  319. currently in use.
  320. - Update to latest sse2 code from cpuminer-ng.
  321. - Allow LP to reset block detect and block detect lp flags to know who really
  322. came first.
  323. - Get start times just before mining begins to not have very slow rise in
  324. average.
  325. - Add message about needing one server.
  326. - We can queue all the necessary work without hitting frequent stales now with
  327. the time and string stale protection active all the time. This prevents a
  328. pool being falsely labelled as not providing work fast enough.
  329. - Include uthash.h in distro.
  330. - Implement SSE2 32 bit assembly algorithm as well.
  331. - Fail gracefully if unable to open the opencl files.
  332. - Make cgminer look in the install directory for the .cl files making make
  333. install work correctly.
  334. - Allow a custom kernel path to be entered on the command line.
  335. - Bump threshhold for lag up to maximum queued but no staged work.
  336. - Remove fragile source patching for bitalign, vectors et. al and simply pass it
  337. with the compiler options.
  338. - Actually check the value returned for the x-roll-ntime extension to make sure
  339. it isn't saying N.
  340. - Prevent segfault on exit for when accessory threads don't exist.
  341. - Disable curl debugging with opt protocol since it spews to stderr.
  342. Version 1.5.8 - August 23, 2011
  343. - Minimise how much more work can be given in cpu mining threads each interval.
  344. - Make the fail-pause progressively longer each time it fails until the network
  345. recovers.
  346. - Only display the lagging message if we've requested the work earlier.
  347. - Clean up the pool switching to not be dependent on whether the work can roll
  348. or not by setting a lagging flag and then the idle flag.
  349. - Only use one thread to determine if a GPU is sick or well, and make sure to
  350. reset the sick restart attempt time.
  351. - The worksize was unintentionally changed back to 4k by mistake, this caused a
  352. slowdown.
  353. Version 1.5.7 - August 22, 2011
  354. - Fix a crash with --algo auto
  355. - Test at appropriate target difficulty now.
  356. - Add per-device statics log output with --per-device-stats
  357. - Fix breakage that occurs when 1 or 4 vectors are chosen on new phatk.
  358. - Make rolltime report debug level only now since we check it every work
  359. item.
  360. - Add the ability to enable/disable per-device stats on the fly and match
  361. logging on/off.
  362. - Explicitly tell the compiler to retain the program to minimise the chance of
  363. the zero sized binary errors.
  364. - Add one more instruction to avoid one branch point in the common path in the
  365. cl return code. Although this adds more ALUs overall and more branch points, the
  366. common path code has the same number of ALUs and one less jmp, jmps being more
  367. expensive.
  368. - Explicitly link in ws2_32 on the windows build and update README file on how
  369. to compile successfully on windows.
  370. - Release cl resources should the gpu mining thread abort.
  371. - Attempt to restart a GPU once every minute while it's sick.
  372. - Don't kill off the reinit thread if it fails to init a GPU but returns safely.
  373. - Only declare a GPU dead if there's been no sign of activity from the reinit
  374. thread for 10 mins.
  375. - Never automatically disable any pools but just specify them as idle if they're
  376. unresponsive at startup.
  377. - Use any longpoll available, and don't disable it if switching to a server that
  378. doesn't have it. This allows you to mine solo, yet use the longpoll from a pool
  379. even if the pool is the backup server.
  380. - Display which longpoll failed and don't free the ram for lp_url since it
  381. belongs to the pool hdr path.
  382. - Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al
  383. to compile.
  384. Version 1.5.6 - August 17, 2011
  385. - New phatk and poclbm kernels. Updated phatk to be in sync with latest 2.2
  386. courtesy of phateus. Custom modified to work best with cgminer.
  387. - Updated output buffer code to use a smaller buffer with the kernels.
  388. - Clean up the longpoll management to ensure the right paths go to the right
  389. pool and display whether we're connected to LP or not in the status line.
  390. Version 1.5.5 - August 16, 2011
  391. - Rework entirely the GPU restart code. Strike a balance between code that
  392. re-initialises the GPU entirely so that soft hangs in the code are properly
  393. managed, but if a GPU is completely hung, the thread restart code fails
  394. gracefully, so that it does not take out any other code or devices. This will
  395. allow cgminer to keep restarting GPUs that can be restarted, but continue
  396. mining even if one or more GPUs hangs which would normally require a reboot.
  397. - Add --submit-stale option which submits all shares, regardless of whether they
  398. would normally be considered stale.
  399. - Keep options in alphabetical order.
  400. - Probe for slightly longer for when network conditions are lagging.
  401. - Only display the CPU algo when we're CPU mining.
  402. - As we have keepalives now, blaming network flakiness on timeouts appears to
  403. have been wrong. Set a timeout for longpoll to 1 hour, and most other
  404. network connectivity to 1 minute.
  405. - Simplify output code and remove HW errors from CPU stats.
  406. - Simplify code and tidy output.
  407. - Only show cpu algo in summary if cpu mining.
  408. - Log summary at the end as per any other output.
  409. - Flush output.
  410. - Add a linux-usb-cgminer guide courtesy of Kano.
  411. Version 1.5.4 - August 14, 2011
  412. - Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
  413. will get forked by cgminer on startup. cgminer's stderr output subsequently gets
  414. piped directly to this command.
  415. - Allocate work from one function to be able to initialise variables added
  416. later.
  417. - Add missing fflush(stdout) for --ndevs and conclusion summary.
  418. - Preinitialise the devices only once on startup.
  419. - Move the non cl_ variables into the cgpu info struct to allow creating a new
  420. cl state on reinit, preserving known GPU variables.
  421. - Create a new context from scratch in initCQ in case something was corrupted to
  422. maximise our chance of succesfully creating a new worker thread. Hopefully this
  423. makes thread restart on GPU failure more reliable, without hanging everything
  424. in the case of a completely wedged GPU.
  425. - Display last initialised time in gpu management info, to know if a GPU has
  426. been re-initialised.
  427. - When pinging a sick cpu, flush finish and then ping it in a separate thread in
  428. the hope it recovers without needing a restart, but without blocking code
  429. elsewhere.
  430. - Only consider a pool lagging if we actually need the work and we have none
  431. staged despite queue requests stacking up. This decreases significantly the
  432. amount of work that leaks to the backup pools.
  433. - The can_roll function fails inappropriately in stale_work.
  434. - Only put the message that a pool is down if not pinging it every minute. This
  435. prevents cgminer from saying pool down at 1 minute intervals unless in debug
  436. mode.
  437. - Free all work in one place allowing us to perform actions on it in the future.
  438. - Remove the extra shift in the output code which was of dubious benefit. In
  439. fact in cgminer's implementation, removing this caused a miniscule speedup.
  440. - Test each work item to see if it can be rolled instead of per-pool and roll
  441. whenever possible, adhering to the 60 second timeout. This makes the period
  442. after a longpoll have smaller dips in throughput, as well as requiring less
  443. getworks overall thus increasing efficiency.
  444. - Stick to rolling only work from the current pool unless we're in load balance
  445. mode or lagging to avoid aggressive rolling imitating load balancing.
  446. - If a work item has had any mining done on it, don't consider it discarded
  447. work.
  448. Version 1.5.3 - July 30, 2011
  449. - Significant work went into attempting to make the thread restart code robust
  450. to identify sick threads, tag them SICK after 1 minute, then DEAD after 5
  451. minutes of inactivity and try to restart them. Instead of re-initialising the
  452. GPU completely, only a new cl context is created to avoid hanging the rest of
  453. the GPUs should the dead GPU be hung irrevocably.
  454. - Use correct application name in syslog.
  455. - Get rid of extra line feeds.
  456. - Use pkg-config to check for libcurl version
  457. - Implement per-thread getwork count with proper accounting to not over-account
  458. queued items when local work replaces it.
  459. - Create a command queue from the program created from source which allows us
  460. to flush the command queue in the hope it will not generate a zero sized binary
  461. any more.
  462. - Be more willing to get work from the backup pools if the work is simply being
  463. queued faster than it is being retrieved.
  464. Version 1.5.2 - July 28, 2011
  465. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  466. and provide the information in the status.
  467. - The work length in the miner thread gets smaller but doesn't get bigger if
  468. it's under 1 second. This could end up leading to CPU under-utilisation and
  469. lower and lower hash rates. Fix it by increasing work length if it drops
  470. under 1 second.
  471. - Make the "quiet" mode still update the status and display errors, and add a
  472. new --real-quiet option which disables all output and can be set once while
  473. running.
  474. - Update utility and efficiency figures when displaying them.
  475. - Some Intel HD graphics support the opencl commands but return errors since
  476. they don't support opencl. Don't fail with them, just provide a warning and
  477. disable GPU mining.
  478. - Add http:// if it's not explicitly set for URL entries.
  479. - Log to the output file at any time with warnings and errors, instead of just
  480. when verbose mode is on.
  481. - Display the correct current hash as per blockexplorer, truncated to 16
  482. characters, with just the time.
  483. Version 1.5.1 - July 27, 2011
  484. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  485. using the main window.
  486. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  487. - Only free the thread structures if the thread still exists.
  488. - Update both windows separately, but not at the same time to prevent the double
  489. refresh crash that old libncurses has. Do the window resize check only when
  490. about to redraw the log window to minimise ncurses cpu usage.
  491. - Abstract out the decay time function and use it to make hash_div a rolling
  492. average so it doesn't change too abruptly and divide work in chunks large enough
  493. to guarantee they won't overlap.
  494. - Sanity check to prove locking.
  495. - Don't take more than one lock at a time.
  496. - Make threads report out when they're queueing a request and report if they've
  497. failed.
  498. - Make cpu mining work submission asynchronous as well.
  499. - Properly detect stale work based on time from staging and discard instead of
  500. handing on, but be more lax about how long work can be divided for up to the
  501. scantime.
  502. - Do away with queueing work separately at the start and let each thread grab
  503. its own work as soon as it's ready.
  504. - Don't put an extra work item in the queue as each new device thread will do so
  505. itself.
  506. - Make sure to decrease queued count if we discard the work.
  507. - Attribute split work as local work generation.
  508. - If work has been cloned it is already at the head of the list and when being
  509. reinserted into the queue it should be placed back at the head of the list.
  510. - Dividing work is like the work is never removed at all so treat it as such.
  511. However the queued bool needs to be reset to ensure we *can* request more work
  512. even if we didn't initially.
  513. - Make the display options clearer.
  514. - Add debugging output to tq_push calls.
  515. - Add debugging output to all tq_pop calls.
  516. Version 1.5.0 - July 26, 2011
  517. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  518. this by detecting which threads cannot complete searching a work item within the
  519. scantime and then divide up a work item into multiple smaller work items.
  520. Detect the age of the work items and if they've been cloned before to prevent
  521. doing the same work over. If the work is too old to be divided, then see if it
  522. can be time rolled and do that to generate work. This dramatically decreases the
  523. number of queued work items from a pool leading to higher overall efficiency
  524. (but the same hashrate and share submission rate).
  525. - Don't request work too early for CPUs as CPUs will scan for the full
  526. opt_scantime anyway.
  527. - Simplify gpu management enable/disable/restart code.
  528. - Implement much more accurate rolling statistics per thread and per gpu and
  529. improve accuracy of rolling displayed values.
  530. - Make the rolling log-second average more accurate.
  531. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  532. try restarting them.
  533. - Keep track of which GPUs are alive versus enabled.
  534. - Start threads for devices that are even disabled, but don't allow them to
  535. start working.
  536. - The last pool is when we are low in total_pools, not active_pools.
  537. - Make the thread restart do a pthread_join after disabling the device, only
  538. re-enabling it if we succeed in restarting the thread. Do this from a separate
  539. thread so as to not block any other code.This will allow cgminer to continue
  540. even if one GPU hangs.
  541. - Try to do every curses manipulation under the curses lock.
  542. - Only use the sockoptfunction if the version of curl is recent enough.
  543. Version 1.4.1 - July 24, 2011
  544. - Do away with GET for dealing with longpoll forever. POST is the one that works
  545. everywhere, not the other way around.
  546. - Detect when the primary pool is lagging and start queueing requests on backup
  547. pools if possible before needing to roll work.
  548. - Load balancing puts more into the current pool if there are disabled pools.
  549. Fix.
  550. - Disable a GPU device should the thread fail to init.
  551. - Out of order command queue may fail on osx. Try without if it fails.
  552. - Fix possible dereference on blank inputs during input_pool.
  553. - Defines missing would segfault on --help when no sse mining is built in.
  554. - Revert "Free up resources/stale compilers." - didn't help.
  555. - Only try to print the status of active devices or it would crash.
  556. - Some hardware might benefit from the less OPS so there's no harm in leaving
  557. kernel changes that do that apart from readability of the code.
  558. Version 1.4.0 - July 23, 2011
  559. - Feature upgrade: Add keyboard input during runtime to allow modification of
  560. and viewing of numerous settings such as adding/removing pools, changing
  561. multipool management strategy, switching pools, changing intensiy, verbosity,
  562. etc. with a simple keypress menu system.
  563. - Free up resources/stale compilers.
  564. - Kernels are safely flushed in a way that allows out of order execution to
  565. work.
  566. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  567. seems to fix it.
  568. - Don't try to stop/cancel threads that don't exist.
  569. - Only set option to show devices and exit if built with opencl support.
  570. - Enable curses earlier and exit with message in main for messages to not be
  571. lost in curses windows.
  572. - Make it possible to enter server credentials with curses input if none are
  573. specified on the command line.
  574. - Abstract out a curses input function and separate input pool function to allow
  575. for live adding of pools later.
  576. - Remove the nil arguments check to allow starting without parameters.
  577. - Disable/enable echo & cbreak modes.
  578. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  579. verbose, normal, rpc protocol debugging and clear screen options.
  580. - Add pool option to input and display current pool status, pending code to
  581. allow live changes.
  582. - Add a bool for explicit enabling/disabling of pools.
  583. - Make input pool capable of bringing up pools while running.
  584. - Do one last check of the work before submitting it.
  585. - Implement the ability to live add, enable, disable, and switch to pools.
  586. - Only internally test for block changes when the work matches the current pool
  587. to prevent interleaved block change timing on multipools.
  588. - Display current pool management strategy to enable changing it on the fly.
  589. - The longpoll blanking of the current_block data may not be happening before
  590. the work is converted and appears to be a detected block change. Blank the
  591. current block be
  592. - Make --no-longpoll work again.
  593. - Abstract out active pools count.
  594. - Allow the pool strategy to be modified on the fly.
  595. - Display pool information on the fly as well.
  596. - Add a menu and separate out display options.
  597. - Clean up the messy way the staging thread communicates with the longpoll
  598. thread to determine who found the block first.
  599. - Make the input windows update immediately instead of needing a refresh.
  600. - Allow log interval to be set in the menu.
  601. - Allow scan settings to be modified at runtime.
  602. - Abstract out the longpoll start and explicitly restart it on pool change.
  603. - Make it possible to enable/disable longpoll.
  604. - Set priority correctly on multipools. Display priority and alive/dead
  605. information in display_pools.
  606. - Implement pool removal.
  607. - Limit rolltime work generation to 10 iterations only.
  608. - Decrease testing log to info level.
  609. - Extra refresh not required.
  610. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  611. - Tell getwork how much of a work item we're likely to complete for future
  612. splitting up of work.
  613. - Remove the mandatory work requirement at startup by testing for invalid work
  614. being passed which allows for work to be queued immediately. This also
  615. removes the requirem
  616. - Make sure intensity is carried over to thread count and is at least the
  617. minimum necessary to work.
  618. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  619. - Clear log window from consistent place. No need for locking since logging is
  620. disabled during input.
  621. - Cannot print the status of threads that don't exist so just queue enough work
  622. for the number of mining threads to prevent crash with -Q N.
  623. - Update phatk kernel to one with new parameters for slightly less overhead
  624. again. Make the queue kernel parameters call a function pointer to select
  625. phatk or poclbm.
  626. - Make it possible to select the choice of kernel on the command line.
  627. - Simplify the output part of the kernel. There's no demonstrable advantage from
  628. more complexity.
  629. - Merge pull request #18 from ycros/cgminer
  630. - No need to make leaveok changes win32 only.
  631. - Build support in for all SSE if possible and only set the default according to
  632. machine capabilities.
  633. - Win32 threading and longpoll keepalive fixes.
  634. - Win32: Fix for mangled output on the terminal on exit.
  635. Version 1.3.1 - July 20, 2011
  636. - Feature upgrade; Multiple strategies for failover. Choose from default which
  637. now falls back to a priority order from 1st to last, round robin which only
  638. changes pools when one is idle, rotate which changes pools at user-defined
  639. intervals, and load-balance which spreads the work evenly amongst all pools.
  640. - Implement pool rotation strategy.
  641. - Implement load balancing algorithm by rotating requests to each pool.
  642. - Timeout on failed discarding of staged requests.
  643. - Implement proper flagging of idle pools, test them with the watchdog thread,
  644. and failover correctly.
  645. - Move pool active test to own function.
  646. - Allow multiple strategies to be set for multipool management.
  647. - Track pool number.
  648. - Don't waste the work items queued on testing the pools at startup.
  649. - Reinstate the mining thread watchdog restart.
  650. - Add a getpoll bool into the thread information and don't restart threads stuck
  651. waiting on work.
  652. - Rename the idlenet bool for the pool for later use.
  653. - Allow the user/pass userpass urls to be input in any order.
  654. - When json rpc errors occur they occur in spits and starts, so trying to limit
  655. them with the comms error bool doesn't stop a flood of them appearing.
  656. - Reset the queued count to allow more work to be queued for the new pool on
  657. pool switch.
  658. Version 1.3.0 - July 19, 2011
  659. - Massive infrastructure update to support pool failover.
  660. - Accept multiple parameters for url, user and pass and set up structures of
  661. pool data accordingly.
  662. - Probe each pool for what it supports.
  663. - Implement per pool feature support according to rolltime support as
  664. advertised by server.
  665. - Do switching automatically based on a 300 second timeout of locally generated
  666. work or 60 seconds of no response from a server that doesn't support rolltime.
  667. - Implement longpoll server switching.
  668. - Keep per-pool data and display accordingly.
  669. - Make sure cgminer knows how long the pool has actually been out for before
  670. deeming it a prolonged outage.
  671. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  672. infinite rejects.
  673. - Make warning about empty http requests not show by default since many
  674. servers do this regularly.
  675. Version 1.2.8 - July 18, 2011
  676. - More OSX build fixes.
  677. - Add an sse4 algorithm to CPU mining.
  678. - Fix CPU mining with other algorithms not working.
  679. - Rename the poclbm file to ensure a new binary is built since.
  680. - We now are guaranteed to have one fresh work item after a block change and we
  681. should only discard staged requests.
  682. - Don't waste the work we retrieve from a longpoll.
  683. - Provide a control lock around global bools to avoid racing on them.
  684. - Iterating over 1026 nonces when confirming data from the GPU is old code
  685. and unnecessary and can lead to repeats/stales.
  686. - The poclbm kernel needs to be updated to work with the change to 4k sized
  687. output buffers.
  688. - longpoll seems to work either way with post or get but some servers prefer
  689. get so change to httpget.
  690. Version 1.2.7 - July 16, 2011
  691. - Show last 8 characters of share submitted in log.
  692. - Display URL connected to and user logged in as in status.
  693. - Display current block and when it was started in the status line.
  694. - Only pthread_join the mining threads if they exist as determined by
  695. pthread_cancel and don't fail on pthread_cancel.
  696. - Create a unique work queue for all getworks instead of binding it to thread 0
  697. to avoid any conflict over thread 0's queue.
  698. - Clean up the code to make it clear it's watchdog thread being messaged to
  699. restart the threads.
  700. - Check the current block description hasn't been blanked pending the real
  701. new current block data.
  702. - Re-enable signal handlers once the signal has been received to make it
  703. possible to kill cgminer if it fails to shut down.
  704. - Disable restarting of CPU mining threads pending further investigation.
  705. - Update longpoll messages.
  706. - Add new block data to status line.
  707. - Fix opencl tests for osx.
  708. - Only do local generation of work if the work item is not stale itself.
  709. - Check for stale work within the mining threads and grab new work if
  710. positive.
  711. - Test for idle network conditions and prevent threads from being restarted
  712. by the watchdog thread under those circumstances.
  713. - Make sure that local work generation does not continue indefinitely by
  714. stopping it after 10 minutes.
  715. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  716. nonce value instead of a compare and loop for a shorter code path.
  717. - Allow queue of zero and make that default again now that we can track how
  718. work is being queued versus staged. This can decrease reject rates.
  719. - Queue precisely the number of mining threads as longpoll_staged after a
  720. new block to not generate local work.
  721. Version 1.2.6 - July 15, 2011
  722. - Put a current system status line beneath the total work status line
  723. - Fix a counting error that would prevent cgminer from correctly detecting
  724. situations where getwork was failing - this would cause stalls sometimes
  725. unrecoverably.
  726. - Limit the maximum number of requests that can be put into the queue which
  727. otherwise could get arbitrarily long during a network outage.
  728. - Only count getworks that are real queue requests.
  729. Version 1.2.5 - July 15, 2011
  730. - Conflicting -n options corrected
  731. - Setting an intensity with -I disables dynamic intensity setting
  732. - Removed option to manually disable dynamic intensity
  733. - Improve display output
  734. - Implement signal handler and attempt to clean up properly on exit
  735. - Only restart threads that are not stuck waiting on mandatory getworks
  736. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  737. - Explicitly grab first work item to prevent false positive hardware errors
  738. due to working on uninitialised work structs
  739. - Add option for non curses --text-only output
  740. - Ensure we connect at least once successfully before continuing to retry to
  741. connect in case url/login parameters were wrong
  742. - Print an executive summary when cgminer is terminated
  743. - Make sure to refresh the status window
  744. Versions -> 1.2.4
  745. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  746. - Massive rewrite to incorporate GPU mining.
  747. - Incorporate original oclminer c code.
  748. - Rewrite gpu mining code to efficient work loops.
  749. - Implement per-card detection and settings.
  750. - Implement vector code.
  751. - Implement bfi int patching.
  752. - Import poclbm and phatk ocl kernels and use according to hardware type.
  753. - Implement customised optimised versions of opencl kernels.
  754. - Implement binary kernel generation and loading.
  755. - Implement preemptive asynchronous threaded work gathering and pushing.
  756. - Implement variable length extra work queues.
  757. - Optimise workloads to be efficient miners instead of getting lots of extra
  758. work.
  759. - Implement total hash throughput counters, per-card accepted, rejected and
  760. hw error count.
  761. - Staging and watchdog threads to prevent fallover.
  762. - Stale and reject share guarding.
  763. - Autodetection of new blocks without longpoll.
  764. - Dynamic setting of intensity to maintain desktop interactivity.
  765. - Curses interface with generous statistics and information.
  766. - Local generation of work (xroll ntime) when detecting poor network
  767. connectivity.
  768. Version 1.0.2
  769. - Linux x86_64 optimisations - Con Kolivas
  770. - Optimise for x86_64 by default by using sse2_64 algo
  771. - Detects CPUs and sets number of threads accordingly
  772. - Uses CPU affinity for each thread where appropriate
  773. - Sets scheduling policy to lowest possible
  774. - Minor performance tweaks
  775. Version 1.0.1 - May 14, 2011
  776. - OSX support
  777. Version 1.0 - May 9, 2011
  778. - jansson 2.0 compatibility
  779. - correct off-by-one in date (month) display output
  780. - fix platform detection
  781. - improve yasm configure bits
  782. - support full URL, in X-Long-Polling header
  783. Version 0.8.1 - March 22, 2011
  784. - Make --user, --pass actually work
  785. - Add User-Agent HTTP header to requests, so that server operators may
  786. more easily identify the miner client.
  787. - Fix minor bug in example JSON config file
  788. Version 0.8 - March 21, 2011
  789. - Support long polling: http://deepbit.net/longpolling.php
  790. - Adjust max workload based on scantime (default 5 seconds,
  791. or 60 seconds for longpoll)
  792. - Standardize program output, and support syslog on Unix platforms
  793. - Suport --user/--pass options (and "user" and "pass" in config file),
  794. as an alternative to the current --userpass
  795. Version 0.7.2 - March 14, 2011
  796. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  797. This is a substantial speed improvement on Intel CPUs.
  798. - Move all JSON-RPC I/O to separate thread. This reduces the
  799. number of HTTP connections from one-per-thread to one, reducing resource
  800. usage on upstream bitcoind / pool server.
  801. Version 0.7.1 - March 2, 2011
  802. - Add support for JSON-format configuration file. See example
  803. file example-cfg.json. Any long argument on the command line
  804. may be stored in the config file.
  805. - Timestamp each solution found
  806. - Improve sha256_4way performance. NOTE: This optimization makes
  807. the 'hash' debug-print output for sha256_way incorrect.
  808. - Use __builtin_expect() intrinsic as compiler micro-optimization
  809. - Build on Intel compiler
  810. - HTTP library now follows HTTP redirects
  811. Version 0.7 - February 12, 2011
  812. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  813. - Use bswap_32, if compiler intrinsic is not available
  814. - Disable full target validation (as opposed to simply H==0) for now
  815. Version 0.6.1 - February 4, 2011
  816. - Fully validate "hash < target", rather than simply stopping our scan
  817. if the high 32 bits are 00000000.
  818. - Add --retry-pause, to set length of pause time between failure retries
  819. - Display proof-of-work hash and target, if -D (debug mode) enabled
  820. - Fix max-nonce auto-adjustment to actually work. This means if your
  821. scan takes longer than 5 seconds (--scantime), the miner will slowly
  822. reduce the number of hashes you work on, before fetching a new work unit.
  823. Version 0.6 - January 29, 2011
  824. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  825. - BeeCee1's sha256 4way optimizations
  826. - lfm's byte swap optimization (improves via, cryptopp)
  827. - Fix non-working short options -q, -r
  828. Version 0.5 - December 28, 2010
  829. - Exit program, when all threads have exited
  830. - Improve JSON-RPC failure diagnostics and resilience
  831. - Add --quiet option, to disable hashmeter output.
  832. Version 0.3.3 - December 27, 2010
  833. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  834. Version 0.3.2 - December 23, 2010
  835. - Critical fix for sha256_via
  836. Version 0.3.1 - December 19, 2010
  837. - Critical fix for sha256_via
  838. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  839. Version 0.3 - December 18, 2010
  840. - Add crypto++ 32bit assembly implementation
  841. - show version upon 'minerd --help'
  842. - work around gcc 4.5.x bug that killed 4way performance
  843. Version 0.2.2 - December 6, 2010
  844. - VIA padlock implementation works now
  845. - Minor build and runtime fixes
  846. Version 0.2.1 - November 29, 2010
  847. - avoid buffer overflow when submitting solutions
  848. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  849. - minor internal optimizations and cleanups
  850. Version 0.2 - November 27, 2010
  851. - Add script for building a Windows installer
  852. - improve hash performance (hashmeter) statistics
  853. - add tcatm 4way sha256 implementation
  854. - Add experimental VIA Padlock sha256 implementation
  855. Version 0.1.2 - November 26, 2010
  856. - many small cleanups and micro-optimizations
  857. - build win32 exe using mingw
  858. - RPC URL, username/password become command line arguments
  859. - remove unused OpenSSL dependency
  860. Version 0.1.1 - November 24, 2010
  861. - Do not build sha256_generic module separately from cpuminer.
  862. Version 0.1 - November 24, 2010
  863. - Initial release.