Skip to content

Commit 6b2c93c

Browse files
butoknvlsianpu
authored andcommitted
doc: design: fix the memory-size-effective slot size description
Fixes the memory-size-effective slot layout description for the swap move mode. Adds information about the additional swap status area size. Signed-off-by: Andrej Butok <[email protected]>
1 parent 4893193 commit 6b2c93c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/design.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,10 @@ The algorithm works as follows:
251251

252252
This algorithm is designed so that the higher sector of the primary slot is
253253
used only for allowing sectors to move up. Therefore the most
254-
memory-size-effective slot layout is when the primary slot is exactly one sector
255-
larger than the secondary slot, although same-sized slots are allowed as well.
254+
memory-size-effective slot layout is when the primary slot is larger than
255+
the secondary slot by exactly one sector plus the size of the swap status area,
256+
rounded up to the total size of the sectors it occupies,
257+
although same-sized slots are allowed as well.
256258
The algorithm is limited to support sectors of the same
257259
sector layout. All slot's sectors should be of the same size.
258260

0 commit comments

Comments
 (0)