[GH-ISSUE #2675] Try -mtune=generic #1734

Open
opened 2026-10-15 04:23:45 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (Aug 15, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2675

See #2674. We should see if this produces faster code in some cases.

Originally created by @magnumripper on GitHub (Aug 15, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2675 See #2674. We should see if this produces faster code in some cases.
Author
Owner

@solardiz commented on GitHub (Aug 17, 2017):

Specifically, this refers to my comment:

"in my recent testing of php_mt_seed, I found that -march=native caused an 8% slowdown on Haswell compared to -mavx2. I worked around that by adding -mtune=generic right after -march=native. This is a gcc issue (I think its attempt at better instruction scheduling for Haswell fails when the source code contains more than a usual amount of parallelism, such as through explicit interleaving, like we do in both of these projects), but anyhow we might want to see if adding -mtune=generic provides a net speedup for JtR as well."

<!-- gh-comment-id:323104098 --> @solardiz commented on GitHub (Aug 17, 2017): Specifically, this refers to my comment: "in my recent testing of php_mt_seed, I found that `-march=native` caused an 8% slowdown on Haswell compared to `-mavx2`. I worked around that by adding `-mtune=generic` right after `-march=native`. This is a gcc issue (I think its attempt at better instruction scheduling for Haswell fails when the source code contains more than a usual amount of parallelism, such as through explicit interleaving, like we do in both of these projects), but anyhow we might want to see if adding `-mtune=generic` provides a net speedup for JtR as well."
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1734
No description provided.