From 5fbc3a14dda183cbbd908630cc1a9c2871515e0e Mon Sep 17 00:00:00 2001 From: Yan Song Date: Tue, 28 Feb 2023 03:57:49 +0000 Subject: [PATCH] nydusify: enable pigz by default We should use pigz for supporting parallel gzip decompression, so that improve the conversion speed when unpack gzip layer for source image. We still allow users to specify the env `CONTAINERD_DISABLE_PIGZ=1` to disable the feature when encounter any decompression error. See https://github.com/containerd/containerd/blob/33c0eafb17dff6de43f4a530fcf05b02ed24330b/archive/compression/compression.go#L261 Signed-off-by: Yan Song --- contrib/nydusify/cmd/nydusify.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/contrib/nydusify/cmd/nydusify.go b/contrib/nydusify/cmd/nydusify.go index b79d8fb72ac..ea3b6f845b5 100644 --- a/contrib/nydusify/cmd/nydusify.go +++ b/contrib/nydusify/cmd/nydusify.go @@ -863,11 +863,6 @@ func main() { }, } - // With linux/arm64 platform, containerd/compression prioritizes `unpigz` - // to decompress tar.gz file, which may generate corrupted data somehow. - // Keep the same behavior with x86_64 platform by disabling pigz. - os.Setenv("CONTAINERD_DISABLE_PIGZ", "1") - if !utils.IsSupportedArch(runtime.GOARCH) { logrus.Fatal("Nydusify can only work under architecture 'amd64' and 'arm64'") }