Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
release 0.4.0.17, fixed some bugs in testnet 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shannon-6block committed Jun 20, 2020
1 parent 5a5a873 commit 6c2baae
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 推荐配置
* CPU:AMD 3970X 或 Ryzen Threadripper 其他型号
* 内存:256 GB
* SSD:2 TB
* SSD:2 TB * 2
* 操作系统:Ubuntu 18.04

# 最低配置
Expand Down Expand Up @@ -61,7 +61,7 @@ lotus fetch-params 32GiB
```
# 确定版本
lotus -v
lotus version 0.4.16+git.d48181cd
lotus version 0.4.17+git.045440aa
# 启动lotus
nohup lotus daemon > ~/lotus.log 2>&1 &
Expand Down Expand Up @@ -106,17 +106,26 @@ lotus-storage-miner info
# 如果miner和worker不在一台机器,需要将miner机器LOTUS_STORAGE_PATH下的api和token两个文件拷贝到worker机器的LOTUS_STORAGE_PATH下
# 可选的环境变量
# 如下设置会让worker使用GPU计算PreCommit2。建议双显卡的情况下再使用,否则会报显存不够的错误
# 以下设置会让worker使用GPU计算PreCommit2
export FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1
# 如下设置会让worker不使用GPU计算Commit2,而改用CPU。
export FIL_PROOFS_USE_GPU_TREE_BUILDER=1
# 以下设置会让worker不使用GPU计算Commit2,而改用CPU。
export BELLMAN_NO_GPU=true
# 以下设置将会让worker显示更详细的日志
export RUST_BACKTRACE=full
export RUST_LOG=debug
# 启动worker,需要加入局域网IP
lotus-seal-worker run --address=xxx.xxx.xxx.xxx:3456 > ~/worker.log 2>&1 &
# 查看日志
tail -f ~/miner.log
```

进阶:worker使用多个SSD
```
lotus-seal-worker run --address xxx.xxx.xxx.xxx:3456 --attach /path/to/another/ssd/directory > ~/worker.log 2>&1 &
```

观察运行情况。在miner机器执行。常用命令列举如下。
```
lotus-storage-miner info
Expand All @@ -125,10 +134,10 @@ lotus-storage-miner workers list
lotus-storage-miner sectors list
```

或者使用区块浏览器,例如 https://interopnet.filfox.io/ ,查看。
或者使用区块浏览器,例如 https://filfox.io/ ,查看。

# TODO
* 目前官方代码在Window PoSt部分存在问题。所以,存力有可能发生下降。为了避免这一问题,请不要进行过多手动操作
* 有时会因为worker运行任务过多,资源不够,导致部分sector出现短时间的SealPreCommit1Failed状态,可忽略
* 程序在推荐配置下顺利运行,没有做过其他环境的测试,如果遇到问题可以提issue。
* 会及时合入官方的代码改动。
* 程序经过一段时间稳定之后,会再将算法优化合入。
19 changes: 14 additions & 5 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Recommended
* CPU:AMD 3970X or other models of Ryzen Threadripper
* RAM:256 GB
* SSD:2 TB
* SSD:2 TB * 2
* OS:Ubuntu 18.04

# Minimum
Expand Down Expand Up @@ -60,7 +60,7 @@ Start lotus.
```
# Check the version
lotus -v
lotus version 0.4.16+git.d48181cd
lotus version 0.4.17+git.045440aa
# Start lotus
nohup lotus > ~/lotus.log 2>&1 &
Expand Down Expand Up @@ -105,17 +105,26 @@ Start worker.
# If miner and worker are not on the same machine, you need to copy the files of api and token under LOTUS_STORAGE_PATH of miner to LOTUS_STORAGE_PATH of worker
# Optional environment variables
# The following setting will allow the worker to use the GPU to compute PreCommit2. It is recommended to use it in the case of dual GPUs, otherwise it will report an error of insufficient GPU memory.
# The following settings will allow the worker to use the GPU to compute PreCommit2.
export FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1
export FIL_PROOFS_USE_GPU_TREE_BUILDER=1
# The following setting will cause the worker to use the CPU instead of the GPU to compute Commit2.
export BELLMAN_NO_GPU=true
# The following settings will allow the worker to show more detailed logs.
export RUST_BACKTRACE=full
export RUST_LOG=debug
# Start worker, need to add LAN IP
lotus-seal-worker run --address=xxx.xxx.xxx.xxx:3456 > ~/worker.log 2>&1 &
lotus-seal-worker run --address xxx.xxx.xxx.xxx:3456 > ~/worker.log 2>&1 &
# View logs
tail -f ~/miner.log
```

Advanced: Use multiple SSDs for the worker
```
lotus-seal-worker run --address xxx.xxx.xxx.xxx:3456 --attach /path/to/another/ssd/directory > ~/worker.log 2>&1 &
```

Observe the operation. Executed on the miner machine. commonly used commands are listed as follows.
```
lotus-storage-miner info
Expand All @@ -127,7 +136,7 @@ lotus-storage-miner sectors list
Or you can use the block explorer, like https://interopnet.filfox.io/, to check it.

# TODO
* Currently, there is a problem with the official code in the Window PoSt part. Therefore, a decline of storage power may happen. To avoid this problem, please do not do too many manual operations.
* Due to handling too many tasks and lack of resources of the worker, sometimes, part of sectors will stay in the state of SealPreCommit1Failed for a short while, as can be ignored.
* The program runs smoothly under the recommended configuration, and has not been tested in other environments. If you encounter problems, please raise an issue.
* The official code changes will be merged in time.
* After the program is stable for a period, the algorithm optimization will be merged.
2 changes: 1 addition & 1 deletion script/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

rm -rf lotus-miner.tar.gz cmd
wget https://github.com/shannon-6block/lotus-miner/releases/download/test.0.4.0/lotus-miner.tar.gz
wget https://github.com/shannon-6block/lotus-miner/releases/download/test.0.4.0.17/lotus-miner.tar.gz
mkdir cmd
tar zxvf lotus-miner.tar.gz -C cmd/
cp cmd/* /usr/local/bin/
Expand Down

0 comments on commit 6c2baae

Please sign in to comment.