mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #410] mscash2-opencl still don't handle weak devices properly. #139
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (Oct 24, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/410
Originally assigned to: @sayan1an on GitHub.
Here's an example on 9600GT
If you look at line 459 and above, you can see that your error-handling is too early, at least for nvidia. Note that it's the auto-tune that fails - the format works fine on this device given specific LWS/GWS figures:
@sayan1an commented on GitHub (Oct 25, 2013):
Hi magnum,
On Thu, Oct 24, 2013 at 11:50 PM, magnum notifications@github.com wrote:
Please test this experimental patch.
Regards,
Sayantan
@magnumripper commented on GitHub (Oct 25, 2013):
Which? Where?
@sayan1an commented on GitHub (Oct 25, 2013):
Sorry, github doesn't show attached files. Please check your mail.
@magnumripper commented on GitHub (Oct 25, 2013):
OK, I do not think this is the right solution. First, we should handle weak devices but not let them spoil performance on powerful devices. Second, we should actually query devices and tune to them. I do have an experimental patch (from just hours ago) that does handle 9600GT but I need to regression test it. I think it might be half of the answer. I'll keep in touch.
@magnumripper commented on GitHub (Oct 25, 2013):
Don't get me wrong, I will try this out too.
@sayan1an commented on GitHub (Oct 26, 2013):
On Sat, Oct 26, 2013 at 2:50 AM, magnum notifications@github.com wrote:
Regards,
Sayantan
@magnumripper commented on GitHub (Oct 26, 2013):
I think the exact problem is it hits the five second watchdog during LWS tune, so your patch probably solves it - but maybe not for some other even weaker card.
I had some idea of writing a benchmark kernel that common-opencl.c can launch just to give a "horse power figure" for any card. So we could call a shared function and get a "factor" to use in situations like this. The problem is that it depends a lot on what you are doing. The GTX 570 is faster than HD7970 in some cases and a lot slower in other.
@magnumripper commented on GitHub (Oct 26, 2013):
BTW most other formats starts with a low figure and double it each time. If a kernel duration hits 200ms or total duration (for split/looped kernels) hits 10s, we don't test higher figures. This is pretty safe while it quickly finds good figures even for flagship GPUs.
@magnumripper commented on GitHub (Oct 28, 2013):
I tried your patch. It now survives lws enumeration but fails (watchdog timer) during benchmark run or self-test:
@sayan1an commented on GitHub (Oct 31, 2013):
Please test 26055
@magnumripper commented on GitHub (Nov 6, 2013):
Seems fine now on the 9600GT. But the enumeration takes 45 seconds compared to 3 seconds for wpapsk-opencl.
@magnumripper commented on GitHub (Jun 24, 2015):
When toying with CryptoHaze I noticed the current OSX drivers are capable of running the GT650M and the HD Graphics 4000 simultaneously. This did not work at all last time I tried (probably with Maverick). So I tried this with mscash-opencl:
Works just fine 👍
This is not very interesting for actual cracking on these toy devices, but it's excellent for development!
@magnumripper commented on GitHub (Jun 24, 2015):
Works like a champ using --fork too, for other formats.