User Tools

Site Tools


guides:plotting:stalesnomore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
guides:plotting:stalesnomore [2021/11/18 14:54] – created vleesbanaanguides:plotting:stalesnomore [2021/11/18 14:58] (current) gnomuz
Line 1: Line 1:
-===== How to Avoid Stales while copying plots =====+===== How to Avoid Stales while Copying Plots =====
  
 Copying a plot from the temporary drive to your final drive after its completion leads to a high amount of input-output (IO) traffic. This often results in partials being sent too late to the pool (stale), which causes your partial to be rejected. The following bash script details how you could avoid this, by adapting the ioscheduler on a plots storage drive so that the farmer doesn't get late partials while the copy of a newly crafted plot is running. Copying a plot from the temporary drive to your final drive after its completion leads to a high amount of input-output (IO) traffic. This often results in partials being sent too late to the pool (stale), which causes your partial to be rejected. The following bash script details how you could avoid this, by adapting the ioscheduler on a plots storage drive so that the farmer doesn't get late partials while the copy of a newly crafted plot is running.
  
-#!/bin/bash+<code>#!/bin/bash
 FS="<target drive mount point>" FS="<target drive mount point>"
 DEVICE=`lsblk -ndo pkname $(findmnt -nro source $FS)` DEVICE=`lsblk -ndo pkname $(findmnt -nro source $FS)`
 echo $DEVICE echo $DEVICE
  
-<code>echo "bfq" > /sys/block/$DEVICE/queue/scheduler+echo "bfq" > /sys/block/$DEVICE/queue/scheduler
 echo 1 >/sys/block/$DEVICE/queue/iosched/strict_guarantees echo 1 >/sys/block/$DEVICE/queue/iosched/strict_guarantees
 echo 1500 >/sys/block/$DEVICE/queue/iosched/fifo_expire_sync echo 1500 >/sys/block/$DEVICE/queue/iosched/fifo_expire_sync
guides/plotting/stalesnomore.1637247265.txt.gz · Last modified: 2021/11/18 14:54 by vleesbanaan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki