Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp445773imm; Mon, 2 Jul 2018 14:43:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLJWtQEHlsXAV9jLt6BFasS2vRkuTOEhhtxqIP2aClDo3nRCXxynGemCr1/rp4zILkW2lah X-Received: by 2002:a63:ac57:: with SMTP id z23-v6mr22496090pgn.74.1530567795295; Mon, 02 Jul 2018 14:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530567795; cv=none; d=google.com; s=arc-20160816; b=TchuvjQtduGevkw9NdHLjxBEqFMSt9XlkGviIxmN2wAnbKikceNch24rI+wFtJ+Mhj /n8hsHaA8pIWdQZ/xWmg8k1y0Y6PkI3n4zzGaXRITGRa3Cez+jSYd5oc+5CtjgWvTGvn dI851IdVBZM4efQ4qKXVSi+Da7zi0+xFjcoJJS7LV7JVTN7oVLDiLqANzrR58wxcXG8b JqMaLh0UhsAN6vXl2EuV7eM0DJqR3STpmqSexinknw4Mw9ijn1gBggHXIEy4k6NEnOJD KGMza/m2PuUj1J0sYH9idz8Em7JJifv/hHd/K32dVf56HhRpqqF2HL7Kauvw572y8zbM iaaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=o5PsSybq5EOmarBWNP/KCff9O43eag0xxygRIOPzZ74=; b=H4Jbb98MbmtFIcJa/NLxRN9ScGbwduColTmMmeFxh8X8BQ4YBY1OGHMC0CJs2/5/Ya f4Hy5HOibvbHDt3kxMQL6jq9PoTJTDNxsJz6EBlSD69Vc31lIoZsAAspB2OzGk3soVDF hT9CwCMtbDvoHW2vXKzxL2DgGP6z0MUROQB1s7Dc+H1MJ784aLarCMSWobGOE+GU1549 rFTOg3AWWNm1LeobRL3v9Cok2VA+edgx2s7FdY+azj+rmi/ULZmoem7b52jya+XUaAjl r+rr/X3Ug5N8oiY6MeZ8TT1LaO1+erWapk9wD9SFxaemLNk5FPyoDQTWek3II6uj//X7 0zPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=SPD+KY8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11-v6si3949183pfe.102.2018.07.02.14.43.00; Mon, 02 Jul 2018 14:43:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=SPD+KY8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753759AbeGBVl5 (ORCPT + 99 others); Mon, 2 Jul 2018 17:41:57 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:35712 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753637AbeGBVlx (ORCPT ); Mon, 2 Jul 2018 17:41:53 -0400 Received: by mail-io0-f193.google.com with SMTP id q4-v6so15993826iob.2 for ; Mon, 02 Jul 2018 14:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=o5PsSybq5EOmarBWNP/KCff9O43eag0xxygRIOPzZ74=; b=SPD+KY8kdfVkoE2xgxHw+ExFIjibyL1sk9KNCLJYI5UZrxxT7g+skfY4SxDSZHt4kk pvbsf8ybRBVihywkX3csM7hmgJ7VlM9kJrSz0bZfzThd9EaSbZXXHLAECzJpr36qGavH 9ERKzl6jUezyG/dkzGNv0NKIUtdm8rul+MqVLPhXoS2xkq3dlaFfs4yRnQZoppZeQlO2 3KKgcHe7faBLECKY1tehiw6rrABqx0vwezSV6TYKplr7aETXKsnfZXsX0pWE7ldwPkey fLvBBycUlBS4DMPbgsZN8W2WjlAYgmF5v0owxi48Qekf4MWt8bORW/IQ2e8LbWWRUF9/ EtNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=o5PsSybq5EOmarBWNP/KCff9O43eag0xxygRIOPzZ74=; b=IWBzVv62yt0G7Ki4FsDyelI5IO8JLscbkBAKbUa1Ywv30fivp/s+WRCx+1iug/3phu yqoYnV2+D4GbQpzMqfnrrd1LWqNmas2jdYhYoBnH7KgpvoYB7gPsTXFlRjWR49g/3yBm tKxPAKwA6YE13wAP2Q6B8HEgVv8ISuMIuYWrJWLfhl63AYX5e8cKQGatimEmlhdU/ytQ e0rEhPWxNTijjIGl2CjP6u4QRdIFOb9lY/RB8KSKNz54ws7UGOVbM10OSb+U+SCVpRXz jr8/NeXkjnGC8KJLmRIbWBp997SPVNXfqv22wO/xAZCPgm3NLNqlqwjwYJQ0sZdkrrrH Xlcw== X-Gm-Message-State: APt69E1LqEimEwTGcFvUXFUVnSGi50vs4zq/Ca7EC60C7j4LguhTSkpC AGxIaW0lOz7MJ75oCz53o5IohhgiGGU= X-Received: by 2002:a6b:6806:: with SMTP id d6-v6mr21805087ioc.293.1530567712587; Mon, 02 Jul 2018 14:41:52 -0700 (PDT) Received: from [192.168.1.212] (107.191.0.158.static.utbb.net. [107.191.0.158]) by smtp.gmail.com with ESMTPSA id o138-v6sm880568ito.36.2018.07.02.14.41.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 14:41:51 -0700 (PDT) Subject: Re: [PATCH 00/14][V5] Introduce io.latency io controller for cgroups To: Andrew Morton , Josef Bacik Cc: kernel-team@fb.com, linux-block@vger.kernel.org, hannes@cmpxchg.org, tj@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20180629192542.26649-1-josef@toxicpanda.com> <20180702142639.752759da566fd9074cf8edfe@linux-foundation.org> From: Jens Axboe Message-ID: <08f3bef3-7189-a368-74d9-b4c5e0edc824@kernel.dk> Date: Mon, 2 Jul 2018 15:41:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180702142639.752759da566fd9074cf8edfe@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/18 3:26 PM, Andrew Morton wrote: > On Fri, 29 Jun 2018 15:25:28 -0400 Josef Bacik wrote: > >> This series adds a latency based io controller for cgroups. It is based on the >> same concept as the writeback throttling code, which is watching the overall >> total latency of IO's in a given window and then adjusting the queue depth of >> the group accordingly. This is meant to be a workload protection controller, so >> whoever has the lowest latency target gets the preferential treatment with no >> thought to fairness or proportionality. It is meant to be work conserving, so >> as long as nobody is missing their latency targets the disk is fair game. >> >> We have been testing this in production for several months now to get the >> behavior right and we are finally at the point that it is working well in all of >> our test cases. With this patch we protect our main workload (the web server) >> and isolate out the system services (chef/yum/etc). This works well in the >> normal case, smoothing out weird request per second (RPS) dips that we would see >> when one of the system services would run and compete for IO resources. This >> also works incredibly well in the runaway task case. >> >> The runaway task usecase is where we have some task that slowly eats up all of >> the memory on the system (think a memory leak). Previously this sort of >> workload would push the box into a swapping/oom death spiral that was only >> recovered by rebooting the box. With this patchset and proper configuration of >> the memory.low and io.latency controllers we're able to survive this test with a >> at most 20% dip in RPS. > > Is this purely useful for spinning disks, or is there some > applicability to SSDs and perhaps other storage devices? Some > discussion on this topic would be useful. > > Patches 5, 7 & 14 look fine to me - go wild. #14 could do with a > couple of why-we're-doing-this comments, but I say that about > everything ;) I want to queue this up for 4.19 shortly - is the above an acked-by? Andrewed-by? Which do you prefer? :-) -- Jens Axboe