[SERVER-17465] --use-system-tcmalloc does not support tcmalloc setParameters and extension Created: 04/Mar/15  Updated: 18/Sep/15  Resolved: 31/Mar/15

Status: Closed
Project: Core Server
Component/s: Build, Internal Code
Affects Version/s: None
Fix Version/s: 3.0.3, 3.1.1

Type: Bug Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:

 Description   

There are two runtime parameters for tcmalloc that will have undefined behavior if mongod is compiled with --use-system-tcmalloc:

	"tcmallocAggressiveMemoryDecommit" : 1,
	"tcmallocMaxTotalThreadCacheBytes" : NumberLong(1073741824),

We need to fix the includes in:
src/mongo/util/tcmalloc_set_parameter.cpp
src/mongo/util/tcmalloc_server_status_section.cpp

And ifdef out the extension made to tcmalloc (GetThreadCacheSize())



 Comments   
Comment by Githook User [ 20/Apr/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-17465 Do not attempt to use tcmalloc customizations with system tcmalloc

(cherry picked from commit 02a9fd0daf29dbd0557d51701444bd95a43868f1)
Branch: v3.0
https://github.com/mongodb/mongo/commit/c09d38c2de92bb0227cc273767ec4a9c22702cc0

Comment by Githook User [ 31/Mar/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-17465 Do not attempt to use tcmalloc customizations with system tcmalloc
Branch: master
https://github.com/mongodb/mongo/commit/02a9fd0daf29dbd0557d51701444bd95a43868f1

Generated at Thu Feb 08 03:44:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.