When LOTUS_MINER_PATH is NFS, the retrieval speed is much much faster. #6865
Replies: 2 comments 1 reply
-
Thanks for testing and sharing! We will take a look! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Right now XinanXu, WillTechMusing, Nelson, DeeGee and I have been using this to gain retrieval speed successfully. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lotus component
lotus miner/market - retrieval deal
Lotus Version
Daemon: 1.11.0-rc2+mainnet+git.0519cd371+api1.3.0
Local: lotus version 1.11.0-rc2+mainnet+git.0519cd371
Describe the Bug
This ticket is a tracking of this discussion discovered by XinAn Xu and confirmed by me. https://filecoinproject.slack.com/archives/C022ZR4JA1M/p1626684614283800
As we all know lotus retrieval is painfully slow, merely 1MB/s on ideal internet connection and nobody knows why yet.
However XinAn Xu discovered if the provider mount the home folder as NFS, the retrieval speed can be drastically faster, like 50MB/s.
So for example my provider's home folder is /home/lotus/.lotusminer , instead of specifying LOTUS_MINER_PATH=/home/lotus/.lotusminer, I could do the following:
export this folder as a NFS mount point in /etc/exports by adding a new line, for example:
/home/lotus/.lotusminer 127.0.0.1/32(rw,sync,no_subtree_check,insecure)
Restart NFS server
systemctl restart nfs-kernel-server
Mount it locally. For example
mount 127.0.0.1:/home/lotus/.lotusminer /mnt/nfsminer
Change env variable
LOTUS_MINER_PATH=/mnt/nfsminer
and restart lotus-miner.If want to make the mount permanent. add a new line to /etc/fstab:
127.0.0.1:/home/lotus/.lotusminer /mnt/nfsminer nfs defaults 0 0
Voila! Now retrieval is at full speed!
This is not an ideal solution of course and we hope lotus dev team can investigate more why NFS can make such a big difference than the native EXT4 file system.
Logging Information
N/A
Repo Steps
Beta Was this translation helpful? Give feedback.
All reactions