Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add warmup option for nydus daemon #301

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

sctb512
Copy link
Member

@sctb512 sctb512 commented Dec 30, 2022

This is an experimental feature. With the warmup option, the nydus daemon could cache more data on the local disk to increase hit ratio.

Signed-off-by: Bin Tang tangbin.bin@bytedance.com

@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2022

Codecov Report

Base: 31.68% // Head: 31.81% // Increases project coverage by +0.13% 🎉

Coverage data is based on head (8bc7891) compared to base (908a596).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #301      +/-   ##
==========================================
+ Coverage   31.68%   31.81%   +0.13%     
==========================================
  Files          34       34              
  Lines        3576     3564      -12     
==========================================
+ Hits         1133     1134       +1     
+ Misses       2327     2314      -13     
  Partials      116      116              
Impacted Files Coverage Δ
config/daemonconfig/fuse.go 0.00% <ø> (ø)
cmd/containerd-nydus-grpc/pkg/command/flags.go 100.00% <0.00%> (ø)
pkg/system/system.go 6.34% <0.00%> (+0.37%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -27,6 +27,7 @@ type FuseDaemonConfig struct {
EnableXattr bool `json:"enable_xattr,omitempty"`
AccessPattern bool `json:"access_pattern,omitempty"`
LatestReadFiles bool `json:"latest_read_files,omitempty"`
Warmup uint64 `json:"warmup"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a comment line here to tell it's experimental.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Fixed.

This is an experimental feature. With the warmup option,
the nydus daemon could cache more data on the local disk
to increase hit ratio.

Signed-off-by: Bin Tang <tangbin.bin@bytedance.com>
Copy link
Member

@changweige changweige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@changweige changweige merged commit e3ffe38 into containerd:main Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants