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:
parent
59106f9456
commit
50f577ec6e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue