summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcewritebenchmark.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-26 11:50:18 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-26 11:50:18 +0100
commit2cf098e6e2f28453f4c656fa081d7d6eed179d63 (patch)
tree883fcdfd72efc4cf2f3ce38f18be7f70c99d7c58 /tests/dummyresourcewritebenchmark.cpp
parent4210e5a24f700e5104333ed014c3269262b66bec (diff)
downloadsink-2cf098e6e2f28453f4c656fa081d7d6eed179d63.tar.gz
sink-2cf098e6e2f28453f4c656fa081d7d6eed179d63.zip
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).
Diffstat (limited to 'tests/dummyresourcewritebenchmark.cpp')
-rw-r--r--tests/dummyresourcewritebenchmark.cpp5
1 files changed, 5 insertions, 0 deletions
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:
213 QVERIFY(timeStandardDeviation < 1); 213 QVERIFY(timeStandardDeviation < 1);
214 } 214 }
215 215
216 void getFreePages()
217 {
218 std::system(QString("mdb_stat %1/%2 -ff").arg(Akonadi2::storageLocation()).arg("org.kde.dummy.instance1").toLatin1().constData());
219 }
220
216 //This allows to run individual parts without doing a cleanup, but still cleaning up normally 221 //This allows to run individual parts without doing a cleanup, but still cleaning up normally
217 void testCleanupForCompleteTest() 222 void testCleanupForCompleteTest()
218 { 223 {