]> git.proxmox.com Git - pve-manager.git/commit
api: ceph: improve reporting of ceph OSD memory usage
authorStefan Hanreich <s.hanreich@proxmox.com>
Mon, 4 Sep 2023 09:18:07 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Sep 2023 11:53:35 +0000 (13:53 +0200)
commit808eb12f8cc61480457e836f9d97e94373f3a644
tree7bc3a86581f479c7f88a705d6060a8adaa9b2a6e
parentbacb4173fbb2874d4ac6fa1692fa92341ca36d06
api: ceph: improve reporting of ceph OSD memory usage

Currently we are using the MemoryCurrent property of the OSD service
to determine the used memory of a Ceph OSD. This includes, among other
things, the memory used by buffers [1]. Since BlueFS uses buffered
I/O, this can lead to extremely high values shown in the UI.

Instead we are now reading the PSS value from the proc filesystem,
which should more accurately reflect the amount of memory currently
used by the Ceph OSD.

Aaron and I decided on PSS over RSS, since this should give a better
idea of used memory - particularly when using a large amount of OSDs
on one host, since the OSDs share some of the pages.

[1] https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/API2/Ceph/OSD.pm
www/manager6/ceph/OSDDetails.js