Skip to content

Commit

Permalink
fix: renterd upload packing description
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Oct 18, 2023
1 parent 66367e9 commit 7f312af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-pears-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renterd': minor
---

Fixed an issue with the upload packing switch and updated the explanation.
20 changes: 11 additions & 9 deletions apps/renterd/contexts/config/fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,17 @@ export function getFields({
title: 'Upload packing',
description: (
<>
Data on the Sia network is stored in 40MiB sectors so by default
uploaded files are divided and padded into these 40MiB peices. This
means that storage is wasted on padding but more importantly files
smaller than 40MiB still use 40MiB of space. Upload packing avoids
this waste by buffering files and packing them together before they
are uploaded to the network. This trades some performance for storage
efficiency. It is also important to note that because buffered files
are temporarily stored on disk they must be considered when backing up
your renterd data.
Data on the Sia network is stored in 4MiB sectors. With the default 10
of 30 redundancy scheme, uploaded files are split into 40MiB chunks
and encoded into 120MiB slabs. This means that storage is wasted on
padding and files smaller than 40MiB still use 120MiB of space. The
redundancy scheme can be configured, but unless all files are exactly
4MiB * the redundancy's minimum shards, there will always be wasted
storage. Upload packing avoids this waste by buffering files and
packing them together before they are uploaded to the network. This
trades some performance for storage efficiency. It is also important
to note that because buffered files are temporarily stored on disk
they must be considered when backing up your renterd data.
</>
),
hidden: !showAdvanced,
Expand Down

0 comments on commit 7f312af

Please sign in to comment.