Skip to content

Commit

Permalink
Kbuild: use normal compression settings for tar*-pkg
Browse files Browse the repository at this point in the history
For large kernel configurations (like a distribution kernel)
targz-pkg takes a quite long time to just do the compression.
I clocked it at 15+mins for a SUSE kernel like config on a fast
system.  And tarxz and bzip2 are even slower.

The main reason is that the script that is doing the taring sets
the highest compression level (-9).  When I change it to just
use the defaults the gzip time for the same kernel goes down
to ~3 mins. I haven't tested xz and bzip, but I expect those
to be much faster too.

I'm not willing to wait that long for a small compression
gain. So just change the script to use the defaults.

Signed-off-by: Andi Kleen <[email protected]>
Reviewed-by: Fengguang Wu <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Andi Kleen authored and michal42 committed Sep 27, 2012
1 parent ef591a5 commit b589c8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/package/buildtar
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ case "${1}" in
file_ext=""
;;
targz-pkg)
compress="gzip -c9"
compress="gzip"
file_ext=".gz"
;;
tarbz2-pkg)
compress="bzip2 -c9"
compress="bzip2"
file_ext=".bz2"
;;
tarxz-pkg)
compress="xz -c9"
compress="xz"
file_ext=".xz"
;;
*)
Expand Down

0 comments on commit b589c8a

Please sign in to comment.