alexellis / mine-with-docker

Mine cryptocurrencies with Docker containers and get paid in Bitcoin (BTC)
https://www.alexellis.io/
MIT License
317 stars 67 forks source link

Update README.md #9

Closed zaherg closed 6 years ago

zaherg commented 6 years ago

Adding a note about using --limit-cup to limit the usage of the CPU

alexellis commented 6 years ago

Hi, thanks for the suggestion. It might be worth limiting CPU core usage by selecting which cores to target - via docker run alexellis2/cpu-opt:2018-1-2 ./cpuminer --help:

      --cpu-affinity    set process affinity to cpu core(s), mask 0x3 for cores 0 and 1
      --cpu-priority    set process priority (default: 0 idle, 2 normal to 5 highest)
zaherg commented 6 years ago

got it, so we should update the README file to include this info

alexellis commented 6 years ago

It doesn't really make sense to run a miner and then throttle the CPU.. is that something that is important for the way you want to mine? If so maybe we should add both of these bits of info for people.

zaherg commented 6 years ago

To be honest, my idea was like this, if you are running the script on some VPS providers they do have a policy against using the CPU for intensive work for long time, so if we limit the CPU usage using Docker option, this may and may not, prevent this companies from terminating the user account, plus he will be able to use the system for something else other than just mining.

This info can be useful especially with those who dont read the TOS, or dont have much technical experience with Docker.

at least this is was my idea when I edit the readme file

alexellis commented 6 years ago

Cool.. do you want to submit that paragraph (edited) and the two bits of info along with that?

zaherg commented 6 years ago

I'll try to rephrase them today, but you may need to recheck cause my english is not as good as yours for sure :D