0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +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); fs::map::opts map_opts(fileopts);
map_opts.sequential = true; map_opts.sequential = true;
map_opts.huge2mb = true;
const fs::map map const fs::map map
{ {
file, map_opts file, map_opts
@ -327,7 +328,7 @@ try
// advise dontneed // advise dontneed
ebytes[0] += evict(map, incore, opts); ebytes[0] += evict(map, incore, opts);
if(count % (batch_max * 64) != 0) if(count % (batch_max * 256) != 0)
continue; continue;
const auto db_bytes const auto db_bytes