makedumpfile-1.3.6: Use TMPDIR environment variable to avoid output files filling ramdisk

Masayuki Igawa igawa at mxs.nes.nec.co.jp
Thu Jun 24 18:53:15 EDT 2010


Hi,

makedumpfile version 1.3.6 is released.
Your comments/patches are welcome.

Changelog:
o New feature
  - Use TMPDIR environment variable to avoid output files filling ramdisk (by Cliff Wickman) 4d5bca2
    makedumpfile writes bitmap files to "/tmp/...". But these can be very large
    if the machine has lots of memory, and so writing the file can fail.
    (e.g. when you use tmpfs on /tmp)
    This feature is to avoid this failure. If a TMPDIR environment variable is set, 
    makedumpfile uses it for the bitmap file. If you do not set a TMPDIR environment
    variable, makedumpfile uses /tmp directory for the temporary bitmap file as a default.
  - [PATCH] Add linux-2.6.32 - 2.6.34 support. (by Masayuki Igawa) 69bbfaf

o Bugfix
  - [PATCH] Fix buffer overflow when writing dh->signature. (by Bernhard Walle) 4a16bd3
  - [PATCH] handle !SPARSEMEM_EX properly. (by Masayuki Igawa) 27b7156

o Code Cleanup
  - [PATCH] Fix 'struct kdump_sub_header' member in IMPLEMENTATION (by Masayuki Igawa) 7e50de2
  - [PATCH] fix typo in IMPLEMENTATION (by Masayuki Igawa) fad7bf0
  - [PATCH] add mainteners (by Masayuki Igawa) cc9afed
  - [PATCH] add TMPDIR description (by Masayuki Igawa) 45a60da
  - [PATCH] add .gitignore file (by Masayuki Igawa) 538528e
  - makedumpfile: works on 2.6.32 (by Cliff Wickman) 060be6f
  - [PATCH] Cleanup: the initialization method is operated if it is possible. (by Ken'ichi Ohmichi) ef86f0f

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.

Download:
  You can download the latest makedumpfile from the following URL.
  Details of the change are written on the git page of the following site.
  https://sourceforge.net/projects/makedumpfile/

Method of installation:
  You can compile the makedumpfile command as follows;
  1. "tar -zxvf makedumpfile-x.y.z.tar.gz"
  2. "cd makedumpfile-x.y.z"
  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

Thanks
Masayuki Igawa




More information about the kexec mailing list