mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #375] Add FMT_OMP_BAD for formats that scale poorly. #113
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#113
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 (Sep 16, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/375
LM has FMT_OMP_BAD. The only effect this flag has is a warning/notice that it might be better using --fork. We could add this for some raw formats (including select dynamic ones).
Note that it should be (FMT_OMP | FMT_OMP_BAD) and not just the latter (unless we change the definition in formats.h so FMT_OMP_BAD includes FMT_OMP).
@kholia commented on GitHub (Sep 17, 2013):
Sounds like a good idea. Lot of my formats have OMP scaling problems.
@magnumripper commented on GitHub (Sep 30, 2013):
ce8104fadded it for nt2, raw-md4 and raw-md5.@magnumripper commented on GitHub (Jan 9, 2014):
@jfoug it should be added for a number of dynamic formats too. If we have this in place we can make a john.conf option for automatically setting OMP_NUM_THREADS=1 for these formats if you run a machine that scales really poor (some AMDs I've seen perform like sh!t using OMP for raw fast formats).
@kholia commented on GitHub (Jan 10, 2014):
@magnumripper
How do I "mark" a format to say that it scales well with OMP?
Should we have "FMT_OMP_GOOD" flag too or is adding a comment to the format enough?
@magnumripper commented on GitHub (Jan 10, 2014):
You just do not set FMT_OMP_BAD. There would be no sense in adding an inverted flag for that.
@kholia commented on GitHub (Jan 10, 2014):
I do not want to test each and every format for bad OMP behaviour. How do I skip over formats which are known to be good already?
@magnumripper commented on GitHub (Jan 11, 2014):
In general you can tell from the raw speed. NT is like 50Mc/s on one core so scales like crap. DCC2 is like 1Kc/s so scales nearly linearly.
@magnumripper commented on GitHub (Jan 11, 2014):
But if you want to test all formats, I'd just --test all of them in non-OMP and output to file, then again with OMP to another file. Then use relbench.pl with
-vto look for formats that scale poorly (ignore many-salts figures).@jfoug commented on GitHub (Nov 22, 2014):
Should the format do anything other than setting the flag? Will john core handle switching OMP on and off at some later time? The reason I ask, is because there is a granularity computation done at the time I build the format structures (WAY before any call to init), so it would be nice to know that a certain format was NOT going to be OMP, so that the count set properly for non OMP runs.
@magnumripper commented on GitHub (Nov 22, 2014):
OMP will still be enabled so that is probably not an issue. AFAIK the only thing this flag does is print a warning that -fork or MPI might be better.
But if we implement what I wrote in https://github.com/magnumripper/JohnTheRipper/issues/375#issuecomment-31905863, you might have to consider that.
@jfoug commented on GitHub (Nov 22, 2014):
c7896a1Here are the ratios that were removed:
@magnumripper commented on GitHub (Sep 4, 2015):
I think @loverszhaokai addressed this during GSoC