From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W11YM-0005ga-ST for qemu-devel@nongnu.org; Wed, 08 Jan 2014 17:24:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W11YH-00048V-QM for qemu-devel@nongnu.org; Wed, 08 Jan 2014 17:24:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W11YH-00048Q-IO for qemu-devel@nongnu.org; Wed, 08 Jan 2014 17:24:41 -0500 Date: Wed, 8 Jan 2014 22:24:35 +0000 From: "Richard W.M. Jones" Message-ID: <20140108222435.GO4802@redhat.com> References: <20140102161503.GA14565@redhat.com> <52CC13D6.6000607@redhat.com> <20140107202708.GB1273@redhat.com> <52CC6811.4000107@redhat.com> <20140107212210.GB4802@redhat.com> <52CDCD17.8070508@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52CDCD17.8070508@redhat.com> Subject: Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Teng-Feng Yang , qemu-devel@nongnu.org On Wed, Jan 08, 2014 at 11:11:35PM +0100, Paolo Bonzini wrote: > Is guestfish using "discard=on"? No. Adding the discard=on parameter does indeed fix this: 13M /tmp/test1 17M /tmp/test2 However why isn't this the default? Is there a case where discard=on would be undesirable? It's extremely difficult to know when it's safe to add this parameter. Qemu gives no indication of when using discard=.. is safe (ie. won't cause qemu to fail to start up or fail in some other way). It's even worse when we have to go via libvirt which itself doesn't expose qemu's capabilities upwards. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW