ctree: free mmap pages after 1GB instead of 100MB

Summary:
We were seeing performance issues on linux if we performed the madvise every
100MB. Let's do it once every gigabyte instead. The performance cost is pretty
negligble at that level.

Test Plan:
Ran the perf test for fulliter and verified the time went back down
to normal (a factor of 6x).

Reviewers: #fastmanifest, ttung

Reviewed By: ttung

Subscribers: ttung, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3799820

Signature: t1:3799820:1472675258:d279ac773aa4a2e027f4ecbe8a485b299a364efe
This commit is contained in:
Durham Goode 2016-08-31 13:28:18 -07:00
parent 430216e787
commit fd8f1d7c11

View File

@ -42,7 +42,7 @@
#include "cdatapack.h"
#include "buffer.h"
#define MAX_PAGED_IN_DATAPACK (100 * 1024 * 1024)
#define MAX_PAGED_IN_DATAPACK (1024 * 1024 * 1024)
/**
* This is an exact representation of an index entry on disk. Do not consume