Skip to content

Conversation

@p4bpj
Copy link

@p4bpj p4bpj commented Jan 26, 2025

For Testing purposes (tn10, tn11):

New cli-parameter --throttle-microseconds for better control of cpu usage.

Example: Running kaspa-miner -t 100 --throttle 40 creates 1 Mhash/s on a system with ryzen 5950X, but the cpu temperature drops from 75deg celsius to 65deg celsius. Just play around with -t (threads) and --throttle-microseconds. With --throttle 1(ms) you cannot achieve 1 Mhash/s.

Linux: no problem with microsecond sleep
Windows: Windows 10, Version 1803 should support microsecond sleep
Windows: Support sub-millisecond sleep #116461
// Attempt to use high-precision sleep (Windows 10, version 1803+).

@elichai
Copy link
Owner

elichai commented Jan 26, 2025

Thank you for the PR!
Hmm my only concern is that this is a breaking change in the cli

@p4bpj
Copy link
Author

p4bpj commented Jan 27, 2025

You're right. I just hacked it together in 5mins. Maybe a new parameter --throttle-microseconds ? And then an exclusice condition to use --throttle or --throttle-microseconds.

@p4bpj p4bpj changed the title Change --throttle from milliseconds to microseconds for more control New CLI-Parameter: --throttle-microseconds for better cpu control Jan 27, 2025
@p4bpj
Copy link
Author

p4bpj commented Jan 27, 2025

@elichai You do not need to approve or merge the PR.

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

Successfully merging this pull request may close these issues.

2 participants