Add page_size
config parameter for writecache #1302
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1302
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:fix/writecache_page_size"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Page size impacts on
put->flush->put
performance:So allow to specify page size via config.
c84f071b44
tod6fa39cdf9
@ -30,0 +42,4 @@
})
require.NoError(b, cache.Flush(context.Background(), false, false))
b.Run(fmt.Sprintf("%dB_after", payloadSize), func(b *testing.B) {
b.N = objectsCount
Please, check staticcheck warnings.
And we need new benchmark results after the fix.
done
assigning to b.N
d6fa39cdf9
toa7e7a8c8bc
@ -11,3 +11,3 @@
// OpenDB opens BoltDB instance for write-cache. Opens in read-only mode if ro is true.
func OpenDB(p string, ro bool, openFile func(string, int, fs.FileMode) (*os.File, error)) (*bbolt.DB, error) {
func OpenDB(p string, ro bool, openFile func(string, int, fs.FileMode) (*os.File, error), pageSize int) (*bbolt.DB, error) {
It should be noted, that this parameter does nothing if the DB already exists.
Done in storage-node-configuration.md
a7e7a8c8bc
to4c6d082529
@ -28,2 +29,4 @@
}
func BenchmarkWriteAfterDelete(b *testing.B) {
const payloadSize = 32 << 10
It would be nice to have different payload sizes, at least to estimate possible degradations.
4c6d082529
to3fd03040b8
3fd03040b8
to68029d756e