Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759772Ab3CHPwb (ORCPT ); Fri, 8 Mar 2013 10:52:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20735 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759320Ab3CHPwa (ORCPT ); Fri, 8 Mar 2013 10:52:30 -0500 Date: Fri, 8 Mar 2013 10:52:16 -0500 From: Vivek Goyal To: "Eric W. Biederman" Cc: Jingbai Ma , mingo@redhat.com, kumagai-atsushi@mxc.nes.nec.co.jp, hpa@zytor.com, yinghai@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/5] crash dump bitmap: scan memory pages in kernel to speedup kernel dump process Message-ID: <20130308155216.GB8219@redhat.com> References: <20130307145808.29098.41592.stgit@k.asiapacific.hpqcorp.net> <20130307152108.GC2790@redhat.com> <87k3piri3e.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k3piri3e.fsf@xmission.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 44 On Thu, Mar 07, 2013 at 01:54:45PM -0800, Eric W. Biederman wrote: > Vivek Goyal writes: > > > On Thu, Mar 07, 2013 at 10:58:18PM +0800, Jingbai Ma wrote: > >> This patch intend to speedup the memory pages scanning process in > >> selective dump mode. > >> > >> Test result (On HP ProLiant DL980 G7 with 1TB RAM, makedumpfile > >> v1.5.3): > >> > >> Total scan Time > >> Original kernel > >> + makedumpfile v1.5.3 cyclic mode 1958.05 seconds > >> Original kernel > >> + makedumpfile v1.5.3 non-cyclic mode 1151.50 seconds > >> Patched kernel > >> + patched makedumpfile v1.5.3 17.50 seconds > >> > >> Traditionally, to reduce the size of dump file, dumper scans all memory > >> pages to exclude the unnecessary memory pages after capture kernel > >> booted, and scan it in userspace code (makedumpfile). > > > > I think this is not a good idea. It has several issues. > > Actually it does not appear to be doing any work in the first kernel. Looks like patch3 in series is doing that. machine_crash_shutdown(&fixed_regs); + generate_crash_dump_bitmap(); machine_kexec(kexec_crash_image); So this bitmap seems to be being set just before transitioning into second kernel. I am sure you would not like this extra code in this path. :-) Thanks Vivek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/