Bug 2006631 - Perf: mem_acct: Make mem_accounting lock free
Summary: Perf: mem_acct: Make mem_accounting lock free
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.5
Hardware: All
OS: All
urgent
urgent
Target Milestone: ---
: RHGS 3.5.z Batch Update 7
Assignee: Mohit Agrawal
QA Contact: Vivek Das
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 05:00 UTC by Mohit Agrawal
Modified: 2022-05-31 12:37 UTC (History)
8 users (show)

Fixed In Version: glusterfs-6.0-62
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-31 12:37:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:4840 0 None None None 2022-05-31 12:37:46 UTC

Description Mohit Agrawal 2021-09-22 05:00:48 UTC
The _gf(c|m)alloc and __gf_free memory allocation api calls gf_mem_set_acct_info function to save memory accounting on xlator and to update the record it takes lock.During testing we have observed the mem_acct mutex has contention.

Solution: To avoid contention make it lock free and the performance data is available at github issue #2771(https://github.com/gluster/glusterfs/issues/2771)

Comment 1 Mohit Agrawal 2021-09-22 05:02:34 UTC
The upstream patch is to resolve the same
https://github.com/gluster/glusterfs/pull/2797

Comment 7 Yaniv Kaul 2021-11-09 12:05:24 UTC
Can we get a QE ack on this?

Comment 23 errata-xmlrpc 2022-05-31 12:37:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glusterfs bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4840


Note You need to log in before you can comment on or make changes to this bug.