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

Always run on 1 core CPU only #39

Open
minhhieugma opened this issue Apr 26, 2022 · 22 comments
Open

Always run on 1 core CPU only #39

minhhieugma opened this issue Apr 26, 2022 · 22 comments
Labels
bug Something isn't working

Comments

@minhhieugma
Copy link
Contributor

No matter how many cores I choose, it always runs on only one core.
It reflects on the Task Manager as well as the "current rate" metrics as well.

I guess that we need to use Process to achieve it?
from multiprocessing import cpu_count, Process

Reference: https://stackoverflow.com/questions/22700164/python-running-multiple-processes-simultaneously

@minhhieugma minhhieugma changed the title Always run on 1 CPU core only Always run on 1 core CPU only Apr 26, 2022
@vlnahp
Copy link
Owner

vlnahp commented Apr 26, 2022

Would you please let me know your cpu's specifications?

@LU5GOON
Copy link

LU5GOON commented Apr 26, 2022

This is interesting as i am running all 24 cores and getting 16,000 - 18,000 k/s on the BTC Puzzle

CPU used:

AMD Ryzen 9 5900X 12-Core Processor 4.20 GHz

Should i be getting more than that?

EDIT: I just tried by selecting 1 core and getting solid 14,000 k/s but only 2,000 more if i use 24 cores which doesnt seem right.

Capture

@vlnahp
Copy link
Owner

vlnahp commented Apr 26, 2022

I guess it's because of using threads instead of processes. Processes don't share memory, that's why I used threads.
I have to revise this part of the program.

@vlnahp vlnahp added the bug Something isn't working label Apr 26, 2022
@minhhieugma
Copy link
Contributor Author

Mine is i7-9750h. But I guess you know how to fix it already.

image

@vlnahp
Copy link
Owner

vlnahp commented Apr 26, 2022

Yes, I think so.
Will be fixed soon✅

@LU5GOON
Copy link

LU5GOON commented May 12, 2022

Yes, I think so. Will be fixed soon✅

Hey @vlnahp i had a random questio of the backing of this bug report here.
Is there the possibility of the speed increasing from 15,000 k/s or is his based on specs of the machine used?
I know you mentioned threads are used at the moment but once fixed, will it be faster?

@vlnahp
Copy link
Owner

vlnahp commented May 14, 2022

Yes it's possible. But I need some time to do some research about threading and GIL lock.

@minhhieugma
Copy link
Contributor Author

Should I try to fix this if you are busy now?

@vlnahp
Copy link
Owner

vlnahp commented May 20, 2022

Should I try to fix this if you are busy now?

Yes I'm busy. I believe it is not possible to keep the speed() function and use multiple threads. But you can give it a try!

@minhhieugma
Copy link
Contributor Author

Okay, let me give it a try first

@Rosario144
Copy link

Taking advantage of the GPUs it will be even faster

@LU5GOON
Copy link

LU5GOON commented Jun 30, 2022

Okay, let me give it a try first

Hello 👋 how did you go with this after giving it a try? Keen to know if you found a way or possibility. Thank you.

@PopeDollar
Copy link

Hello folks! Anyone found anything with balance?

@LU5GOON
Copy link

LU5GOON commented Jul 27, 2022

Hello folks! Anyone found anything with balance?

Hey PopeDollar I have been using the offline brute and targeting one BTC address for about 2 months straight now via a laptop & no such luck yet.

I do believe some here have found gold 👍👍

It's all luck at the end of the day as chances are slim to none.

@telejoshi
Copy link

telejoshi commented Jul 28, 2022

Hello folks! Anyone found anything with balance?

Finding a key is like finding a grain of sand in the whole universe. You could search for millions of years without even scratching the surface ;)
https://www.reddit.com/r/CryptoCurrency/comments/w0bv37/how_secure_are_seed_phrases/

It's all luck at the end of the day as chances are slim to none.
No, chances are so small you can consider them "none".

@LU5GOON
Copy link

LU5GOON commented Aug 25, 2022

Hi @vlnahp

I hope all is well with your studies.
I just wanted to check in and see if yourself or anyone has found a resolution to the outstanding bug here?

I can appreciate how busy you are of course!

Lu5Goon

@vlnahp
Copy link
Owner

vlnahp commented Aug 25, 2022

Hi @vlnahp

I hope all is well with your studies. I just wanted to check in and see if yourself or anyone has found a resolution to the outstanding bug here?

I can appreciate how busy you are of course!

Lu5Goon

Hello!
Unfortunately no success yet. It's going to take time.

@telejoshi
Copy link

No matter how many cores I choose, it always runs on only one core. It reflects on the Task Manager as well as the "current rate" metrics as well.

I guess that we need to use Process to achieve it? from multiprocessing import cpu_count, Process

Reference: https://stackoverflow.com/questions/22700164/python-running-multiple-processes-simultaneously

I made a mini version to try out tasks instead of a pool:
https://github.com/telejoshi/brutithreads

You can try this one and tell if it works.

@LU5GOON
Copy link

LU5GOON commented Apr 16, 2023

Hi All,

Been a while! Just wanted to check and see if this bug has been fixed or looked into?

👍👍

@minhhieugma
Copy link
Contributor Author

I will try to do this on the weekend or next week.

@minhhieugma
Copy link
Contributor Author

minhhieugma commented Apr 22, 2023

Hey folks, I made this PR to solve this issue. I hope that I can have more time to do more but that's all

#64

@mikorist
Copy link

Hello folks! Anyone found anything with balance?

Never....Even if you use fastecdsa and secp256k1 as ice at best it can handle 3MK/s. Which takes about a couple of billion years to find something. Even using Pollard's kangaroo algorithm *(~200 Petakeys/s per thread) takes you a few hundred years if you don't know the public key and the range the key is in. But don't worry, we like to play like children.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants