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

3.1.0 how to set CPU usage? #1139

Closed
expressups opened this issue Aug 26, 2019 · 8 comments
Closed

3.1.0 how to set CPU usage? #1139

expressups opened this issue Aug 26, 2019 · 8 comments

Comments

@expressups
Copy link

"max-cpu-usage": 50,
How should arrays be set?

@xmrig
Copy link
Owner

xmrig commented Aug 26, 2019

You can change threads count in cpu object https://github.com/xmrig/xmrig/blob/master/doc/CPU.md
Main reason why this option removed is most of users don't ever understand how this option works (or not works), but likely this option will come back with new less confusing name, together with OpenCL backend.
Thank you.

@expressups
Copy link
Author

My usage scenarios are more complex, maybe multi-core cpus, maybe multiple cpus, and I try to set up threads, but it doesn't always work well. You can add a friendlier option.

@qutimqqcom
Copy link

qutimqqcom commented Aug 26, 2019

threads works well
"cn/r":{
"intensity": 1,
"threads": 48,
"affinity": -1
},

but intensity, has no effect
"rx/loki":{
"intensity": 2,
"threads": 2,
"affinity": -1
},

@qutimqqcom
Copy link

qutimqqcom commented Aug 28, 2019

so need set up cpu usage whitout set number of threads
hardware has different cpu units
multiply deploying

"max-cpu-usage": 50 or other precent,
still best chalange

@shubell
Copy link

shubell commented Sep 3, 2019

Well this option was a necessity for my environment where i have different a different cpu on every rig and have one startup script for everyone.

@MrCook1es
Copy link

@xmrig

I always use 50% on different systems and it works well.
For me it is fundamental to use a percentage value, so as not to have to personalize each combination by setting the number of threads by hand.

What parameter should I set in the new config.json file layout to have 50% CPU usage?

@CrazyBoyFeng
Copy link

CrazyBoyFeng commented Sep 7, 2019

if you are using multi-core cpu, maybe set the affinity mask of xmrig.exe process can help you.

on windows:
start /affinity 0xAAAAAAAAAAAAAAAA xmrig.exe
0xA is the hex form of binary 1010, it means just use the 2nd and 4th core for the process. so the command above means only use half of my cores.
i dont know how many cores you have. i have 64, so i need 64 bits mask (16 hex digits "A") for the mask.

on linux please man taskset or taskset -h

@xmrig
Copy link
Owner

xmrig commented Sep 28, 2019

max-cpu-usage option reverted back in v4.2 with new name, please read docs carefully https://github.com/xmrig/xmrig/blob/beta/doc/CPU_MAX_USAGE.md

@xmrig xmrig closed this as completed Sep 28, 2019
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

6 participants