From 50f577ec6e4307809405f1f6dfce44a96678ae67 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 11 Mar 2021 13:39:29 -0800 Subject: [PATCH] ircd::m::homeserver::bootstrap: Use hugepage for event json map. --- matrix/homeserver_bootstrap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/homeserver_bootstrap.cc b/matrix/homeserver_bootstrap.cc index ee7257a7d..eecfc598b 100644 --- a/matrix/homeserver_bootstrap.cc +++ b/matrix/homeserver_bootstrap.cc @@ -201,6 +201,7 @@ try fs::map::opts map_opts(fileopts); map_opts.sequential = true; + map_opts.huge2mb = true; const fs::map map { file, map_opts @@ -327,7 +328,7 @@ try // advise dontneed ebytes[0] += evict(map, incore, opts); - if(count % (batch_max * 64) != 0) + if(count % (batch_max * 256) != 0) continue; const auto db_bytes