Skip to content

Commit

Permalink
nydus-test: explicitly set prefetch_all in rafs config
Browse files Browse the repository at this point in the history
By default, prefeth_all is true in rafs config. We
can't verify prefetch table contents then.

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
  • Loading branch information
changweige committed Sep 30, 2022
1 parent 537c105 commit 5084257
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contrib/nydus-test/framework/rafs.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,13 @@ def enable_fs_prefetch(
threads_count=8,
merging_size=128 * 1024,
bandwidth_rate=0,
prefetch_all=None,
prefetch_all=False,
):
self._configure_rafs("fs_prefetch.enable", True)
self._configure_rafs("fs_prefetch.threads_count", threads_count)
self._configure_rafs("fs_prefetch.merging_size", merging_size)
self._configure_rafs("fs_prefetch.bandwidth_rate", bandwidth_rate)
if prefetch_all is not None:
self._configure_rafs("fs_prefetch.prefetch_all", prefetch_all)
self._configure_rafs("fs_prefetch.prefetch_all", prefetch_all)

return self

Expand Down

0 comments on commit 5084257

Please sign in to comment.