]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: estimate omap_allocated 28851/head
authorSage Weil <sage@redhat.com>
Mon, 9 Apr 2018 19:58:03 +0000 (14:58 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 2 Jul 2019 04:33:23 +0000 (00:33 -0400)
commit05555522394443bcc1c7f5f2fafd6d69f17fe834
tree52413395040a6f0270f7ef3b59d8adcaa6e3b932
parent32ffd5380b72c26bbb7d2b35c91e7a4111e5b54b
os/filestore: estimate omap_allocated

Assume all of leveldb/rocksdb is omap.  This is an overestimate, but
better than nothing.

We don't populate the metadata overhead (no easy way to calculate this
that comes to mind).  And we don't populate the compression-related
fields.  It's possible we could make something up here in the VDO
case...

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 186edca81ef09058b9c121967ab1850fbb5812b6)

Conflicts:
src/os/filestore/FileStore.cc

No VDO in luminous
src/os/filestore/FileStore.cc