From 2cf098e6e2f28453f4c656fa081d7d6eed179d63 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 26 Dec 2015 11:50:18 +0100 Subject: Print free page info in benchmark. LMDB seems to amass quite some free pages that are not reused, resulting in a rather poor usage of the space available. I haven't figured out why that is so far (it doesn't seem to be due to open transactions). --- tests/dummyresourcewritebenchmark.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/dummyresourcewritebenchmark.cpp b/tests/dummyresourcewritebenchmark.cpp index 3e8f4c5..1e7f1ef 100644 --- a/tests/dummyresourcewritebenchmark.cpp +++ b/tests/dummyresourcewritebenchmark.cpp @@ -213,6 +213,11 @@ private Q_SLOTS: QVERIFY(timeStandardDeviation < 1); } + void getFreePages() + { + std::system(QString("mdb_stat %1/%2 -ff").arg(Akonadi2::storageLocation()).arg("org.kde.dummy.instance1").toLatin1().constData()); + } + //This allows to run individual parts without doing a cleanup, but still cleaning up normally void testCleanupForCompleteTest() { -- cgit v1.2.3