From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN3o0-0001OR-Qf for qemu-devel@nongnu.org; Mon, 10 Mar 2014 13:16:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN3nu-0007RG-ST for qemu-devel@nongnu.org; Mon, 10 Mar 2014 13:16:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN3nu-0007R4-KN for qemu-devel@nongnu.org; Mon, 10 Mar 2014 13:15:54 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2AHFqRi028570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Mar 2014 13:15:53 -0400 Date: Mon, 10 Mar 2014 17:15:50 +0000 From: "Richard W.M. Jones" Message-ID: <20140310171550.GQ1346@redhat.com> References: <20140310161119.GA6744@redhat.com> <20140310161421.GB6744@redhat.com> <531DEEDD.20007@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <531DEEDD.20007@redhat.com> Subject: Re: [Qemu-devel] Trying to get fstrim / discard=unmap to work List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Mon, Mar 10, 2014 at 05:57:01PM +0100, Paolo Bonzini wrote: > Il 10/03/2014 17:14, Richard W.M. Jones ha scritto: > >On Mon, Mar 10, 2014 at 04:11:20PM +0000, Richard W.M. Jones wrote: > >>Guest: > >> - guest kernel: 3.13.4-200.fc20.x86_64 > >> - ext4 guest filesystem > >> - fstrim from util-linux 2.24.1 > >> - cat /sys/block/sda/device/scsi_disk/*/provisioning_mode > >> unmap > > > >I noticed that I wasn't mounting the guest filesystem with '-o discard'. > >However it still doesn't work even after adding this option. > > Works here: Indeed. And now it works here too. Very strange, and sorry for the noise. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top