Received: from eggs.gnu.org ([2001:4830:134:3::10]:43980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b00iA-00047L-90 for qemu-devel@nongnu.org; Tue, 10 May 2016 02:00:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b00i5-0002pY-T9 for qemu-devel@nongnu.org; Tue, 10 May 2016 02:00:01 -0400 Received: from smtp2.provo.novell.com ([137.65.250.81]:49540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b00i5-0002ox-HT for qemu-devel@nongnu.org; Tue, 10 May 2016 01:59:57 -0400 Date: Tue, 10 May 2016 07:59:41 +0200 From: Petr Tesarik Message-ID: <20160510075941.4bbd2834@hananiah.suse.cz> In-Reply-To: <5730B23C.1020009@redhat.com> References: <1462663968-26607-1-git-send-email-nli@suse.com> <1462663968-26607-2-git-send-email-nli@suse.com> <5730B23C.1020009@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/3vMRfBZI5bIzD=dbKwJ.SxO"; 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: Eric Blake Cc: Nan Li , "Daniel P. Berrange" , qemu-devel@nongnu.org --Sig_/3vMRfBZI5bIzD=dbKwJ.SxO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 9 May 2016 09:52:28 -0600 Eric Blake wrote: > On 05/07/2016 05:32 PM, Nan Li wrote: > > When running the command "dump-guest-memory", we usually need a large s= pace > > of storage to save the dumpfile into disk. It costs not only much time = to > > save a file in some of hard disks, but also costs limited storage in ho= st. > > In order to reduce the saving time and make it convenient for users 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, adding a comp= iling > > of package "fuse-devel". It doesn't change the way of dumping guest mem= ory. >=20 > Why introduce FUSE? Can we reuse NBD instead? Let me answer this one, because it's me who came up with the idea, although I wasn't involved in the actual implementation. 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 standalone application which talks to QEMU using the gdb remote protocol and exposes the data in a structured form through a FUSE filesystem. 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... Regarding NBD ... correct me if I'm wrong, but I've always thought NBD can be used to export _disks_ from the QEMU instance, not guest RAM content. Regards, Petr T --Sig_/3vMRfBZI5bIzD=dbKwJ.SxO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXMXjSAAoJEKpQO8muD0engDMH/14mB34vJBh8bwHcocaqht4p q2rZY6fsmh8jeI7zbfss//Fxe5cYULL5PYvoCWA0gzm/A+e0Zr6rZ/CCl/c6ZC1x +UgJtBM43q3PHMCnN5kZzIyjC8dQERA669Q7pFwEVSSfAPfDVZ6WiuoAcRLWjbPa qKb/ZW2h84sj8xLqIyH/dvE7tph6NbaBzTE2HQIL45e4u/lUFbTjgbRoOJQCJwWw wTdeSEJ2eQ/xNO5bHVqn2I4siNDO33ipAD85ltgFo5QXkeEFBvSbsfiKKnXKMhZp eClt9Q3sE3V1nX73KfcemB3H8F+SejMcAStPY4iwRkM9W7L0GAFrSWkEzxJGqh4= =gkLb -----END PGP SIGNATURE----- --Sig_/3vMRfBZI5bIzD=dbKwJ.SxO--