From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from g4t0016.houston.hp.com ([15.201.24.19]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDxPw-00032A-Vh for kexec@lists.infradead.org; Fri, 08 Mar 2013 13:33:04 +0000 From: "Ma, Jingbai (Kingboard)" Subject: Re: [RFC PATCH 0/5] crash dump bitmap: scan memory pages in kernel to speedup kernel dump process Date: Fri, 8 Mar 2013 13:31:51 +0000 Message-ID: In-Reply-To: <5139BE7F.5020905@zytor.com> Content-Language: en-US Content-ID: 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" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "H. Peter Anvin" Cc: "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Mitchell, Lisa (MCLinux in Fort Collins)" , "mingo@redhat.com" , "kumagai-atsushi@mxc.nes.nec.co.jp" , "ebiederm@xmission.com" , "yinghai@kernel.org" , Vivek Goyal On 3/8/13 6:33 PM, "H. Peter Anvin" wrote: >On 03/08/2013 02:06 AM, Jingbai Ma wrote: >> >> Kernel do have some abilities that user space haven't. It's possible to >> map whole memory space of the first kernel into user space on the second >> kernel. But the user space code has to re-implement some parts of the >> kernel memory management system again. And worse, it's architecture >> dependent, more architectures supported, more codes have to be >> implemented. All implementation in user space must be sync to kernel >> implementation. It's may called "flexibility", but it's painful to >> maintain the codes. >> > >What? You are basically talking about /dev/mem... there is nothing >particularly magic about it at all. What we are talking about is filtering memory pages (AKA memory pages classification) The makedumpfile (or any other dumper in user space) has to know the exactly memory layout of the memory management data structures, it not only architecture dependent, but also may varies in different kernel release. At this point, /dev/mem doesn't give any help. So IMHO, I would like to do it in kernel, rather than So keep tracking changes in user space code. > > -hpa > >-- >H. Peter Anvin, Intel Open Source Technology Center >I work for Intel. I don't speak on their behalf. > _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec