Project

General

Profile

Actions

Feature #54525

open

osd/mon: log memory usage during tick

Added by Dan van der Ster about 2 years ago. Updated 4 days ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Introspection/Control
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
squid
Reviewed:
Affected Versions:
Component(RADOS):
Monitor, OSD
Pull request ID:

Description

The MDS has a nice feature that it prints out the rss and other memory stats every couple seconds at debug level 2.

2022-03-10T22:13:50.779+0100 7f00f85aa700  2 mds.0.cache Memory usage:  total 6652188, rss 5644928, heap 331992, baseline 307416, 599334 / 1484019 inodes have caps, 629138 caps, 0.423942 caps per inode

Similar logging for the OSD (and MON, less urgently) would be ultra useful when debugging things like #53729

The MDS uses a MemoryModel class, see MDCache::check_memory_usage, so this should be pretty easy to copy.

Actions #1

Updated by Laura Flores about 2 years ago

Areas to add this type of logging would be OSD::tick() and Monitor::tick().

Actions #2

Updated by Laura Flores about 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Laura Flores
Actions #3

Updated by Laura Flores 7 months ago

  • Translation missing: en.field_tag_list set to low-hanging-fruit
  • Status changed from In Progress to New
Actions #4

Updated by Laura Flores 7 months ago

  • Assignee deleted (Laura Flores)
Actions #5

Updated by junxiang mu 11 days ago

let me try implement this

Actions #7

Updated by Patrick Donnelly 4 days ago

  • Category set to Introspection/Control
  • Target version set to v20.0.0
  • Source set to Development
  • Backport set to squid
  • Pull request ID set to 56812
Actions

Also available in: Atom PDF