Hi, I think I am not maximizing the plotting performance of my current rig and I’m looking for a little bit of help.
Rig Specs;
Ubuntu 20.4, AMD 5900x, 64GB ram, 2x 1.6TB P4610 (not in raid), 8 X Toshiba 7200RPM Present drives currently pushing out 3.38TiB per day. I think I should be closer to 4/4.5?
I think that my issue is some misunderstanding of my cli config, this is as per below;
I thought that r 12 would max out my cpu and writing, but this means I’m actually only running 8 plots in parallel per drive and splitting the work of temp across 2 drives. Should I add another few plots and decrease the r? Just staggering them to repeat on a few lucky drives?
Help! Bonus question, how can I gracefully shut down my current plotting on Ubuntu? As to not lose plots?
Final question when i restart should I reduce the n number of plots to size left over or will it just fail once the drive is full anyway?
I know this is a lot of helped asked for a noob, but any guidance would be helpful.
Thanks!
Phase 1 only supports multithreading and there are diminishing returns for -r higher than 6. If you do 16 parallel plots (“8 plots in parallel per drive”) with -r 12 then you are using 192 threads with a 24 thread CPU if you don’t stagger enough. You can overpopulate cores, but not like this
3.38TiB are 3,7TB and I am getting 3,5TB with 32GB ram and 3900X on Windows with a slightly faster NVMe. I don’t think 4.5TiB (~5TB) is realistic with your build.
I would also go for -r 4 and 6 parallel plots per drive so 12 in total to match your CPU. Give them 4000mb ram and a stagger of 30-40min. If you can Raid0 your Intels and use xfs.
Your use of the -2 option isn’t really doing anything from a performance perspective. It is locating the construction file for the plot in a different directory but on the same device as the other tmp files. From this location there is a file copy to your -d HDD after the file has been constructed. This copy typically takes about 10 minutes (-k32) to a HDD (assuming one file being copied, slower if parallel copies occuring). You can avoid this file copy by setting the -2 option to the same value as the -d option after which it will simply rename the file rather than having to perform a copy/move. Another option would be to use a destination directory on your SSD (again set -2 and -d to same location but on the SSD) to avoid writing to the HDD in the plot loop. Then use a separate script to move the file to the HDD location. This removes all writes to the HDD from the plotting loop. Others have used a second SSD as a staging destination from which they script the move to the HDD.
Thanks for the quick response. So general practice would be choose 2 destination drives and full them up first then go onto the next? Given your feedback (and once I figure out how to raid my SSDs in ubuntu, my 2.0 script should look something like this;
And I missed the second response, thanks for the input about the -2, will modify the above script to do so. No too familiar with scripting on Ubuntu to do the seperate copy, more learning to do! Thanks
And I am not sure about the sleep 35m you put in every line, shouldn’t it be like in your first script? I am no bash guy but I think it should be sleep 35m […] sleep 70m[…]sleep 105m and so on? 1st one also doesn’t need a sleep imo.
You can also switch your hdd1 and hdd2 after every plot you start. It has no speed improvements but if one plot takes longer than 35min for copying somehow, they have a bit more time to finish.
This will kill the screen as soon as the second temporary file is deleted (i.e. when that plot is done). Don’t forget the & at the end or you’ll block your terminal until you Ctrl+C or the plot finishes. inotifywait is in the inotify-tools package on Ubuntu.
As if on queue ChiaDecentral has a video on Plotman, I read the help but the video was also some more hand holding. Plotman is soo much better than scripts. Keen to get this going tonight.Thanks everyone!
Will post my results post optimisation.
Start 12 plots using two threads each, default ram. When these finish phase 1, start five more plots. Rinse and repeat, should pump out 4.4-4.7TiB a day.