Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3429

Turn off libmongoc shared memory counters by default?

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • 2.0.0
    • None
    • cmake, libmongoc, Performance
    • None

    Description

      By default, if shared memory is supported, libmongoc gathers statistics about client/cursor/socket usage. See the Basic Troubleshooting page for more info.

      They are currently enabled by default on Linux if shared memory is supported. They may be opted-out at configuration time with -DENABLE_SHM_COUNTERS=OFF or at runtime with the MONGOC_DISABLE_SHM.

      The shared memory segment is unlinked in mongoc_cleanup, but if a user does not call that function, or a crash occurs before that function is called, then this may result in shared memory segments being left around.

      Let's consider whether this should be an opt-in feature rather than opt-out. This would be a bit of a behavior change, but it's not clear to me how disruptive changing this default would be.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: