Author

Topic: For mining on ubuntu,how can I limit the CPU load? (Read 528 times)

legendary
Activity: 1064
Merit: 1002
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
sr. member
Activity: 455
Merit: 251
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 &
sr. member
Activity: 798
Merit: 253
or any way just to limit the cpu usage of my whole account
sr. member
Activity: 798
Merit: 253
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
Jump to: