Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [REQUEST] makedumpfile: stream compress flat ELF format with libz
@ 2020-05-12 17:25 Daniel Walker (danielwa)
  2020-05-12 17:38 ` John Donnelly
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Daniel Walker (danielwa) @ 2020-05-12 17:25 UTC (permalink / raw)
  To: kexec@lists.infradead.org; +Cc: xe-linux-external(mailer list)


Hi,

I created an enhancement request for makedumpfile here,

https://github.com/makedumpfile/makedumpfile/issues/1

I found that compressing a flat core with gzip significantly reduces the size of
the core. Here were my findings,

32G flat elf core -E -F -d 0
33G kdump core -d 0
16G kdump compressed -c -d 0
1.9G flat elf core stream compressed with gzip -E -F -d 0

My feature request was to implement an option inside makedumpfile to gzip
compress the core output. This can already be accomplished by piping the core
thru the gzip tool, however, because makedumpfile already links against libz
having the option for makedumpfile to do it allows the gzip tools to be removed
from the crash kernels initramfs there by reducing the size.

Kazuhito Hagio had suggest adding the -C option instead of repurposing -c to do
this.

So a resulting command line might looks like this,

makedumpfile -C -F -E -d 31 /proc/vmcore core.gz

Thanks,
Daniel
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-12 19:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-12 17:25 [REQUEST] makedumpfile: stream compress flat ELF format with libz Daniel Walker (danielwa)
2020-05-12 17:38 ` John Donnelly
2020-05-12 17:45   ` Daniel Walker (danielwa)
2020-05-12 18:14 ` Guilherme Piccoli
2020-05-12 18:27   ` Daniel Walker (danielwa)
2020-05-12 18:32     ` Guilherme Piccoli
2020-05-12 18:56       ` Daniel Walker (danielwa)
2020-05-12 19:20 ` HAGIO KAZUHITO(萩尾 一仁)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox