1
0
Fork 0
arangodb/arangod/Wal
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
..
AllocatorThread.cpp merged Exceptions.h and Exception.h 2015-03-23 14:05:19 +01:00
AllocatorThread.h fixed races reported by helgrind 2014-10-16 19:32:14 +02:00
CollectorThread.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
CollectorThread.h use new and delete for TRI_server_t 2015-07-21 11:57:04 +02:00
DocumentOperation.h fix replication resumption 2015-08-21 15:57:24 +02:00
Logfile.cpp more files renamed 2014-09-13 00:20:30 +02:00
Logfile.h move shaper to cxx 2015-07-28 17:38:31 +02:00
LogfileManager.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
LogfileManager.h replication improvements 2015-08-17 18:41:05 +02:00
Marker.cpp Visual Studio adjustments 2015-04-30 11:46:55 +02:00
Marker.h move shaper to cxx 2015-07-28 17:38:31 +02:00
RecoverState.cpp Add "sensible" madvise calls. 2015-08-26 16:45:26 +02:00
RecoverState.h refactoring 2015-08-20 18:25:47 +02:00
RemoverThread.cpp merged Exceptions.h and Exception.h 2015-03-23 14:05:19 +01:00
RemoverThread.h added separate logfile remover thread 2014-07-05 16:41:15 +02:00
Slot.cpp the great rename 2014-09-13 00:10:11 +02:00
Slot.h move shaper to cxx 2015-07-28 17:38:31 +02:00
Slots.cpp fixed race condition in SynchroniserThread 2014-10-15 19:26:36 +02:00
Slots.h Find original legend in same WAL file if needed. 2014-07-22 23:32:08 +02:00
SyncRegion.h fixed race condition in SynchroniserThread 2014-10-15 19:26:36 +02:00
SynchroniserThread.cpp simplify call to mmap 2015-07-27 16:24:25 +02:00
SynchroniserThread.h fixed syncs across multiple files 2014-07-01 13:12:36 +02:00