Merge pull request #8481 from filecoin-project/fix/snap-fsoverhead

fix: storiface: Make FSOverhead numbers more accurate
This commit is contained in:
Łukasz Magiera 2022-04-14 15:36:19 +02:00 committed by GitHub
commit 06f8637485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ var FSOverheadSeal = map[SectorFileType]int{ // 10x overheads
FTUnsealed: FSOverheadDen, FTUnsealed: FSOverheadDen,
FTSealed: FSOverheadDen, FTSealed: FSOverheadDen,
FTUpdate: FSOverheadDen, FTUpdate: FSOverheadDen,
FTUpdateCache: FSOverheadDen * 2, FTUpdateCache: FSOverheadDen*2 + 1,
FTCache: 141, // 11 layers + D(2x ssize) + C + R' FTCache: 141, // 11 layers + D(2x ssize) + C + R'
} }
@ -39,9 +39,9 @@ var FSOverheadSeal = map[SectorFileType]int{ // 10x overheads
var FsOverheadFinalized = map[SectorFileType]int{ var FsOverheadFinalized = map[SectorFileType]int{
FTUnsealed: FSOverheadDen, FTUnsealed: FSOverheadDen,
FTSealed: FSOverheadDen, FTSealed: FSOverheadDen,
FTUpdate: FSOverheadDen * 2, // XXX: we should clear the update cache on Finalize??? FTUpdate: FSOverheadDen,
FTUpdateCache: FSOverheadDen, FTUpdateCache: 1,
FTCache: 2, FTCache: 1,
} }
type SectorFileType int type SectorFileType int