Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752761AbbGNQBu (ORCPT ); Tue, 14 Jul 2015 12:01:50 -0400 Received: from verein.lst.de ([213.95.11.211]:43249 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbbGNQBt (ORCPT ); Tue, 14 Jul 2015 12:01:49 -0400 Date: Tue, 14 Jul 2015 18:01:47 +0200 From: Christoph Hellwig To: Jens Axboe Cc: linux-kernel@vger.kernel.org, snitzer@redhat.com, hch@lst.de Subject: Re: [PATCH 0/2] Configurable max discard size Message-ID: <20150714160147.GA28031@lst.de> References: <1436886139-18673-1-git-send-email-axboe@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436886139-18673-1-git-send-email-axboe@fb.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1045 Lines: 20 On Tue, Jul 14, 2015 at 09:02:17AM -0600, Jens Axboe wrote: > Hi, > > Most drivers use UINT_MAX (or some variant thereof) for max discard > size, since they don't have a real limit for a non-data transferring > command. This is fine from a throughput point of view, but for a lot > of devices (all?), it truly sucks on latency. We've seen cases of > hundreds of msec in latencies for reads/writes when deleting files > on an fs with discard enabled. For the problematic devices that we > have tested, artificially limiting the size of the discards issued > brings it down to a more manageable 1-2ms max latencies. This looks reasonable to me. Any chance you could also come up with reasonable start values for the hardware you've done this for so that we can get a good out of the box experience? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/