-
Notifications
You must be signed in to change notification settings - Fork 104
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
converter: improve pack performance by fifo #44
Conversation
a8db324
to
f8e5006
Compare
Codecov Report
@@ Coverage Diff @@
## main #44 +/- ##
=======================================
Coverage 35.09% 35.09%
=======================================
Files 18 18
Lines 1288 1288
=======================================
Hits 452 452
Misses 765 765
Partials 71 71 Continue to review full report at Codecov.
|
396d2d6
to
7621e81
Compare
Wait for this PR dragonflyoss/nydus#415 to be merged then pass the CI testing. |
In the previous convert implementation, the builder (nydus-image) would dump the blob and bootstrap, and then the converter would pack the two files into a tar format, which has a performance loss, and the patch solves this problem by introducing fifo file. The converter creates a fifo file, the builder will write the blob and bootstrap data to the fifo as the writer side, then the converter read from the fifo and write directly to content store for faster conversion. Signed-off-by: Yan Song <[email protected]>
The latest nydus static release url has been changed. Signed-off-by: Yan Song <[email protected]>
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.
Otherwise lgtm!
} | ||
defer blobFifo.Close() |
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.
blobFifo is closed upon convert error.
In the previous convert implementation, the builder (nydus-image) would
dump the blob and bootstrap, and then the converter would pack the two
files into a tar format, which has a performance loss, this patch solves this
problem by introducing fifo file.
The converter creates a fifo file, the builder will write the blob and
bootstrap data to the fifo as the writer side, then the converter read
from the fifo and write directly to content store for faster conversion.
Related PR: dragonflyoss/nydus#415
Signed-off-by: Yan Song [email protected]