Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1244321ybl; Fri, 16 Aug 2019 11:18:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx52phZQiV0xAX8e9DGmjjOi2KQn2eM9L99I1XMaTHD1S+pCXmYxa3w7S3syAX8zvOlKMCE X-Received: by 2002:a17:90a:d792:: with SMTP id z18mr8493530pju.36.1565979493822; Fri, 16 Aug 2019 11:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565979493; cv=none; d=google.com; s=arc-20160816; b=a1firiCB/+FjQIzrKO2h073pVUdr1LnV0LmQOODyvjlDISY1zkkL3cy4Xr4kQTNteB HyiWluHg7blbCJa/frESBD8ulV2aXnPttEADSD7tbD13inmVvohy638GKegNtOiIzPNM HpPQKb7CFhBm3dkwgBWOR9RbCSuHpNopoztlkl/7kgNTzdrW0mnAhL/Qvy2mhnqfgYMY sJsVXwSvB2XtjyxbjeNqkTOI31lJZN3ZMI0YaeVS+SRz6yqdUP5YfHElU/BWEEJ4abTS /kbGmU/HsGiOHakDlayDOgCvQ+iOd4e7D7uGPf/AOb7kFH38JXqDu1Ey6JCvXI3ir7OI CVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=lxbKfa4ISoztLIjMd6DEgXa2A9ZSrMBVFcHAhR0c5ZY=; b=matIeOThjik4A9321OCRR+paUkMcT2pyymlhMt0vIHeN5Kq2BXH/NR+nMG6AZWDytO 6RhbJuC8WS2FoEEUxyowW8LSB05hbh65DveHNGnjUSdk6QN20SrBj5/ae9jZFl8wv+f0 7XBEDA0ao/xyutEq80KcTpShtxkZRJ2G5pqZaxrmRrnT3L7goQbSPSgm6RXyO+3uZ/G9 CKX0dy6MSxdr73IZ0EV3KGNn8GMFnOtYNPS7HN72vxNL1wGiCTqPTVpl0h7Wr+c10Qi/ mly7x4zPF37/qL0AGR9dTN0C1WwbHWIe4KWlFsnlS6o3gTYY6VjTi5hipsOPmOFkZFs6 yPFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sQmKl6pF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si2268094pjr.26.2019.08.16.11.17.58; Fri, 16 Aug 2019 11:18:13 -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=@linaro.org header.s=google header.b=sQmKl6pF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727552AbfHPSRX (ORCPT + 99 others); Fri, 16 Aug 2019 14:17:23 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33450 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfHPSRX (ORCPT ); Fri, 16 Aug 2019 14:17:23 -0400 Received: by mail-wr1-f65.google.com with SMTP id u16so2395896wrr.0 for ; Fri, 16 Aug 2019 11:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lxbKfa4ISoztLIjMd6DEgXa2A9ZSrMBVFcHAhR0c5ZY=; b=sQmKl6pFL/HMyjrb2LNeSTmjOtmdsAAVlPSq2ZJkeylDKNcMTzCVWJug5tEyHTqBHJ CRFAIo75L3ckfk0j+VyCc80njYk4+jFMVfAdJgGdoJujBvk3RoVwO2Pajwrafppa5eiB /4plsxkyF9sZx+BeiOalnJ79Hsk//lk39PjotJl7Jw/296ZXWykYN+AlfnjYLOX6RsEv XQJX/7f5ibKtOZ1nVlWSMbBAogUhXeRr4c4L+hUsFAuKfAMQ1YFqogalH4a/lV+Vt5B/ qtNc1kibWxcr8x/4INb9Kn9dsxiaxlq5YQbZcUBvLM6mH5329ny0HFzmSIloXjPr4PdQ +hPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lxbKfa4ISoztLIjMd6DEgXa2A9ZSrMBVFcHAhR0c5ZY=; b=XYlE82/4mGnY3egUbfjQAIh/yrFduarn2IXvJkQqq1ovUe6KpgS6pV0us4MksVl1R2 RQMp6qXjLBs52mER7SW8muP9odUkOkz64AEsjUt73GkVAwU6HYJBiKtzEROZVA+ywwUQ mIJh1uqR2Q8c3wtj/O74I7fglNaVscus8DHkOddB20KASrE4jd2DBoRKB71/YXCRa+39 nexZMsetw4Nq7sDXe0+Emn44/lQljCeOKBN3mfAlwGuO8n6fxY52aZiKqWaiVAQMPt+f jHdHnaMC1XToAiWKIMm/CPKbCtTisI8ZRgaWNZIrf9qytdYwOoq68hAqx1MgB1TR7Itb yuAA== X-Gm-Message-State: APjAAAWsjdN4gxc9yesgTmWtGy1gFhnvmRHCdry82hGVlCTptzBfHKCz HEPgXBn3unkHxkA+wNmUG5vMtw== X-Received: by 2002:adf:fc81:: with SMTP id g1mr12322678wrr.78.1565979440870; Fri, 16 Aug 2019 11:17:20 -0700 (PDT) Received: from [192.168.0.101] (88-147-32-115.dyn.eolo.it. [88.147.32.115]) by smtp.gmail.com with ESMTPSA id m23sm9354049wml.41.2019.08.16.11.17.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 11:17:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: io.latency controller apparently not working From: Paolo Valente In-Reply-To: <20190816175931.cxpdko44cuyq7trj@MacBook-Pro-91.local> Date: Fri, 16 Aug 2019 20:17:19 +0200 Cc: linux-block , linux-kernel , Jens Axboe , Vincent Guittot , noreply-spamdigest via bfq-iosched , Tejun Heo Content-Transfer-Encoding: quoted-printable Message-Id: <88488E82-E360-45B0-B010-209190D32892@linaro.org> References: <22878C62-54B8-41BA-B90C-1C5414F3060F@linaro.org> <20190816132124.ggedqxrhi5povqlo@macbook-pro-91.dhcp.thefacebook.com> <1842D618-3E31-47FE-8B9C-F26BF1F5349C@linaro.org> <20190816175931.cxpdko44cuyq7trj@MacBook-Pro-91.local> To: Josef Bacik X-Mailer: Apple Mail (2.3445.104.8) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 16 ago 2019, alle ore 19:59, Josef Bacik = ha scritto: >=20 > On Fri, Aug 16, 2019 at 07:52:40PM +0200, Paolo Valente wrote: >>=20 >>=20 >>> Il giorno 16 ago 2019, alle ore 15:21, Josef Bacik = ha scritto: >>>=20 >>> On Fri, Aug 16, 2019 at 12:57:41PM +0200, Paolo Valente wrote: >>>> Hi, >>>> I happened to test the io.latency controller, to make a comparison >>>> between this controller and BFQ. But io.latency seems not to work, >>>> i.e., not to reduce latency compared with what happens with no I/O >>>> control at all. Here is a summary of the results for one of the >>>> workloads I tested, on three different devices (latencies in ms): >>>>=20 >>>> no I/O control io.latency BFQ >>>> NVMe SSD 1.9 1.9 0.07 >>>> SATA SSD 39 56 0.7 >>>> HDD 4500 4500 11 >>>>=20 >>>> I have put all details on hardware, OS, scenarios and results in = the >>>> attached pdf. For your convenience, I'm pasting the source file = too. >>>>=20 >>>=20 >>> Do you have the fio jobs you use for this? >>=20 >> The script mentioned in the draft (executed with the command line >> reported in the draft), executes one fio instance for the target >> process, and one fio instance for each interferer. I couldn't do = with >> just one fio instance executing all jobs, because the weight = parameter >> doesn't work in fio jobfiles for some reason, and because the ioprio >> class cannot be set for individual jobs. >>=20 >> In particular, the script generates a job with the following >> parameters for the target process: >>=20 >> ioengine=3Dsync >> loops=3D10000 >> direct=3D0 >> readwrite=3Drandread >> fdatasync=3D0 >> bs=3D4k >> thread=3D0 >> filename=3D/mnt/scsi_debug/largefile_interfered0 >> iodepth=3D1 >> numjobs=3D1 >> invalidate=3D1 >>=20 >> and a job with the following parameters for each of the interferers, >> in case, e.g., of a workload made of reads: >>=20 >> ioengine=3Dsync >> direct=3D0 >> readwrite=3Dread >> fdatasync=3D0 >> bs=3D4k >> filename=3D/mnt/scsi_debug/largefileX >> invalidate=3D1 >>=20 >> Should you fail to reproduce this issue by creating groups, setting >> latencies and starting fio jobs manually, what if you try by just >> executing my script? Maybe this could help us spot the culprit more >> quickly. >=20 > Ah ok, you are doing it on a mountpoint. Yep > Are you using btrfs? ext4 > Cause otherwise > you are going to have a sad time. Could you elaborate more on this? I/O seems to be controllable on ext4. > The other thing is you are using buffered, Actually, the problem is suffered by sync random reads, which always hit the disk in this test. > which may or may not hit the disk. This is what I use to test = io.latency >=20 > https://patchwork.kernel.org/patch/10714425/ >=20 > I had to massage it since it didn't apply directly, but running this = against the > actual block device, with O_DIRECT so I'm sure to be measure the = actual impact > of the controller, it all works out fine. I'm not getting why non-direct sync reads, or buffered writes, should be uncontrollable. As a trivial example, BFQ in this tests controls I/O as expected, and keeps latency extremely low. What am I missing? Thanks, Paolo > Thanks, >=20 > Josef