Project

General

Profile

Actions

Bug #41425

open

RGW consume large amount of virtual-memory and resident-memory

Added by Gal Salomon over 4 years ago. Updated over 4 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

upon running TPCDS benchmark (scale=500) , memory consumption of RGW is growing constantly.
setting M_ARENA_MAX with relative low value number(will explain), reducing the memory consumption drastically, its actually not growing.

without setting M_ARENA_MAX the number of arena is set to number-of-processor*8 , it can be observed by calling malloc_info.
the output of malloc_info (per my runs) show 64 arena's containing memory release by application , but not release by LibC.

setting M_ARENA_MAX to something like number-of-processor/2 (per my tests) , reduce number of arena(as expected) and reduce memory consumption.

NOTE:
this issue (memory growth) may cause out-of-memory (kernel) , thus impacting system stability.
should also note that its difficult to realize in run-time whether memory-growth related to application leakage or related to LibC behavior, thus adding /malloc_info/ to application could help.

documentation: http://man7.org/linux/man-pages/man3/mallopt.3.html

Actions #1

Updated by Matt Benjamin over 4 years ago

  • Pull request ID set to 29891
Actions #2

Updated by Gal Salomon over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Abhishek Lekshmanan over 4 years ago

  • Status changed from New to In Progress
Actions

Also available in: Atom PDF