Con Kolivas
b2cbaa1ae4
Send a hung device a command. If it returns, try to reinitialise it.
14 years ago
Con Kolivas
a702f599d3
Disable the reinit_thread option till we know it actually works.
14 years ago
Con Kolivas
bb575a5585
Reference correct GPU and only try to restart if it reaches DEAD.
14 years ago
Con Kolivas
947a74bfa3
Differentiate thread failure from GPU failure by declaring a GPU sick first and trying to restart the thread without re-initialising the card.
...
If that fails, then try once more at ten minutes and declare it dead.
This should prevent an attempted re-initialising of the GPU from taking out other GPUs.
14 years ago
Con Kolivas
20ce1ebf2a
Typo.
14 years ago
Con Kolivas
3803760689
Reimplement the per-thread getwork count with proper accounting at get_work().
14 years ago
Con Kolivas
0fe22d8d94
Revert "Only update the thread getwork queue count if it actually results in a getwork request from the server."
...
This reverts commit 2e607d44f2
.
The count looks far too difficult to add up with this change since many are queued generically.
14 years ago
Con Kolivas
2e607d44f2
Only update the thread getwork queue count if it actually results in a getwork request from the server.
14 years ago
Con Kolivas
5b9bfedda1
Display the correct current hash as per blockexplorer, truncated to 16 characters, with just the time.
14 years ago
Con Kolivas
c94737ceab
Add http:// if it's not explicitly set for URL entries.
14 years ago
Con Kolivas
f0fe82ea37
Some Intel HD graphics support the opencl commands but return errors since they don't support opencl. Don't fail with them, just provide a warning and disable GPU mining.
14 years ago
Con Kolivas
10fa821e33
Update utility and efficiency figures when displaying them.
14 years ago
Con Kolivas
0006eb2da4
Make the "quiet" mode still update the status and display errors, and add a new --real-quiet option which disables all output and can be set once while running.
14 years ago
Con Kolivas
da06a348d0
The work length in the miner thread gets smaller but doesn't get bigger if it's under 1 second.
...
This could end up leading to CPU under-utilisation and lower and lower hash rates.
Fix it by increasing work length if it drops under 1 second.
14 years ago
Con Kolivas
a0924933d0
Restarting a hung GPU can hang the rest of the GPUs so just declare it dead and provide the information in the status.
14 years ago
Con Kolivas
45faff2e26
Add debugging output to all tq_pop calls.
14 years ago
Con Kolivas
2e2b2ba14c
Add debugging output to tq_push calls.
14 years ago
Con Kolivas
70fa8f319b
Make the display options clearer.
14 years ago
Con Kolivas
c7978f11ed
Dividing work is like the work is never removed at all so treat it as such. However the queued bool needs to be reset to ensure we *can* request more work even if we didn't initially.
14 years ago
Con Kolivas
e82e390295
If work has been cloned it is already at the head of the list and when being reinserted into the queue it should be placed back at the head of the list.
14 years ago
Con Kolivas
9c12d49684
Attribute split work as local work generation.
14 years ago
Con Kolivas
720032dacd
Make sure to decrease queued count if we discard the work.
14 years ago
Con Kolivas
967acd39bd
Don't put an extra work item in the queue as each new device thread will do so itself.
14 years ago
Con Kolivas
82698fbffd
Do away with queueing work separately at the start and let each thread grab its own work as soon as it's ready.
14 years ago
Con Kolivas
6cc8d22beb
Properly detect stale work based on time from staging and discard instead of handing on, but be more lax about how long work can be divided for up to the scantime.
14 years ago
Con Kolivas
45d5435781
Make cpu mining work submission asynchronous as well.
14 years ago
Con Kolivas
380d145c64
Make threads report out when they're queueing a request and report if they've failed.
14 years ago
Con Kolivas
324dd93bb7
Don't take more than one lock at a time.
14 years ago
Con Kolivas
98f609b5be
Sanity check to prove locking.
14 years ago
Con Kolivas
c72840284f
Abstract out the decay time function and use it to make hash_div a rolling average so it doesn't change too abruptly and divide work in chunks large enough to guarantee they won't overlap.
14 years ago
Con Kolivas
a48895829e
Update both windows separately, but not at the same time to prevent the double refresh crash that old libncurses has.
...
Do the window resize check only when about to redraw the log window to minimise ncurses cpu usage.
14 years ago
Con Kolivas
6f905932af
Only free the thread structures if the thread still exists.
14 years ago
Con Kolivas
40bc82d4ca
Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
14 years ago
Con Kolivas
1aadfc580b
Two redraws in a row cause a crash in old libncurses so just do one redraw using the main window.
14 years ago
Con Kolivas
93b284dbca
Best to serialise the restarting of threads to avoid device initialisation issues.
14 years ago
Con Kolivas
d5d56920dd
Off by one limit in device selection.
14 years ago
Con Kolivas
f9bc3771b4
The first work item is tricky so don't try and divide it up to begin with.
14 years ago
Con Kolivas
1536e085da
Increase efficiency of slow mining threads such as CPU miners dramatically.
...
Do this by detecting which threads cannot complete searching a work item within the scantime and then divide up a work item into multiple smaller work items.
Detect the age of the work items and if they've been cloned before to prevent doing the same work over.
If the work is too old to be divided, then see if it can be time rolled and do that to generate work.
This dramatically decreases the number of queued work items from a pool leading to higher overall efficiency (but the same hashrate and share submission rate).
14 years ago
Con Kolivas
7e7a5f777e
Don't request work too early for CPUs as CPUs will scan for the full opt_scantime anyway.
14 years ago
Con Kolivas
6045c4d161
Simplify gpu management enable/disable/restart code.
14 years ago
Con Kolivas
fa17f03432
Implement much more accurate rolling statistics per thread and per gpu and improve accuracy of rolling displayed values.
14 years ago
Con Kolivas
ce6af96821
Make the rolling log-second average more accurate.
14 years ago
Con Kolivas
7707ed4db1
Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or try restarting them.
...
Keep track of which GPUs are alive versus enabled.
Start threads for devices that are even disabled, but don't allow them to start working.
14 years ago
Con Kolivas
7143c25b72
The last pool is when we are low in total_pools, not active_pools.
14 years ago
Con Kolivas
a53716dc7f
Fix compiler warnings.
14 years ago
Con Kolivas
b3d20b573c
Make the thread restart do a pthread_join after disabling the device, only re-enabling it if we succeed in restarting the thread.
...
Do this from a separate thread so as to not block any other code.
This will allow cgminer to continue even if one GPU hangs.
14 years ago
Con Kolivas
a187fe1e7b
Try to do every curses manipulation under the curses lock.
14 years ago
Con Kolivas
508c5c4b12
Detect when the primary pool is lagging and start queueing requests on backup pools if possible before needing to roll work.
14 years ago
Con Kolivas
afcff07012
Load balancing puts more into the current pool if there are disabled pools. Fix.
14 years ago
Con Kolivas
27c7d2a480
Disable a GPU device should the thread fail to init.
14 years ago