mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1707] Forked OpenCL runs wastes some device memory #1120
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#1120
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 (Aug 25, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1707
http://www.openwall.com/lists/john-dev/2015/08/25/2
Maybe we can close or clean something up somewhere right before forking? I thought we did though.
@magnumripper commented on GitHub (Aug 27, 2015):
I wonder it it's this simple (can't test right now):
That would mean we have to audit every format for this. We need to avoid any and all OpenCL stuff in init(), if possible.
Note: I'm not quite sure we even need to add it to reset() at all - we may do fine with just dropping that line from init().
@magnumripper commented on GitHub (Aug 27, 2015):
Aha... this rings a bell.
Current code:
Drop that line in init():
So we added that line (in every format) for cosmetic reasons, and it has this unfortunate side effect with fork.
@magnumripper commented on GitHub (Aug 27, 2015):
No, this wasn't it at all. init() is post-poned when forking.
@magnumripper commented on GitHub (Aug 27, 2015):
We do absolutely nothing OpenCL prior to the fork. But after it, we enumerate devices and create contexts and stuff, and then we pick just one of them. The rest is the answer to Solar's question. We currently have no way of "destroying" contexts for the devices we won't use.
I actually think this exact problem exist without fork too. Next step is to verify that.
@magnumripper commented on GitHub (Aug 27, 2015):
LOL, we've been here before: http://www.openwall.com/lists/john-dev/2013/07/02/11
@ghost commented on GitHub (Oct 10, 2015):
Is this fixed? I was curious, so (on super, now):
@ghost commented on GitHub (Oct 10, 2015):
@ghost commented on GitHub (Oct 10, 2015):
@ghost commented on GitHub (Oct 10, 2015):
No, it does not exist without fork. It only wastes memory if a GPU is listed in the -devices list.
@ghost commented on GitHub (Oct 10, 2015):
Now:
Will create a PR soon. More tests needed (?): node, MPI, whatever that might share code with fork.