当前位置: 首页 > 工具软件 > Lotus > 使用案例 >

lotus-miner lotus-worker 运行

段干帅
2023-12-01

1,lotus-miner 运行

nohup lotus-miner run >> /var/log/miner/miner.log 2>&1 &

2,lotus-worker 运行

远程矿工带显卡GPU,--parallel-fetch-limit=2

nohup lotus-worker run --parallel-fetch-limit=2 >> /var/log/worker/worker.log 2>&1 &

远程矿工没有显卡,--parallel-fetch-limit=2

nohup lotus-worker --enable-gpu-proving=false run --parallel-fetch-limit=2 >> /var/log/worker/worker.log 2>&1 &
kill -9 $(ps aux | grep "lotus-worker" | grep -v grep | awk '{print $2}')
echo $FIL_PROOFS_USE_MULTICORE_SDR && echo $FIL_PROOFS_USE_GPU_COLUMN_BUILDER && echo $FIL_PROOFS_USE_GPU_TREE_BUILDER && echo $FIL_PROOFS_MAXIMIZE_CACHING && echo $RUST_LOG
  • 运行一个扇区P1
nohup lotus-worker run --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &
  • 不做P1,C2现在不用传输数据
nohup lotus-worker run --addpiece=false --precommit1=false --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &
  • 不做P1、P2
nohup lotus-worker run --addpiece=false --precommit1=false --precommit2=false --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &

重新运行

kill -9 $(ps aux | grep "lotus-worker" | grep -v grep | awk '{print $2}')
  • 运行一个扇区
nohup lotus-worker run --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &
  • 全部使用CPU
nohup lotus-worker --enable-gpu-proving=false run --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &
  • 修改环境变量 P2 使用CPU计算
# GPU计算,没有GPU可以不用设置
#export FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1
#export FIL_PROOFS_USE_GPU_TREE_BUILDER=1

# 全部使用CPU计算,不使用GPU
export BELLMAN_NO_GPU=1
export BELLMAN_VERIFIER=cpu
echo $FIL_PROOFS_USE_GPU_COLUMN_BUILDER && echo $FIL_PROOFS_USE_GPU_TREE_BUILDER && echo $BELLMAN_CUSTOM_GPU && echo $BELLMAN_NO_GPU && echo $BELLMAN_VERIFIER
1
cpu
  • 使用CPU 计算P1 P2 不计算C1 C2
kill -9 $(ps aux | grep "lotus-worker" | grep -v grep | awk '{print $2}')
nohup lotus-worker --enable-gpu-proving=false run --commit=false --parallel-fetch-limit=1 >> /var/log/worker/worker.log 2>&1 &

C2 单独计算

nohup lotus-worker run --addpiece=false --precommit1=false --precommit2=false >> /var/log/worker/worker.log 2>&1 &
 类似资料: