Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading does not work #24

Closed
mpsOxygen opened this issue Sep 7, 2016 · 8 comments
Closed

Multithreading does not work #24

mpsOxygen opened this issue Sep 7, 2016 · 8 comments

Comments

@mpsOxygen
Copy link

mpsOxygen commented Sep 7, 2016

Tried the this version hoping it would be much faster but i get the same ~50.000 w/s as I was with the original pdfcrack even though i specified -t 4. Tried with -t 10 and I see the same speed and the same load on my CPU cores, only 1 of them is ever at 100% the rest are either idle or if one is at 50% another is at 50%, but never more then one core at 100%.

I'm running Fedora 23 with an Intel Core i7-4770S CPU @ 3.10GHz

top -H -p pid also shows a single thread running.

@WoutDev
Copy link

WoutDev commented Oct 20, 2016

+1

1 similar comment
@marvin2k
Copy link

+1

@shreepads
Copy link
Owner

Can you add the exact command used and the output as an attached text file?

Also i hope you used the correct branch.

Shreepad

On 21-Oct-2016 12:56 AM, "Wout" [email protected] wrote:

+1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGDugTfVAwFHa-59lX9iAcL2pFowXFEks5q18BZgaJpZM4J27Bp
.

@shreepads
Copy link
Owner

Well that's good.

Any of the other + 1s or the bug submitter can confirm the same works for
them?

Shreepad

On 26-Oct-2016 4:59 PM, "marvin2k" [email protected] wrote:

ha. using the correct branch helps ;-)


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGDup_vAXlKckv2zmQg5oc1A6LEYrE6ks5q3whDgaJpZM4J27Bp
.

@viktorbahr
Copy link

Hi shreepads,

I also experience problems with the multithreading.
I'm on 'baseopenmp' branch running the following command:
./pdfcrack -t 4 -o -f ~/test.pdf
I've attached the output as a text file: output.txt
Now, whats confusing for me is that when I run the make testall command it achieves w/s rates of over 500000, so multithreading seems to work...

Hope this helps a little,
best regards,
V.

@shreepads
Copy link
Owner

Viktor I've only implemented multi threading for the new pattern option
while leaving the existing methods untouched.

The pattern can cover anything that could be done with the existing options
including variable length and char types.

Shreepad

On 22-Nov-2016 12:30 AM, "Viktor Bahr" [email protected] wrote:

Hi shreepads,

I also experience problems with the multithreading.
I'm on 'baseopenmp' branch running the following command:
./pdfcrack -t 4 -o -f ~/test.pdf
I've attached the output as a text file: output.txt
https://github.com/shreepads/pdfcrack-mp/files/604511/output.txt
Now, whats confusing for me is that when I run the make testall command
it achieves w/s rates of over 500000, so multithreading seems to work...

Hope this helps a little,
best regards,
V.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGDuhjt0eA_X1rwt-Fg_-UqyYshS4Qaks5rAeovgaJpZM4J27Bp
.

@viktorbahr
Copy link

Thanks for the clarification and sorry for the confusion!
Using pattern mode, multithreading works fine for me.

Cheers,
V.

@shreepads
Copy link
Owner

Am closing this issue. Multi-threading will not work if

  • You don't switch to the baseopenmp branch
  • You don't use the new pattern method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants