Archived
n-gram table: --ngram-table ram reads it from a locked copy in RAM
embed_lookup_q reads the n-gram table through a row cache and direct reads, and about half of a step's rows are first-seen, so steps wait on the drive. --ngram-table ram (default disk, unchanged) copies the table into locked huge pages in the background, checks the copy against the mapping and then serves the gather from memory. MemAvailable, RLIMIT_MEMLOCK and the cgroup limit are checked first; if any is short the table stays on disk. The flag reaches the plugin as an optional `resident` parameter of embed_lookup_q.
This commit is contained in:
1 parent
4252353bc2
commit
e6c8a3d7fa
18 files changed
+363
-56
No files matched your search
@@ -700,6 +700,7 @@ static bool rows_form(const RadArgs* a, RowGather* g) {
|
||||
g->n_ahead = ahead ? numel(ahd) : 0;
|
||||
g->rank = a->rank;
|
||||
g->world_size = a->world_size;
|
||||
g->resident = p_int(a, "resident", 0) != 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user