Received: from eggs.gnu.org ([2001:4830:134:3::10]:58893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0ntL-0000MN-4b for qemu-devel@nongnu.org; Thu, 12 May 2016 06:30:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0ntG-0003QD-NC for qemu-devel@nongnu.org; Thu, 12 May 2016 06:30:49 -0400 Received: from smtp2.provo.novell.com ([137.65.250.81]:47264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0ntG-0003Q4-9A for qemu-devel@nongnu.org; Thu, 12 May 2016 06:30:46 -0400 Date: Thu, 12 May 2016 12:30:27 +0200 From: Petr Tesarik Message-ID: <20160512123027.23890bcf@hananiah.suse.cz> In-Reply-To: <20160512100902.GC18199@stefanha-x1.localdomain> References: <1462663968-26607-1-git-send-email-nli@suse.com> <1462663968-26607-2-git-send-email-nli@suse.com> <5730B23C.1020009@redhat.com> <20160510075941.4bbd2834@hananiah.suse.cz> <20160510095642.GF11408@stefanha-x1.localdomain> <20160510135510.643ed3d7@hananiah.suse.cz> <20160512100902.GC18199@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/uYKjn+twuuIIxwN+CXw.5vy"; protocol="application/pgp-signature" Subject: Re: [Qemu-devel] [PATCH 1/2] Dump: introduce a Filesystem in Userspace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Eric Blake , Nan Li , qemu-devel@nongnu.org --Sig_/uYKjn+twuuIIxwN+CXw.5vy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 12 May 2016 11:09:02 +0100 Stefan Hajnoczi wrote: > On Tue, May 10, 2016 at 01:55:10PM +0200, Petr Tesarik wrote: > > On Tue, 10 May 2016 10:56:42 +0100 > > Stefan Hajnoczi wrote: > >=20 > > > On Tue, May 10, 2016 at 07:59:41AM +0200, Petr Tesarik wrote: > > > > On Mon, 9 May 2016 09:52:28 -0600 > > > > Eric Blake wrote: > > > >=20 > > > > > On 05/07/2016 05:32 PM, Nan Li wrote: > > > > > > When running the command "dump-guest-memory", we usually need a= large space > > > > > > of storage to save the dumpfile into disk. It costs not only mu= ch time to > > > > > > save a file in some of hard disks, but also costs limited stora= ge in host. > > > > > > In order to reduce the saving time and make it convenient for u= sers to dump > > > > > > the guest memory, we introduce a Filesystem in Userspace (FUSE)= to save the > > > > > > dump file in RAM. It is selectable in the configure file, addin= g a compiling > > > > > > of package "fuse-devel". It doesn't change the way of dumping g= uest memory. > > > > >=20 > > > > > Why introduce FUSE? Can we reuse NBD instead? > > > >=20 > > > > Let me answer this one, because it's me who came up with the idea, > > > > although I wasn't involved in the actual implementation. > > > >=20 > > > > The idea is to get something more like Linux's /proc/kcore, but for= a > > > > QEMU guest. So, yes, the same idea could be implemented as a standa= lone > > > > application which talks to QEMU using the gdb remote protocol and > > > > exposes the data in a structured form through a FUSE filesystem. > > > >=20 > > > > However, the performance of such a solution cannot get even close to > > > > that of exposing the data directly from QEMU. Maybe it's still the = best > > > > way to start the project... > > >=20 > > > If you want no overhead and are willing to pause the guest, use QEMU's > > > gdb stub (directly, no extra FUSE file system layer). > >=20 > > Well, the obvious downside of this solution is that you need GDB > > protocol support. AFAIK there are more tools which can work with ELF > > dump files than with the GDB protocol. Sure, I could add GDB protocol > > support to each and every one of them, but I fail to see how that is > > better use of time than adding an additional layer which allows to use > > any ELF-capable tool directly. >=20 > Out of interest, which tools are you thinking about? >=20 > I use gdb and crash. Would be interesting to learn about additional > options that you are familiar with. The one that started my thinking was "makedumpfile". I'm also exploring ways of writing a standalone eppic application on top of libkdumpfile, and, of course, you can use libkdumpfile python bindings today already to write an analysis tool in python which will work equally well on dumps and live VMs. Petr T --Sig_/uYKjn+twuuIIxwN+CXw.5vy Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXNFtGAAoJEKpQO8muD0enBGsIAJkm9J4AQtPPnO/B43bEDi/U kRP8QLBXI0TnvX1et0+BZX5ATsA2mBGmL8n106c5Lwkw9rl8M+R3tSxeFx3IuDbH FEVKms62E3hLX0pSlHmjGpcpvkvNM04mUrogJzU+lbwtVC2nmnwL9y0XqT9xECEy PXi+msIogW/BLO8noyA6q+Bf+k0FSkvyx+lHxLgiFccOkmFu9amwl0qA1N8jAh2R dwE/nMSHsiP5CyuydbygoXeYsCdiT3sI+xx/cpp8mNFi6LLBsRDQMdBOPxgSn9Ef XbzRyJphvU1aRz/kz4lXKqlkJRJQbUlH+LYWWZHOhPdOkIYhSD6oElmhqwqV6ow= =hrH+ -----END PGP SIGNATURE----- --Sig_/uYKjn+twuuIIxwN+CXw.5vy--