[SERVER-46132] configure tcmalloc parameters while compiling mongod Created: 13/Feb/20  Updated: 21/Feb/20  Resolved: 21/Feb/20

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

Type: Bug Priority: Major - P3
Reporter: Ye Haiyang Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: tcmalloc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

How to configure tcmalloc parameters while compilng?

Like these parameters:tcmalloc-maxsize, tcmalloc-pagesize and tcmalloc-target-transfer-kb.

there are some descriptions in mongo-r4.3.1/src/third_party/gperftools-2.7/dist/ChangeLog:

(1)commit 61c8a436f13f2f813dd0530be2f77c720d119f07commit 61c8a436f13f2f813dd0530be2f77c720d119f07
    Configurable max size mongodb (#4)
    Allow kMaxSize to be configurable, limit available options to    power-of-2 sizes.

(2)commit e18b055b128cd2cdecf7ee07d5d4792b90405ba9commit e18b055b128cd2cdecf7ee07d5d4792b90405ba9
    Allow configuring page size to 4K, 8K, 16K, 32K, 64K, 128K and 256K    (#5)

(3)commit 56f9308ec0144750a8cedc3d4b0ccd31a4ef4019commit 56f9308ec0144750a8cedc3d4b0ccd31a4ef401
    Add --enable-tcmalloc-target-transfer-kb and    --enable-tcmalloc-unclamped-transfer-sizes (#8)

--------------------------------------------------------------------------------------------

but, while compiling mongod using python and SConstruct from source code, There are no above configuration parameters to set ? 

How to configure tcmalloc parameters?



 Comments   
Comment by Kelsey Schubert [ 21/Feb/20 ]

Hi 1030843709@qq.com,

Thanks for your question and sorry for the delay getting back to you. Unfortunately, this isn't the best place for these types of questions. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag.

This question is a bit less about how to use MongoDB, and more about how to build it from source, so I would suggest a third resource as the best place to ask: the mongodb-dev group.

Kind regards,
Kelsey

Generated at Thu Feb 08 05:10:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.