[GH-ISSUE #1719] RAR OpenCL length-sorting #1132

Closed
opened 2026-10-14 03:36:15 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (Aug 28, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1719

Originally assigned to: @magnumripper on GitHub.

Finally tried this today. I caught a bunch of unrelated bugs while at it.

But the current rough version is very disappointing. It ends up at about 37% of original speed given varying length input (incremental mode -min-len=5, 60 seconds). I really can't see why.

Originally created by @magnumripper on GitHub (Aug 28, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1719 Originally assigned to: @magnumripper on GitHub. Finally tried this today. I caught a bunch of unrelated bugs while at it. But the current rough version is very disappointing. It ends up at about 37% of original speed given varying length input (incremental mode -min-len=5, 60 seconds). I really can't see why.
bsakaguchi 2026-10-14 03:36:15 +07:00
Author
Owner

@magnumripper commented on GitHub (Aug 28, 2015):

I wonder if this whole idea is flawed. For SIMD CPU it's a whole other story. But in this case, we'll have say 128K keys and the longest of them will dictate the total run time. No matter how we sort them (and do the shorter ones quicker), the longest one will take a whole lot of time. So maybe we should just completely ignore sorting.

It would be relevant to sort keys if (like in the SIMD case) we collected, say, 4-10x the global work size and then sorted. But that is an outrageous number of keys to keep in memory, it'd be tens of megabytes. I'm starting to think the old code is good and the optimal thing to do is to run a mode than gives you one length at a time. Like mask mode.

<!-- gh-comment-id:135911027 --> @magnumripper commented on GitHub (Aug 28, 2015): I wonder if this whole idea is flawed. For SIMD CPU it's a whole other story. But in this case, we'll have say 128K keys and the longest of them will dictate the total run time. No matter how we sort them (and do the shorter ones quicker), the longest one will take a whole lot of time. So maybe we should just completely ignore sorting. It would be relevant to sort keys if (like in the SIMD case) we collected, say, 4-10x the global work size and then sorted. But that is an outrageous number of keys to keep in memory, it'd be tens of megabytes. I'm starting to think the old code is good and the optimal thing to do is to run a mode than gives you one length at a time. Like mask mode.
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#1132
No description provided.