From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: collect some information when qemu-kvm exit Date: Thu, 23 Jun 2011 16:51:47 +0200 Message-ID: <4E035303.9070709@web.de> References: <4E0311BB.2000206@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD08DBB79075C0D16367DD6C6" Cc: kvm@vger.kernel.org To: lidong chen Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:40546 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752319Ab1FWOvw (ORCPT ); Thu, 23 Jun 2011 10:51:52 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD08DBB79075C0D16367DD6C6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-06-23 15:56, lidong chen wrote: >>> is it safe to register another signal handler? >>> if somebody know the reason, please tell me. >>> >>> and is it worth to do this? >> > because the core dump file is too big, and the time of core dump is too= long. > I do a test, for a guest which have 9.7G memory, the coredump file is > 9.7G, and the time of core dump is 1 minute. >=20 > for the compute node in my system, there are a lot of cpu and memory > resource, but no disk. >=20 >=20 > total 4.5G > -rw------- 1 root root 9.7G Jun 23 21:31 core-qemu-kvm-24090-1308835893= > -rw------- 1 root root 3.9G Jun 23 21:34 core-qemu-kvm-24098-1308835996= ulimit -c allows you to restrict the core file size so that it fits on your ram disk. That will at least collect enough information to do a proper post-mortem backtrace in gdb, including register states. It also allows to inspect variables on the stacks and the heap. No need to add a singe line or code to qemu for this. Jan --------------enigD08DBB79075C0D16367DD6C6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk4DUwYACgkQitSsb3rl5xQUIQCgvi/UM5+M1xgYp/UO5V9UFDGo 3V0An1D+IClx5erpXhcsod1rs6ZD8gw9 =1MDY -----END PGP SIGNATURE----- --------------enigD08DBB79075C0D16367DD6C6--