mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
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:
parent
430216e787
commit
fd8f1d7c11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user