Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: supercanada1 on July 18, 2015, 11:58:30 PM



Title: For mining on ubuntu,how can I limit the CPU load?
Post by: supercanada1 on July 18, 2015, 11:58:30 PM
Since the VPS limit the usage for the cpu, I have to limit the usage of miner when I setup the miner on ubuntu server, I installed cpulimit but it looks like not easy to use:
cpulimit -P /mycoin/src/myminer -l 25
I try to run this on ubuntu but it looks like it will not run background, any way to let this run on background?
also, I must run myminer first, and then run cpulimit command, is this any way I can just limit my cpu usuage first and then the miner later?
because if I run miner first, it will take lot of the cpu usage immediately


Title: Re: For mining on ubuntu,how can I limit the CPU load?
Post by: supercanada1 on July 19, 2015, 12:04:05 AM
or any way just to limit the cpu usage of my whole account


Title: Re: For mining on ubuntu,how can I limit the CPU load?
Post by: TreasureSeeker on July 19, 2015, 06:40:13 PM
Popping an ampersand at the end should let it run in the background.  Give it some niceness too if you're concerned about it slowing down other processes:
Code:
nice -n 19 cpulimit -P /mycoin/src/myminer -l 25 &


Title: Re: For mining on ubuntu,how can I limit the CPU load?
Post by: mullick on July 19, 2015, 10:19:43 PM
If your cpu mining then im going to assume your mining with the daemon of the coin itself. In that case

Code:
proc=x 

Where x = the number of cores you want utilized. Adding that line to your config file will do the trick for most codebases