Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52856

3x slowdown in DebugOptimized kv_engine test runtime with jemalloc debug library

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • master
    • master
    • None
    • None
    • 1
    • KV July 2022

    Description

      As part of MB-51532, the debug variant of jemalloc (libjemallocd.so) was used for debug build types - "Debug" and "DebugOptimized". This has resulted in a significant increase in the runtime of CV tests - for example on macOS (Apple M1 Pro), DebugOptimized build the total runtime for all kv_engine tests is now:

      Total Test time (real) = 518.24 sec
       
      real	8m38.260s
      user	61m50.453s
      sys	3m2.256s
      

      Compared to before when DebugOptimized used the non-debug variant of jemalloc ( https://review.couchbase.org/c/tlm/+/172964 ):

      Total Test time (real) = 177.53 sec
       
      real    2m57.544s
      user    16m30.490s
      sys 2m44.285s
      

      i.e user+sys has increased from 19m14s to 64m42s - over 3x slower.

      While enabling extra debug checks for DebugOptimized can be useful, having it cost 3x in test runtime is not really an acceptable trade-off.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            drigby Dave Rigby (Inactive)
            drigby Dave Rigby (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty