MeiliSearch/crates
meili-bors[bot] 9a9383643f
Merge #5125
5125: Change the default max memory usage to 5% of the total memory r=ManyTheFish a=Kerollmops

After thorough testing, we found that giving 5% of the total available memory to allocate resident memory (caches and channels) is the best approach.

The main reason is that the new indexer is highly memory-map oriented, with LMDB, and reads the database while performing the indexation. So, by allowing the maximum amount of memory available to LMDB and the OS, it will perform the key-value store reads and all other indexation operations faster by keeping more pages hot in the cache. In #5124, we also sorted the entries to merge to improve the read speed of LMDB.

This is common in database management systems: Reading stuff on the disk is much faster when done in lexicographic order (the default sorted order of key values). The entries have a great chance of already being in the OS memory cache, as they were loaded in a previous read, and reading stuff on the disk is very slow compared to reading memory.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2024-12-05 10:11:25 +00:00
..
benchmarks remove mimalloc on Windows 2024-12-02 18:13:56 +01:00
build-info Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
dump Clean up dependencies 2024-11-27 14:30:34 +01:00
file-store Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
filter-parser Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
flatten-serde-json Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
fuzzers Plug the NoPanicThreadPool in the tests and benchmarks 2024-11-27 17:04:49 +01:00
index-scheduler increase the margin allowed to delete task 2024-12-03 11:07:03 +01:00
json-depth-checker Move crates under a sub folder to clean up the code 2024-10-21 08:18:43 +02:00
meili-snap Add comment explaining why we fixed the version of insta 2024-11-21 16:56:56 +01:00
meilisearch Change the default max memory usage to 5% of the total memory 2024-12-05 10:14:46 +01:00
meilisearch-auth Clean up dependencies 2024-11-27 14:30:34 +01:00
meilisearch-types Stop allocating 1GiB for documents 2024-12-02 16:30:14 +01:00
meilitool Merge branch 'main' into indexer-edition-2024 2024-11-20 16:59:58 +01:00
milli Merge #5124 2024-12-05 09:35:52 +00:00
permissive-json-pointer Add indices field to _matchesPosition to specify where in an array a match comes from (#5005) 2024-11-20 01:00:43 +01:00
tracing-trace Remove orphan span 2024-11-21 12:12:07 +01:00
xtask Make clippy happy 2024-12-04 17:39:10 +01:00