crypto:chia:cli:plot:plot_with_a_ramdisk
Table of Contents
Crypto - Chia - CLI - Plot - Plot with a ramdisk
Using a Ramdisk can speed up plotting.
NOTE: This requires at least 256GB of RAM available.
Create a Ramdisk
mkdir /mnt/ramdisk mount -t tmpfs -o rw,size=240G tmpfs /mnt/ramdisk
NOTE: This mounts a ramdisk with 240GB under the path /mnt/ramdisk.
- -t tmpfs:
- tmpfs only uses memory when you it contains files.
- When it is empty, it will take almost no space in RAM.
See: https://manpages.debian.org/buster/initscripts/tmpfs.5.en.html
Verify the Ramdisk
Verify that the RAMDISK has been created.
df -h
Mount the Ramdisk automatically on system boot
Edit /etc/fstab, and add the following line to the the end of the file.
- /etc/fstab
tmpfs /mnt/ramdisk tmpfs rw,size=240G 0 0
Create the Chia Plot
Creates a new plot.
chia plots create -k 32 -r 6 -n 1 -t /mnt/ramdisk -2 /home/peter-chia-temp -d /home/peter-chia
NOTE:
- -k32: Creates a k32 plot.
- -r 6: Specifies six processor cores.
- These cores are used primarily in phase 1 and 2.
- -n 1: Creates exactly one plot.
- -t /mnt/ramdisk: Specifies the temporary directory.
- -2 /home/peter-chia-temp: Specifies the second temporary directory (Optional).
- Depending on the size of the ramdisk, this optionn might be needed otherwise there could be insufficient memory to write the plot file at the end.
- -d /home/peter/chia: Specifies the final directory for the plot.
References
crypto/chia/cli/plot/plot_with_a_ramdisk.txt · Last modified: 2021/06/23 09:25 by peter