You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm mistaken, we have a memory leak in chainbase_node_allocator.
This allocates groups of items from the shared segment_manager, and free items are managed in a free list. Items are added to the freelist when either:
of block of them (64) is allocated from the segment manager
or some are freed (deallocate called)
The issue is that when nodeos is closed (via Ctrl-c for example), the segment allocations in the shared segment_manager are preserved, but the freelist is lost. So the memory for whatever free items we had in the segment_manager when closing nodeos is now lost, until we restart fresh from a snapshot.
The text was updated successfully, but these errors were encountered:
greg7mdp
added
bug
The product is not working as was intended.
state-change
Change to Chainbase and/or fork database on-disk state. Updates require snapshots.
labels
Nov 26, 2024
I was wrong. The chainbase_node_allocator is preserved in instances of shared_multi_index_container, so the _free_listoffset_ptr is preserved as well. Closing the issue.
greg7mdp
removed
bug
The product is not working as was intended.
state-change
Change to Chainbase and/or fork database on-disk state. Updates require snapshots.
labels
Dec 2, 2024
Unless I'm mistaken, we have a memory leak in
chainbase_node_allocator
.This allocates groups of items from the shared
segment_manager
, and free items are managed in a free list. Items are added to the freelist when either:deallocate
called)The issue is that when
nodeos
is closed (viaCtrl-c
for example), the segment allocations in the sharedsegment_manager
are preserved, but the freelist is lost. So the memory for whatever free items we had in thesegment_manager
when closingnodeos
is now lost, until we restart fresh from a snapshot.The text was updated successfully, but these errors were encountered: