-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: support the arg batch-size for small chunks mergence #445
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #445 +/- ##
==========================================
- Coverage 37.15% 37.13% -0.02%
==========================================
Files 60 60
Lines 6909 6912 +3
==========================================
Hits 2567 2567
- Misses 4045 4048 +3
Partials 297 297
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 in Codecov by Sentry. |
to support the feature of small chunks mergence in nydus, we need to add the arg batch-size Signed-off-by: Desiki-high <[email protected]>
@@ -71,6 +71,8 @@ type PackOption struct { | |||
AlignedChunk bool | |||
// ChunkSize sets the size of data chunks, must be power of two and between 0x1000-0x1000000. | |||
ChunkSize string | |||
// BacthSize sets the size of batch data chunks, must be power of two and between 0x1000-0x1000000 or zero. | |||
BatchSize string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does zero value mean if it is set to zero ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does zero value mean if it is set to zero ?
Zero is the default value of batch-size for nydus-image, it means that the small chunks mergence is unable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add the option arg (batch-size) for convert tool and the batch-size arg is new feature for nydus-image, which support merge small file chunks into one batch chunk.
That is the first part of work , other work will in image-service and acceleration-service
This PR is related to dragonflyoss/image-service#1202.