summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-07 15:18:50 +0000
committerintrigeri <intrigeri@boum.org>2016-05-07 15:18:50 +0000
commit52e6fad0ba0d6104be1613514ffbe35740338b4c (patch)
tree4201dfc4e1dc4b2f75b9df8f3cde656df1246c0d /files/reprepro/snapshots
parent52401fc26b9d2da6df81ed0641607a7b2942aed8 (diff)
Lower cache size so that the whole file fits in the Linux page cache even after the DB driver has allocated its own cache.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-compact-reprepro-db2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
index ae311d2..19326fd 100755
--- a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
+++ b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
@@ -22,7 +22,7 @@ size_before = os.path.getsize(args.path)
print("Before compacting: {size} bytes".format(size=size_before))
d = db.DB()
-d.set_cachesize(1, 0) # 1 GB
+d.set_cachesize(0, 536870912) # 512 MB
d.open(args.path, dbname=args.db)
for i in range(0, 10):
d.compact(compact_fillpercent=args.compact_fillpercent,