From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39165 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou4Wi-0006Ae-Vy for qemu-devel@nongnu.org; Fri, 10 Sep 2010 10:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou4Wh-0006Rr-TX for qemu-devel@nongnu.org; Fri, 10 Sep 2010 10:24:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23180) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou4Wh-0006RY-N6 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 10:24:27 -0400 Message-ID: <4C8A3F8F.8020805@redhat.com> Date: Fri, 10 Sep 2010 17:24:15 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format References: <4C86BC6B.5010809@codemonkey.ws> <4C874812.9090807@redhat.com> <4C87860A.3060904@codemonkey.ws> <4C888287.8020209@redhat.com> <4C88D7CC.5000806@codemonkey.ws> <4C8A1311.8070903@redhat.com> <4C8A15C4.40201@redhat.com> <20100910134701.GA28831@lst.de> <4C8A3B1C.4040807@redhat.com> <20100910141242.GA30542@lst.de> In-Reply-To: <20100910141242.GA30542@lst.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Kevin Wolf , Stefan Hajnoczi , Stefan Hajnoczi , qemu-devel@nongnu.org On 09/10/2010 05:12 PM, Christoph Hellwig wrote: > On Fri, Sep 10, 2010 at 05:05:16PM +0300, Avi Kivity wrote: >>> Note that ATA allows simply ignoring TRIM requests that we can't handle, >>> and if we don't set the bit that guarantees TRIMed regions to be zeroed >>> we don't even have to zero out the regions. >> It would be nice to support it. TRIM is important to recover space, >> otherwise images grow and grow and there's no point in using a sparse >> format in the first place. > Sure. But supporting to tiny TRIM requests doesn't make sense. That > is the same behaviour we see from real life SSDs, btw. If the request > is smaller than their erase block size or whatever internal structure > they use to track allocations it will not actually free space. On some > of the lesser quality consumer SSDs the sectors won't even be zeroed > even if they claim so in the ATA IDENTIFY response. Okay. Let's concentrate on those UNMAP requests that seem better designed. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.