Faster Archiving from a Windows Plotter #962
zorner
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
In general, I would like to have plotman support Windows. I started some work in that direction last year, but didn't complete it. No ETA. But, afaik you can get good performance in WSL v2, much better than v1 I thought. #108 (comment) I haven't worked in WSL, it came about right at the tail end of my work-forced Windows usage, but the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a duplicate discussion from Machinaris repo.
Background
I/O operations in a virtual environment on Windows can be very slow. In particular disk I/O. This is caused by WSL version 2. WSL v2 has many improvements, but at the cost of disk I/O. Docker on Windows runs inside WSL v2. Thus plotting and archiving are very slow. Example 2.5 hours per plot using Madmax in Docker vs 35 minutes on Windows using Madmax with the same settings. Also 3+ hours to move a plot to a remote host from docker vs 25 minutes in WSL v1.
WSL v1 has better I/O access. Docker does not run on WSL v1. Instead it used hyper-visor. Machinaris in Docker using hyper-visor crashes. (May be fixable, not worth the effort currently.)
Setup
Install linux VM on Windows. There are many distributions available in the MS store. Here we use Ubuntu.
Ubuntu will launch into its own shell. Set username and password Then run these:
Get Chia CLI - There is no need for the GUI.
We are done in Ubuntu for now. Back to the windows command line.
Make Ubuntu the default distribution.
Make Ubuntu use WSL v1
Cancel restart when asked.
Now back to Ubuntu, but as the root user. (There are files that need to accessed that only root can do, Windows will not allow the owner or group to change.) If you are not trying to sync up with Machinaris, you do not need to be the root user.
Go to where Chia is installed.
Create the venv.
Activate the venv
Install Plotman
Now we need to replicate some setup from Machinaris so everything is pointed to the same file inside the docker container and here in Ubuntu. Replace {USER_HOST} with the Windows username.
Make symbolic links to match the volumes mounted in docker-composer.yml for tmp, tmp2, and dst directories. Yours will likely be different.
To not have to activate the venv every time, edit /etc/profile. At the end of the file add 'export PATH="/opt/chia/venv/bin:$PATH" ' There are other method to update $PATH.
Ctrl-X and Y to exit and save.
We need to re-login for the last step to take effect.
Finally we are ready start archiving
To Upgrade pyhton to 3.9 or 3.10
Press Enter when asked
Beta Was this translation helpful? Give feedback.
All reactions