Project

General

Profile

Bug #43436

No memory limit in KStore::Collection::onode_map

Added by Chang Liu 3 months ago. Updated 3 months ago.

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

0%

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

History

#1 Updated by Chang Liu 3 months ago

channingliu 12-27 16:14
 (gdb) p this->onode_map
$3 = {cct = 0x7fec24f70000, lock = {<std::__mutex_base> = {_M_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, 
          __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, 
        __size = '\000' <repeats 39 times>, __align = 0}}, <No data fields>}, 
Python Exception <class 'gdb.error'> There is no member or method named _M_bbegin.: 
  onode_map = std::unordered_map with 9433 elements,

 ** onode_map = std::unordered_map with 9433 elements **

(gdb) call sizeof(Onode)
$5 = 512

coll_map = std::unordered_map with 388 elements,

in read-only workload, there are 9433 onode cache in a collection. and there are 388 collextions. so kstore uses almost 1.7GB memory.

#2 Updated by Chang Liu 3 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 32446

Also available in: Atom PDF