-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log unverified blockstore memory consumption #201
Log unverified blockstore memory consumption #201
Conversation
requestmanager/asyncloader/unverifiedblockstore/unverifiedblockstore.go
Outdated
Show resolved
Hide resolved
requestmanager/asyncloader/unverifiedblockstore/unverifiedblockstore.go
Outdated
Show resolved
Hide resolved
@@ -30,21 +33,26 @@ func New(storer ipld.Storer) *UnverifiedBlockStore { | |||
// comes in as part of a traversal. | |||
func (ubs *UnverifiedBlockStore) AddUnverifiedBlock(lnk ipld.Link, data []byte) { | |||
ubs.inMemoryBlocks[lnk] = data | |||
ubs.dataSize = ubs.dataSize + uint64(len(data)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need to synchronize because anyway the map is not synchronized, which suggests that this component is only ever called serially?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raulk Yeah - it's all done inside an event loop.
requestmanager/asyncloader/unverifiedblockstore/unverifiedblockstore.go
Outdated
Show resolved
Hide resolved
Co-authored-by: raulk <raul@protocol.ai>
To debug filecoin-project/lotus#7077.