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 17 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

Also available in: Atom PDF