fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

Mining only when idling #338

Open gigi2006 opened 6 years ago

gigi2006 commented 6 years ago

Hi,

I wanted to ask if it is possible that the miner only works at full load (90%) if 15min nothing is done on the computer and as long as I work with the PC it is just normal (50%) mine.

I had suggested to do this by service, but I read that this is not so much wanted because of any problems with botnetworks, etc.

would be great if somebody tipped me off.

thank you

psychocrypt commented 6 years ago

This should be easily possible via a small script which starts and stop the miner. Maybe we can add this feature but the most user needs always the best hash rate.

Am 19.09.2017 4:41 Nachm. schrieb "gigi2006" notifications@github.com:

Hi,

I wanted to ask if it is possible that the miner only works at full load (90%) if 15min nothing is done on the computer and as long as I work with the PC it is just normal (50%) mine.

I had suggested to do this by service, but I read that this is not so much wanted because of any problems with botnetworks, etc.

would be great if somebody tipped me off.

thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/338, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtmsu2z9WlkZ7_5MFa6qjwJCsBwxYks5sj9KrgaJpZM4Pcgcd .

gigi2006 commented 6 years ago

yes would be really great if this is included as an option:) I always want the maximum, but on a computer, for example, I would like to have the possibility to regulate it.

mordka commented 6 years ago

You can try experimenting with niceness for the mining process

gigi2006 commented 6 years ago

@mordka if you mean me then I don't think I can... I honestly don't even know what niceness is.

fireice-uk commented 6 years ago

@gigi2006 Modern operating systems have got finely tuned scheduler algorithms. My advice would be to use that.

Here is how to change it on Windows 7 : http://www.wikihow.com/Change-Process-Priorities-in-Windows-Task-Manager

Setting the priority (equivalent term on Unix-based systems in niceness, as @mordka mentioned) to the lowest setting will make it use 100% of the CPU, but only when nothing else would be using it (which is what you want anyway unless you are running on batteries).

gigi2006 commented 6 years ago

Thanks to you guys, I'll give it a try... maybe I'll make it:)

sunk818 commented 6 years ago

Nice and renice is a Linux command to give lower priority

Windows will still go 100% CPU even if you set lowest priority. You'd have to suspend the process to have stop mining. But then you risk stale shares. Try freeware bes and set limit to 50% and see if that helps throttle. You can also try process lasso

AzaZPPL commented 6 years ago

On linux start xmr-stak with nice -n 20 ./xmr-stak. You can set the number from -20 to 20. 20 meaning the lowest priority.

skunk73 commented 6 years ago

``