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

feat: support the arg batch-size for small chunks mergence #445

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

Desiki-high
Copy link
Contributor

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.

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (d4ccae0) 37.15% compared to head (5624225) 37.13%.

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              
Impacted Files Coverage Δ
pkg/converter/tool/builder.go 0.00% <0.00%> (ø)

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Desiki-high Desiki-high changed the title feat: support the arg batch-size for small chunks mergence [WIP]feat: support the arg batch-size for small chunks mergence Apr 11, 2023
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]>
@Desiki-high Desiki-high marked this pull request as ready for review April 20, 2023 01:37
@Desiki-high Desiki-high changed the title [WIP]feat: support the arg batch-size for small chunks mergence feat: support the arg batch-size for small chunks mergence Apr 20, 2023
@@ -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
Copy link
Member

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 ?

Copy link
Contributor Author

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.

@Desiki-high Desiki-high requested a review from changweige April 21, 2023 03:36
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 ccd366f into containerd:main Apr 23, 2023
@Desiki-high Desiki-high deleted the batchsize branch April 23, 2023 08:07
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