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

Turn off libmongoc shared memory counters by default?

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.0
    • Affects Version/s: None
    • Component/s: cmake, libmongoc, Performance
    • None

      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.

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

              Created:
              Updated: