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

stats.numRemainingBgJobs in Ep-engine code is not updated correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • 2.0.1
    • 2.0
    • couchbase-bucket
    • Security Level: Public
    • Linux

    Description

      With 5 buckets on the same server node, even without any client workload, the memcached runs 50% of CPU means making 2 CPUs busy in 4 CPU box.
      While running gdb, it shows that stats.numRemainingBgJobs is not updated correctly.

      Here is the snapshot of the perf output:
      19.88% memcached ep.so [.] VBucketMap::getBucket(unsigned short) const
      12.31% memcached ep.so [.] BgFetcher::run(SingleThreadedRCPtr<Task>&)
      11.81% memcached libpthread-2.12.so [.] pthread_mutex_lock
      9.44% memcached ep.so [.] SpinLock::acquire()
      6.60% memcached libpthread-2.12.so [.] pthread_mutex_unlock
      6.39% memcached ep.so [.] VBucket::getBGFetchItems(std::tr1::unordered_map<unsigned long, std::list<VBucketBGFetchItem*, std::allocator<VBucketBGFetchItem*> >, std::tr1::hash<u
      4.59% memcached ep.so [.] Mutex::release()
      2.15% memcached ep.so [.] SpinLock::release()
      1.80% memcached ep.so [.] Dispatcher::moveReadyTasks(timeval const&)
      1.73% memcached ep.so [.] Mutex::acquire()
      1.49% memcached ep.so [.] SpinLock::~SpinLock()

      Attachments

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

        Activity

          People

            jin Jin Lim (Inactive)
            xiaoqin Xiaoqin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 16h
                16h
                Remaining:
                Remaining Estimate - 16h
                16h
                Logged:
                Time Spent - Not Specified
                Not Specified

                PagerDuty