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

moxi: hot lock with memcached.c/transmit()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 1.6.0 GA
    • 1.6.0 beta4
    • moxi
    • None
    • Operating System: All
      Platform: All

    Description

      look for any any perf gains around the transmit() hot lock...

      $ sudo plockstat -CH -n 1 -v -s 10 -p 82295
      plockstat: tracing enabled for pid 82295
      Mutex hold

      -------------------------------------------------------------------------------
      Count nsec Lock Caller
      78165 14054 0x10080ec78 moxi`transmit+0xbe

      nsec ---- Time Distribution — count Stack
      4096 | | 357 moxi`transmit+0xbe
      8192 |@@@@@@@@@@@@@@@@@@@@@@@ | 75419 moxi`drive_machine+0x111
      16384 | | 34 moxi`event_base_loop+0x472
      32768 | | 1241 moxi`worker_libevent+0x80
      65536 | | 412 libSystem.B.dylib`_pthread_start+0x14b
      131072 | | 376 libSystem.B.dylib`thread_start+0xd
      262144 | | 122
      524288 | | 111
      1048576 | | 41
      2097152 | | 31
      4194304 | | 15
      8388608 | | 2
      16777216 | | 3
      33554432 | | 1

      Mutex block

      -------------------------------------------------------------------------------
      Count nsec Lock Caller
      520 272384 0x100601950 moxi`matcher_check+0x33

      nsec ---- Time Distribution — count Stack
      16384 | | 21 moxi`matcher_check+0x33
      32768 |@@ | 64 moxi`cproxy_optimize_set_ascii+0x59
      65536 |@@@@ | 98 moxi`cproxy_forward_a2b_item_downstream+0x744
      131072 |@@@@ | 107 moxi`cproxy_forward_a2b_downstream+0x100
      262144 |@@@@@ | 121 moxi`cproxy_forward+0xb2
      524288 |@@@ | 66 moxi`cproxy_assign_downstream+0x145
      1048576 |@ | 36 moxi`drive_machine+0xb08
      2097152 | | 7 moxi`event_base_loop+0x472
      moxi`worker_libevent+0x80

      Attachments

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

        Activity

          People

            steve.yen@northscale.com Steve Yen
            steve.yen@northscale.com Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty