Skip to contentSkip to conversation

qemu core dump and filtering guest pages

DISCUSSION Christian Borntraeger 2 participants 2 messages May 22, 2012 – May 23, 2012 KVM

lore
Share & tools
lore
#0 lore raw

Folks,

today we discussed the situation of a qemu crash (with coredump) and big guests. Quite often the guest pages are not needed but make the core file pretty big.

The most appealing proposal that we had was to adopt the core file code in the kernel to have an option for discarding guest pages (e.g. /proc/sys/core_guest). do_corefile would have a callback into the kvm module that could use its memory slot infrastructure to decide if this page should be saved or not.

Would you consider such a change be ok? Any better idea? Thanks

Christian

#1 lore raw
Quoted 11 lines · Christian Borntraeger

Folks,

today we discussed the situation of a qemu crash (with coredump) and big guests. Quite often the guest pages are not needed but make the core file pretty big.

The most appealing proposal that we had was to adopt the core file code in the kernel to have an option for discarding guest pages (e.g. /proc/sys/core_guest). do_corefile would have a callback into the kvm module that could use its memory slot infrastructure to decide if this page should be saved or not.

Would you consider such a change be ok? Any better idea?

There's MADV_DONTDUMP which can be used to control this on a per-guest basis.

Signature · 1 line
error compiling committee.c: too many arguments to function