mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Optimize node memory consumption #559
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#559
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @fyrchik on GitHub (May 19, 2022).
There is a number of cases where we can optimize the memory consumption.
IDs should be passed by value where possibleC * size(object), ideally we'd like to haveC = 1, using streaming interfaces, each separate transformer could be profiledErrBusyAnything else?
Related #1319 .
@carpawell commented on GitHub (Jul 4, 2022):
Optimize
GetRangeof the FSTree? Now the blobstor reads the whole object viaGetmethod, decompresses it, and only after that cuts the desired part of an object.Getmethod reads all the payload in the memory even if only a small part is required.Optimization may require moving compression on the blobovnicza and FSTree levels and decompressing the object only if it was really compressed.
There is already some kind of thoughts about compression on the bloboznicza side:
nspcc-dev/neofs-node@f699e82ea7/pkg/local_object_storage/blobstor/blobovnicza.go (L607-L610)@nspcc-dev/neofs-core
@roman-khimov commented on GitHub (Sep 23, 2025):
Obsolete, unspecific and largely irrelevant now to me. Many optimizations were made and we're handling memory much better now. There is still potential for improvement, but more specific issues are welcome for this.