From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757676AbZEDPYT (ORCPT ); Mon, 4 May 2009 11:24:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754657AbZEDPYA (ORCPT ); Mon, 4 May 2009 11:24:00 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:46766 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754011AbZEDPX6 (ORCPT ); Mon, 4 May 2009 11:23:58 -0400 Subject: Re: New TRIM/UNMAP tree published (2009-05-02) From: James Bottomley To: dgilbert@interlog.com Cc: Jeff Garzik , Matthew Wilcox , Jens Axboe , Boaz Harrosh , Hugh Dickins , Matthew Wilcox , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartlomiej Zolnierkiewicz , Mark Lord In-Reply-To: <49FF05AB.5020801@interlog.com> References: <1238683047-13588-1-git-send-email-willy@linux.intel.com> <49D8A3D7.5070507@panasas.com> <20090503061150.GF10704@linux.intel.com> <20090503071619.GP8822@parisc-linux.org> <20090503144847.GR8822@parisc-linux.org> <49FDB21B.3080301@panasas.com> <20090503154216.GU8822@parisc-linux.org> <49FDC786.6070309@panasas.com> <49FDE3BB.505@garzik.org> <49FDE50A.4060503@garzik.org> <1241377472.5596.88.camel@mulgrave.int.hansenpartnership.com> <49FDEE64.5090302@garzik.org> <1241379476.5596.92.camel@mulgrave.int.hansenpartnership.com> <49FEF5C5.6010404@interlog.com> <1241448038.3315.19.camel@mulgrave.int.hansenpartnership.com> <49FF05AB.5020801@interlog.com> Content-Type: text/plain Date: Mon, 04 May 2009 15:23:56 +0000 Message-Id: <1241450637.3315.32.camel@mulgrave.int.hansenpartnership.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2009-05-04 at 17:11 +0200, Douglas Gilbert wrote: > Another aspect, especially if a large amount of storage > is to be trimmed, is how long will it take? This relates > to the timeout value we should associate with such an > invocation. The FORMAT UNIT and START STOP UNIT commands > have an IMMED bit, but not WRITE SAME. I was assuming it would be more or less instantaneous ... if it's not then the plan of trying to keep thin provisioning happy just by sending down a maximal trim from the filesystem is going to run into trouble. > Speaking of FORMAT UNIT, some words were added into sbc3r18 > that suggest a FORMAT UNIT command could be interpreted as > unmap/trim the whole disk. Seems reasonable ... if you format the device it could be argued you're not relying on the data contents any more ... James