From 62c74f042a474f63c723f24390d11a72f100af55 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Tue, 16 Apr 2024 15:41:14 -0400 Subject: [PATCH] SERVER-88229 Configure glibc tunables in mongod.service for new tcmalloc (#20977) GitOrigin-RevId: f754ec3179f17ed2848b2e004420dc406ac622ea --- debian/mongod.service | 1 + rpm/mongod.service | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/mongod.service b/debian/mongod.service index b510d2a0fa2..4f784c966ba 100644 --- a/debian/mongod.service +++ b/debian/mongod.service @@ -9,6 +9,7 @@ User=mongodb Group=mongodb EnvironmentFile=-/etc/default/mongod Environment="MONGODB_CONFIG_OVERRIDE_NOFORK=1" +Environment="GLIBC_TUNABLES=glibc.pthread.rseq=0" ExecStart=/usr/bin/mongod --config /etc/mongod.conf RuntimeDirectory=mongodb # file size diff --git a/rpm/mongod.service b/rpm/mongod.service index 8d4a4c4142c..738d3f322f1 100644 --- a/rpm/mongod.service +++ b/rpm/mongod.service @@ -9,6 +9,7 @@ User=mongod Group=mongod Environment="OPTIONS=-f /etc/mongod.conf" Environment="MONGODB_CONFIG_OVERRIDE_NOFORK=1" +Environment="GLIBC_TUNABLES=glibc.pthread.rseq=0" EnvironmentFile=-/etc/sysconfig/mongod ExecStart=/usr/bin/mongod $OPTIONS RuntimeDirectory=mongodb