Giter Site home page Giter Site logo

88plug / chia-farming Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 60 KB

This repo contains Chia farming scripts for optimizing plotting and farming operations. The scripts automate partitioning, formatting, and plot creation on hard drives using prepare-drives.sh, create Bladebit and C7 plots with GPUs using bladebit-plotting.sh and bladebit-cuda-plotting.sh, farm GPU plots using harvester-compose.yml

Shell 100.00%
bladebit chia chia-farming docker gpu scripts chia-plotting

chia-farming's People

Contributors

88plug avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vampyrus

chia-farming's Issues

plot-mover.sh - single digit destination are incorrectly assumed to be in use.

If user has destination named drive-1, drive-2, ... drive-19, drive-20 then drive-1 is rarely used because the mover assumes drive-1 is in use if a current move is in progress for drive-10-19. Same can be true for drive-2 on large destinations.

Fix appears to work.
- if lsof -w -p "$pid" | grep "$drive" > /dev/null
+ if lsof -w -p "$pid" | grep -e "$drive/" > /dev/null

plot-mover.sh - Drive full check is not accurate for large drives.

Drive full at 100% is not sufficient. On my drives the drive reports 100% full although there is room for one more plot.

/dev/sdb1 13T 13T 121G 100% /mnt/chia/chia-6
/dev/sdd1 13T 13T 121G 100% /mnt/chia/chia-8
/dev/sde1 13T 13T 121G 100% /mnt/chia/chia-9

Fix is looking for XXG in free space instead of 100% usage to determine fullness. Not foolproof because 99G could be considered full but plot could be much less with compression. But much better for my situation as all my drives (8T, 12T, 14T, 16T) report over 100G while usage is 100%.

- if ! df -h "$drive" | awk '{print $5}' | tail -1 | grep -q "^100"; then
+ if ! df -h "$drive" | awk '{print $4}' | tail -1 | grep -q "^[0-9]\{2\}G$"; then

plot-mover.sh - Array removal is not working

The array code to remove full drives does not work properly. If you have drives 1-20 and drive 1 is full, the current replacement routine will substitute all drive-1 matches with ''. The remainder stays in the array. For example 'drive-11' becomes '1'. This then causes errors that day '1' is not mounted.

Comment out these lines.
farming_drives=("${farming_drives[@]/$drive}") echo "Drive $drive is full. Removing it from the list of available drives."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.