From patchwork Sat Sep 8 19:47:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 1427011 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 039BBDF2AB for ; Sat, 8 Sep 2012 19:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752228Ab2IHTsG (ORCPT ); Sat, 8 Sep 2012 15:48:06 -0400 Received: from mga02.intel.com ([134.134.136.20]:13728 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751397Ab2IHTsF (ORCPT ); Sat, 8 Sep 2012 15:48:05 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 08 Sep 2012 12:48:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,392,1344236400"; d="scan'208";a="199715023" Received: from tassilo.jf.intel.com ([10.7.201.151]) by orsmga002.jf.intel.com with ESMTP; 08 Sep 2012 12:48:03 -0700 Received: by tassilo.jf.intel.com (Postfix, from userid 501) id C083524194D; Sat, 8 Sep 2012 12:48:03 -0700 (PDT) From: Andi Kleen To: mmarek@suse.cz Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH] Kbuild: use normal compression settings for tar*-pkg Date: Sat, 8 Sep 2012 12:47:59 -0700 Message-Id: <1347133679-14641-1-git-send-email-andi@firstfloor.org> X-Mailer: git-send-email 1.7.7.6 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Andi Kleen 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 Reviewed-by: Fengguang Wu --- scripts/package/buildtar | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/package/buildtar b/scripts/package/buildtar index 8a7b155..632377f 100644 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar @@ -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" ;; *)