To: trajce nedev <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: kernel-only memory to kdump From: Ken'ichi Ohmichi <[EMAIL PROTECTED]> Date: Wed, 10 Jan 2007 13:10:48 +0900
Hi Trajce, 2007/01/10 09:07:32 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: >On Tue, Jan 09, 2007 at 05:29:28PM -0800, trajce nedev wrote: >> Is it possible to only copy the kernel memory in a kdump image file? The >> image is simply too large for my storage and I'd like a smaller solution. >> >> I'd prefer a user-space solution as well. >> > >Hi Trajce, > >CCing the mail to fastboot mailing list. All the kexec/kdump relevant >discussions take place on this mailing list. > >Yes we already have a user space dump filtering solution, makedumpfile. NEC >developers have written the utility. > >http://sourceforge.net/projects/makedumpfile > >You can use this utility to dump to filter out the dump and reduce the >dump size. Yes, you can reduce the dump size by makedumpfile. >I am CCing the mail to the NEC developer who is actively maintaining >makedumpfile. He can provide you more details. For using makedumpfile, a kernel file with debug information (vmlinux compiled with -g option) is necessary. The detail of this utility is following. Explanation of makedumpfile: To shorten the size of the dumpfile and the time of creating the dumpfile, makedumpfile copies only the necessary pages for analysis to the dumpfile from /proc/vmcore. You can specify the kind of unnecessary pages with dump_level. If you want to shorten the size further, enable the compression of the page data. Method of installation: You can compile the makedumpfile command as follows; 1. "tar -zxvf makedumpfile-1.0.8.tar.gz" 2. "cd makedumpfile" 3. "make; make install" Usage: makedumpfile [-c] [-E] [-d dump_level] [-x vmlinux] dump_mem dump_file Example: If you want to exclude pages filled by zero, cache pages, user pages and free pages and to enable compression, please execute the following command. # makedumpfile -c -d 31 -x vmlinux /proc/vmcore dumpfile Do you have any question? Your opinions/comments are welcome. Thanks Ken'ichi Ohmichi ------- ここまでが転送メッセージ _______________________________________________ fastboot mailing list [email protected] https://lists.osdl.org/mailman/listinfo/fastboot
