[SERVER-38939] Be more memory efficient for leaf nodes in biggie Created: 10/Jan/19  Updated: 06/Dec/22  Resolved: 20/May/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Geert Bosch Assignee: Backlog - Storage Execution Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-36709 Make radix store nodes adaptive to im... Closed
Assigned Teams:
Storage Execution
Sprint: Storage NYC 2019-01-14
Participants:

 Description   

Currently each node in the tree, including leaf pointers, has 256 shared pointers. Each shared pointer is 16 bytes, for a total of 4kB for the pointers. As the first allocation size > 4kB is 6 kB, and each document results in 2 nodes (one for index, one for record store), each document has 12kB overhead (18 kB for replicasets due to the oplog).
This causes each Node to be > 4kB resulting in excessive memory usage during testing and OOMs.
Change the Node representation to avoid shared pointers in leaf nodes.



 Comments   
Comment by Henrik Edin [ 15/May/20 ]

This should probably be closed in favor of SERVER-36709

Comment by Githook User [ 16/Jan/19 ]

Author:

{'username': 'GeertBosch', 'email': 'geert@mongodb.com', 'name': 'Geert Bosch'}

Message: Revert "SERVER-38939 Be more memory efficient for leaf nodes in biggie"

This reverts commit 71b46ab799f870d1ddbf2d6d6e133b39724c945c.
Branch: master
https://github.com/mongodb/mongo/commit/fb29b8e9d5a11dd418751c57900e510cf104e9a7

Comment by Githook User [ 14/Jan/19 ]

Author:

{'username': 'GeertBosch', 'email': 'geert@mongodb.com', 'name': 'Geert Bosch'}

Message: SERVER-38939 Be more memory efficient for leaf nodes in biggie
Branch: master
https://github.com/mongodb/mongo/commit/71b46ab799f870d1ddbf2d6d6e133b39724c945c

Generated at Thu Feb 08 04:50:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.