From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S0NZL-0000tg-6t for kexec@lists.infradead.org; Thu, 23 Feb 2012 01:34:04 +0000 Received: from m1.gw.fujitsu.co.jp (unknown [10.0.50.71]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 72F813EE0BD for ; Thu, 23 Feb 2012 10:33:55 +0900 (JST) Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 5D46B45DE56 for ; Thu, 23 Feb 2012 10:33:55 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 4373A45DE55 for ; Thu, 23 Feb 2012 10:33:55 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 3555B1DB8042 for ; Thu, 23 Feb 2012 10:33:55 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.240.81.147]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id E228B1DB8043 for ; Thu, 23 Feb 2012 10:33:54 +0900 (JST) From: HATAYAMA Daisuke Subject: [PATCH makedumpfile v2 0/4] LZO Compression Support Date: Thu, 23 Feb 2012 10:33:54 +0900 Message-ID: <20120223012940.5041.61104.stgit@localhost6.localdomain6> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kumagai-atsushi@mxc.nes.nec.co.jp Cc: kexec@lists.infradead.org, crash-utility@redhat.com The following series implements LZO compression support to makedumpfile. LZO is as good as in size but by far better in speed than ZLIB, readucing down time during generation of crash dump and refiltering. The RFC discussion was made here: http://lists.infradead.org/pipermail/kexec/2011-November/005783.html http://lists.infradead.org/pipermail/kexec/2011-December/005868.html How to build: 1. Get lzo libraries: lzo, lzo-devel and lzo-minilzo from either of the following: 1) Original author's website: http://www.oberhumer.com/opensource/lzo/ 2) yum framework on fedora. Older releases don't have the packages. 2. Apply the patch set to makedumpfile v1.4.2. 3. Do make as follows: $ make USELZO=on Note: In default, no LZO compression support is included. How to use: Introduce new -l option. If a user specify this, makedumpfile generates dumpfile compressed by pages with lzo compression. Example) $ makedumpfile -l vmcore dumpfile Performance evaluation: - Kumagai-san's evaluation simulating working servers: http://lists.infradead.org/pipermail/kexec/2011-December/005868.html - My evaluation focusing on the worst cases: http://lists.infradead.org/pipermail/kexec/2011-November/005783.html LZO Support for crash: I'll post LZO support patch for crash after makedumpfile merges these patches. Changelog: v1 => v2: - Add build condition for LZO support. Enable LZO support if specifying USELZO=on to make command. - Avoid LONG_MAX/ULONG_MAX redefinitions. --- HATAYAMA Daisuke (4): Add build condition for LZO support Add help and manual messages about LZO compression support Avoid LONG_MAX/ULONG_MAX redefinitions Add LZO Support Makefile | 5 ++++ common.h | 4 +++ diskdump_mod.h | 3 ++- makedumpfile.8 | 6 +++-- makedumpfile.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++------ makedumpfile.h | 4 +++ print_info.c | 16 +++++++------ 7 files changed, 86 insertions(+), 19 deletions(-) -- HATAYAMA Daisuke _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec