From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Worley Subject: Re: Discard support (was Re: [PATCH] swap: send callback when swap slot is freed) Date: Fri, 14 Aug 2009 18:19:39 -0600 Message-ID: References: <200908122007.43522.ngupta@vflare.org> <20090813151312.GA13559@linux.intel.com> <20090813162621.GB1915@phenom2.trippelsdorf.de> <87f94c370908131115r680a7523w3cdbc78b9e82373c@mail.gmail.com> <3e8340490908131354q167840fcv124ec56c92bbb830@mail.gmail.com> <4A85E0DC.9040101@rtr.ca> <20090814234539.GE27148@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090814234539.GE27148@parisc-linux.org> Sender: owner-linux-mm@kvack.org To: Matthew Wilcox Cc: Mark Lord , Bryan Donlan , david@lang.hm, Greg Freemyer , Markus Trippelsdorf , Matthew Wilcox , Hugh Dickins , Nitin Gupta , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, Linux RAID List-Id: linux-raid.ids On Fri, Aug 14, 2009 at 5:45 PM, Matthew Wilcox wrote: > On Fri, Aug 14, 2009 at 05:21:32PM -0600, Chris Worley wrote: >> Sooner is better than waiting to coalesce. =A0The longer an LBA is >> inactive, the better for any management scheme. =A0If you wait until >> it's reused, you might as well forgo the advantages of TRIM/UNMAP. =A0If >> a the controller wants to coalesce, let it coalesce. > > I'm sorry, you're wrong. =A0There is a tradeoff point, and it's different > for each drive model. =A0Sending down a steady stream of tiny TRIMs is > going to give terrible performance. Sounds like you might be using junk for a device? For junk, a little coalescing may be warranted... like in the I/O schedular, but no more than 100usecs wait before posting, or then you effect high performing devices too. Chris > > -- > Matthew Wilcox =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Intel O= pen Source Technology Centre > "Bill, look, we understand that you're interested in selling us this > operating system, but compare it to ours. =A0We can't possibly take such > a retrograde step." > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756495AbZHOATl (ORCPT ); Fri, 14 Aug 2009 20:19:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752636AbZHOATk (ORCPT ); Fri, 14 Aug 2009 20:19:40 -0400 Received: from an-out-0708.google.com ([209.85.132.251]:55628 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbZHOATi convert rfc822-to-8bit (ORCPT ); Fri, 14 Aug 2009 20:19:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PkP10NsoG9SkId/NjnPRUF6VtVzKb1lrZo/sVZ2lVyVN3hvzHRUP79/2L3oEr/33OO gzPmqKM6PkECwZ0qQ3GPf0osj9Xf90t/oDnMe5GjLkTJ+7zoBBi5qeV6jNJg8C0WXc4s DVZ0y79gj0noXAXZYQsdvbGPqzPG56xOLDHR8= MIME-Version: 1.0 In-Reply-To: <20090814234539.GE27148@parisc-linux.org> References: <200908122007.43522.ngupta@vflare.org> <20090813151312.GA13559@linux.intel.com> <20090813162621.GB1915@phenom2.trippelsdorf.de> <87f94c370908131115r680a7523w3cdbc78b9e82373c@mail.gmail.com> <3e8340490908131354q167840fcv124ec56c92bbb830@mail.gmail.com> <4A85E0DC.9040101@rtr.ca> <20090814234539.GE27148@parisc-linux.org> Date: Fri, 14 Aug 2009 18:19:39 -0600 Message-ID: Subject: Re: Discard support (was Re: [PATCH] swap: send callback when swap slot is freed) From: Chris Worley To: Matthew Wilcox Cc: Mark Lord , Bryan Donlan , david@lang.hm, Greg Freemyer , Markus Trippelsdorf , Matthew Wilcox , Hugh Dickins , Nitin Gupta , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, Linux RAID Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 14, 2009 at 5:45 PM, Matthew Wilcox wrote: > On Fri, Aug 14, 2009 at 05:21:32PM -0600, Chris Worley wrote: >> Sooner is better than waiting to coalesce.  The longer an LBA is >> inactive, the better for any management scheme.  If you wait until >> it's reused, you might as well forgo the advantages of TRIM/UNMAP.  If >> a the controller wants to coalesce, let it coalesce. > > I'm sorry, you're wrong.  There is a tradeoff point, and it's different > for each drive model.  Sending down a steady stream of tiny TRIMs is > going to give terrible performance. Sounds like you might be using junk for a device? For junk, a little coalescing may be warranted... like in the I/O schedular, but no more than 100usecs wait before posting, or then you effect high performing devices too. Chris > > -- > Matthew Wilcox                          Intel Open Source Technology Centre > "Bill, look, we understand that you're interested in selling us this > operating system, but compare it to ours.  We can't possibly take such > a retrograde step." >