From ea7baf006b6aa44171acfd80598f027d9e1f7d3a Mon Sep 17 00:00:00 2001 From: eta Date: Thu, 12 Oct 2023 21:50:16 +0100 Subject: hack in some sqlite memory limits to see if that helps --- crates/tor-dirmgr/src/storage/sqlite.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tor-dirmgr/src/storage/sqlite.rs b/crates/tor-dirmgr/src/storage/sqlite.rs index 343be00a7..da8768c3e 100644 --- a/crates/tor-dirmgr/src/storage/sqlite.rs +++ b/crates/tor-dirmgr/src/storage/sqlite.rs @@ -106,6 +106,8 @@ impl SqliteStore { OpenFlags::SQLITE_OPEN_READ_WRITE | OpenFlags::SQLITE_OPEN_CREATE }; let conn = rusqlite::Connection::open_with_flags(&sqlpath, flags)?; + conn.execute_batch("PRAGMA mmap_size=268435456;")?; + conn.execute_batch("PRAGMA hard_heap_limit=5000000;")?; // 5 MB let mut store = SqliteStore::from_conn(conn, blob_dir)?; store.sql_path = Some(sqlpath); store.lockfile = Some(lockfile); -- cgit v1.2.3-54-g00ecf