Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754529AbcKJAAh (ORCPT ); Wed, 9 Nov 2016 19:00:37 -0500 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:59051 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797AbcKJAAc (ORCPT ); Wed, 9 Nov 2016 19:00:32 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2B6HwB9tyNYILuKLHldGwEBAQMBAQEJAQEBgy8BAQEBAR+BV4J7g3mcLwEBAQaBHIwYhi+EF4YeBAICghNUAQIBAQEBAQIGAQEBAQEBOAFFhGIBAQQ6HCMQCAMYCSUPBSUDBxoTiFuzLYtAAQEBBwIlHoVWhSSEJYYDBZoxjE2Dd4F5F4gZhXyNOIQHgTgPCoM2HIFxKjSFLII7AQEB Date: Thu, 10 Nov 2016 11:00:27 +1100 From: Dave Chinner To: Jens Axboe Cc: Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, hch@lst.de Subject: Re: [PATCH 7/8] blk-wbt: add general throttling mechanism Message-ID: <20161110000027.GV28177@dastard> References: <1478034531-28559-1-git-send-email-axboe@fb.com> <1478034531-28559-8-git-send-email-axboe@fb.com> <20161108133930.GQ32353@quack2.suse.cz> <20161108154109.GA2834@kernel.dk> <20161109084034.GY32353@quack2.suse.cz> <85a891d5-0eec-a051-702f-9aac13e13b03@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85a891d5-0eec-a051-702f-9aac13e13b03@kernel.dk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 24 On Wed, Nov 09, 2016 at 09:07:08AM -0700, Jens Axboe wrote: > On 11/09/2016 01:40 AM, Jan Kara wrote: > >Also I'm not sure why such logic for devices with writeback cache is > >needed. Sure the disk is fast to accept writes but if that causes long > >read latencies, we should scale down the writeback limits so that we > >eventually end up submitting only one write request anyway - > >effectively the same thing as limit=0 - won't we? > > Basically we want to avoid getting into that situation. The problem with > write caching is that it takes a while for you to notice that anything > is wrong, and when you do, you are way down in the hole. That causes the > first violations to be pretty bad. Yeah, slow RAID devices with a large BBWC in front of them are notorious for doing this. You won't notice the actual IO performance until the write cache is filled (can be GB in size) and by then it's way too late to fix up with OS level queuing... Cheers, Dave. -- Dave Chinner david@fromorbit.com