1
0
Fork 0
arangodb/arangod/VocBase
Max Neunhoeffer c0f1b72bab Add "sensible" madvise calls.
Essentially the strategy is: A newly created and a newly opened file
is advised to be "SEQUENTIAL ACCESS", because we will either write to
it or scan it sequentially. As soon as it is sealed, we switch the
advice to "RANDOM ACCESS", because this should be the normal pattern and
aggressive read-aheads tend to be bad. The collector and the compactor
switch a sealed file back to "SEQUENTIAL ACCESS" just before they scan
it and back to "RANDOM ACCESS", when they are done.

Furthermore, all data files in a collection are advised with "WILLNEED"
just before the collection is scanned during loading.

Finally, the actual hash table of AssocMulti is advised to be random
access, although this is an anonymous map given to us by malloc and not
a memory mapped file.
2015-08-26 16:45:26 +02:00
..
Ditch.cpp remove some locks in HttpServer and friends 2015-07-17 17:48:45 +02:00
Ditch.h no unused private members 2015-05-28 14:29:09 +02:00
ExampleMatcher.cpp do not fetch vocbase in loop 2015-08-22 23:24:36 +02:00
ExampleMatcher.h move shaper to cxx 2015-07-28 17:38:31 +02:00
FILES.md new upgrade-database (formely known as version-check) and new startup procedure 2014-08-07 14:12:19 +02:00
KeyGenerator.cpp renamed file 2015-06-18 17:29:49 +02:00
KeyGenerator.h Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-06-18 17:27:49 +02:00
LOCKS.md updated docs 2013-09-26 09:57:02 +02:00
Legends.cpp move shaper to cxx 2015-07-28 17:38:31 +02:00
Legends.h move shaper to cxx 2015-07-28 17:38:31 +02:00
Shaper.cpp move shaper to cxx 2015-07-28 17:38:31 +02:00
Shaper.h move shaper to cxx 2015-07-28 17:38:31 +02:00
VocShaper.cpp fix compiler warning 2015-07-30 11:16:32 +02:00
VocShaper.h use lock guards 2015-07-29 15:15:49 +02:00
auth.cpp move shaper to cxx 2015-07-28 17:38:31 +02:00
auth.h use new/delete for TRI_vocbase_t 2015-07-20 12:08:13 +02:00
cleanup.cpp use new and delete for TRI_server_t 2015-07-21 11:57:04 +02:00
cleanup.h remove unused header 2015-08-14 18:17:05 +02:00
collection.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
collection.h some unused function cleanup 2015-08-17 12:43:09 +02:00
compactor.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
compactor.h use new/delete for TRI_vocbase_t 2015-07-20 12:08:13 +02:00
datafile.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
datafile.h Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
document-collection.cpp Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-26 10:41:27 +02:00
document-collection.h getIndexes(true) 2015-08-26 09:48:48 +02:00
edge-collection.cpp use unique_ptr 2015-08-17 12:43:09 +02:00
edge-collection.h use unique_ptr 2015-08-17 12:43:09 +02:00
headers.cpp fix replication resumption 2015-08-21 15:57:24 +02:00
headers.h fix replication resumption 2015-08-21 15:57:24 +02:00
replication-applier.cpp added tests for requireFromIncluded 2015-08-25 12:50:58 +02:00
replication-applier.h less initial syncing when resuming replication 2015-08-24 17:39:11 +02:00
replication-common.cpp re-introduced tracking of replication "clients" 2015-08-24 12:02:57 +02:00
replication-common.h re-introduced tracking of replication "clients" 2015-08-24 12:02:57 +02:00
replication-dump.cpp fix replication resumption 2015-08-21 15:57:24 +02:00
replication-dump.h refactoring 2015-08-20 18:25:47 +02:00
replication-master.cpp use nullptr 2015-06-02 23:39:41 +02:00
replication-master.h fully removed replication logger 2014-06-21 00:32:47 +02:00
server.cpp replication refactoring 2015-08-19 16:13:53 +02:00
server.h use std::vector 2015-08-17 12:43:13 +02:00
shape-accessor.cpp move shaper to cxx 2015-07-28 17:38:31 +02:00
shape-accessor.h move shaper to cxx 2015-07-28 17:38:31 +02:00
shaped-json.cpp some unused function cleanup 2015-08-17 12:43:09 +02:00
shaped-json.h Removed debug output 2015-08-20 15:11:18 +02:00
transaction.cpp uint32_t => uint64_t 2015-08-25 15:08:09 +02:00
transaction.h fix replication resumption 2015-08-21 15:57:24 +02:00
update-policy.h WAL recovery 2014-06-27 19:11:41 +02:00
voc-types.h Fix bug in AQL that abort() was called after commit() for trx. 2014-10-31 18:15:40 +01:00
vocbase-defaults.cpp the great rename: array => object, list => array 2014-12-18 21:07:06 +01:00
vocbase-defaults.h use new/delete for TRI_vocbase_t 2015-07-20 12:08:13 +02:00
vocbase.cpp re-introduced tracking of replication "clients" 2015-08-24 12:02:57 +02:00
vocbase.h uint32_t => uint64_t 2015-08-25 15:08:09 +02:00