Commit 0ef2ca6c authored by Kazuhito Hagio's avatar Kazuhito Hagio
Browse files

[PATCH] Show write byte size in report messages



Show write byte size in report messages.  This value can be different
from the size of the actual file because of some holes on dumpfile
data structure.

  $ makedumpfile --show-stats -l -d 1 vmcore dump.ld1
  ...
  Total pages     : 0x0000000000080000
  Write bytes     : 377686445
  ...
  # ls -l dump.ld1
  -rw------- 1 root root 377691573 Feb  4 16:28 dump.ld1

Note that this value should not be used with /proc/kcore to determine
how much disk space is needed for crash dump, because the real memory
usage when a crash occurs can vary widely.

Signed-off-by: default avatarKazuhito Hagio <k-hagio-ab@nec.com>
parent a0216b67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment