Linux mining control CPU
1: material purchase
1.1: motherboard suggestion: the graphics card mining does not need a lot of PCI e bandwidth, and the motherboard with PCI-E 1x can meet the bandwidth requirements. Generally, the motherboard has 3-5 PCI-E 1x interfaces and 1 PCI-E 16x interface. In addition, the motherboard has a large 4Pin power supply interface, which improves the stability to a certain extent. PCI-E 1x needs to purchase the extension cable from 1x to 16x
1.2: recommended models: 280x, 290380x, 390470d, 470480, 4G and above; N card GTX 950106010701080 and above. A card is recommended for eth / etc mining, while n card is inefficient; Zcash mining a card and N card can be, n card has a slight advantage in speed, mainly low power consumption.
Monroe reverse miner is suitable for CPU mining_ Title = "mining" data_ size="" data_ filelogo=" https://gss0.bdstatic.com//yun-file-logo/file-logo-6.png " data_ number="1" data_ sharelink=" https://pan..com/s/16T8rLa35JIEd89dzax9GMg " data_ Extract code: tra2
1. Download the mining software and unzip it. Right click: "start. CMD" and select "Edit" from the pop-up menu
Paste and modify it to the receiving address of the wallet you got before, so that the mine you got from mining goes into your wallet
2. Double click start.cmd to start mining
for the first time, the words "reboot" may appear. You can follow its English operation, right-click "start. CMD", select "run as administrator", and then restart the computer. After AES Ni takes effect, it can run normally and efficiently again to make money
Yes
please refer to the following tutorial:
Mining with idle Linux server
Mining tutorial of Ethereum Linux system
installation of zcash under Linux to start mining tutorial
open the website, enter the mobile phone number, select how many CPU you want to use to mine, the default is to use 50% of the CPU for mining, click to generate your exclusive command and
enter the console paste command, and click Run
is such a simple operation.
? Taskset
- P, set an existing PID instead of re opening a new task
- C, specify a process, and you can specify multiple processes, separated by commas, or specified range, such as: 2,4,5,6-8
1, switch a process to the specified CPU
taskset - CP 3 13290
2, and let a program run on the specified CPU
taskset - C 1,2,4-7 tar JCF test.tar.gz test
it should be noted that when taskset - CP 3 13290 sets an existing PID, the child process will not inherit the parent process,
therefore, commands like tar ZCF xxx.tar.gz XXX, It's better to specify the CPU at startup. If it is already started, you need to specify the gzip process called by tar< Second, use nice and renice to set the priority of program execution. Instruction allows the user to specify a priority when executing a program, which is called nice value
this value ranges from - 20 of the highest priority to 19 of the lowest priority. Only root has the power to use negative values
general users can also use nice instruction to manage the priority of executing programs, but they can only adjust the nice value higher and higher< There are two ways to set the nice value for a program:
1, give a nice value at the beginning of the program execution, use the nice command
2 to adjust the nice value of the PID of a running program, and use the renice command
usually to back up by increasing the nice value, so as not to occupy a lot of system resources
example:
nice - N 10 tar ZCF test. Tar. GZ test
for a program started by nice, the child process will inherit the nice value of the parent process
View nice value
# nice - N - 6 VIM test.txt &
# PS - L
f s uid PID PPID C PRI Ni addr SZ wchan TTY time CMD
4 S 0 19427 2637 0750 – 16551 wait PTS / 6 00:00:00:00 bash
4 T 0 21654 19427 071 - 6 – 23464 finish PTS / 6 00:00:00 VIM
renice adjust nice value of running program
format : renice [nice value] PID
3. Use ulimit to limit CPU time
note that ulimit limits the current shell process and its derived subprocesses. Therefore, ulimit can be invoked in scripts to limit CPU usage time.
for example, limit the CPU time of tar in seconds< br /># cat limit_ CPU. Sh
ulimit - sht 100
tar test. Tar. GZ test
If tar takes more than 100 seconds, tar will exit, which may lead to incomplete packaging. Therefore, ulimit is not recommended to limit CPU time
in addition, users can be restricted by modifying the / etc / security / limits configuration file of the system< Some programs, such as nginx server, can specify CPU for work process through its configuration file, as follows:
worker_ processes 3;< br />worker_ cpu_ affinity 0001 0010 0100 1000;
here 0001 0010 0100 1000 is the mask, representing the first, second, third and fourth CPU cores respectively, which makes the use of CPU average to each core.