0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd:Ⓜ️:homeserver::bootstrap: Use hugepage for event json map.

This commit is contained in:
Jason Volk 2021-03-11 13:39:29 -08:00
parent 59106f9456
commit 50f577ec6e

View file

@ -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