Project

General

Profile

Actions

Bug #16695

closed

radosgw Consumes too much CPU time to synchronize metadata or data between multisite

Added by bajie white almost 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In the 10.2.0 version, the multisite function is added. I configure two sites int a realm : one is the master zone in the master zonegorup, the other is the master zone in the second zonegroup. Then I start one radosgw for each zone. After I create a user in the master zone, I find the radosgw consume 100% cpu time with the command top.


Related issues 3 (0 open3 closed)

Related to rgw - Bug #15915: rgw command is consuming all the cpu timeResolvedCasey Bodley05/17/2016

Actions
Related to rgw - Bug #17052: unittest_http_manager times outResolvedCasey Bodley08/17/2016

Actions
Copied to rgw - Backport #17343: jewel: radosgw Consumes too much CPU time to synchronize metadata or data between multisiteResolvedCasey BodleyActions
Actions #1

Updated by bajie white almost 8 years ago

I find the problem is the function do_curl_wait. The function call curl_multi_wait in do_curl_wait will be waken because the pipe wait_fd is always readable. I find the wait_fd will never be changed in curl_multi_wait. So the pipe wait_fd will never be read.

If the wait_fd is set O_NONBLOCK when created in RGWHTTPManager::set_threaded and read in do_curl_wait no matter what wait_fd.revents is, the bug can be fixed.

Actions #2

Updated by Casey Bodley over 7 years ago

  • Related to Bug #15915: rgw command is consuming all the cpu time added
Actions #3

Updated by Casey Bodley over 7 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Casey Bodley
Actions #5

Updated by Casey Bodley over 7 years ago

  • Related to Bug #17052: unittest_http_manager times out added
Actions #6

Updated by Casey Bodley over 7 years ago

  • Backport set to jewel
Actions #7

Updated by Casey Bodley over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #8

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #17343: jewel: radosgw Consumes too much CPU time to synchronize metadata or data between multisite added
Actions #9

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF