Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88229

Configure glibc tunables in mongod.service for new tcmalloc

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v8.0
    • Security 2024-04-01, Security 2024-04-15, Security 2024-04-29

      The new tcmalloc's rseq conflicts with glibc's rseq support. Glibc's support can be disabled with GLIBC_TUNABLES=glibc.pthread.rseq=0. The Environment setting in mongod.service should be set to disable this by default to ensure TCMalloc can use the new cpu cache.

      See https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#Environment=

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: