From patchwork Fri Aug 4 05:35:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 109370 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1710497qge; Thu, 3 Aug 2017 22:35:33 -0700 (PDT) X-Received: by 10.99.170.75 with SMTP id x11mr1150081pgo.140.1501824933467; Thu, 03 Aug 2017 22:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501824933; cv=none; d=google.com; s=arc-20160816; b=CekcHN0XZVZVe5zvLYS+025S90tJLLF0JWsDSbC9Xm5bHkauffSSYKjvMJGwrLbbxy b1Wim7RFjttjObnv3Oo3L74Vqk1GVmkAk5INtmOTCeULANqmzaTetGqUzq6AWe+ZPbaF ZAgEzn9BMhsNDzZHtTYuKP+wDd/M+NE2wHiZ4GrhCduszPC1h2QMbtdBTPqdN7onl+nY Vvo5e6Qg0HE0HviICc53jFpCTguzV0nKDzPf/lY1B+PbMwO1FMd95cJXpITOGQA7raLF 5UFN5mTxKDmYGMCg/vMSTVOr8RvcHyOfbhtw1GHZH3WPHdk/jw5ya359mdwzjQ6yvy14 v+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=o1omXiJ2epFn/dCJ1uTncCh4jnz35F56m7B1zyJHVW4=; b=UsnJnWvebFLmvTclhSXoxmpZ1SGQzWoxM3O4/I53mNCoj4x0usHUkIh9tv5DbS6nrS NhlQmvbgRW37lDOLYR97WfPpDSWYNMADFZdBr3XIpmJboG2gPJwoScuqTxfedh6oOypJ nUEYFye8ZMLRbJjZK3VU6Nv5Xuy4XzxZgZR/WVqQmzVC9yHrBF+YNzgfNm3XNq/oLYi0 tUb0xBmAOyb8oMujH0jvUMibL+MPF8Eh3W8sOgkSFSggTD/0E9m3QG2Sz6Y7nw3P4ET5 wL6B2EECmXl2ivPqNNcESSwRfyKDzl7Ac5YvljBZIkhEg5qXqM9cFnkmqA9QFVL6wQVU Umag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=NaZ2lebJ; 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 63si558606plb.684.2017.08.03.22.35.33; Thu, 03 Aug 2017 22:35:33 -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.b=NaZ2lebJ; 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 S1751317AbdHDFf2 (ORCPT + 25 others); Fri, 4 Aug 2017 01:35:28 -0400 Received: from mail-wr0-f178.google.com ([209.85.128.178]:36280 "EHLO mail-wr0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277AbdHDFf0 (ORCPT ); Fri, 4 Aug 2017 01:35:26 -0400 Received: by mail-wr0-f178.google.com with SMTP id y43so12694635wrd.3 for ; Thu, 03 Aug 2017 22:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=o1omXiJ2epFn/dCJ1uTncCh4jnz35F56m7B1zyJHVW4=; b=NaZ2lebJjyKUWJ35/UoIpND0Rg7ogaqt/EZPnprt95QGv7VhNe+KFIA2KbWy1ixmbR 4JiL3hwNEFlxs1zvDgaMKMwwGEnKc7cfpPOwbOrWLwc0bXBwcHmwXeWpvpa0LMC9m4bo F5GnslVqYd7rbcAY1T0lfxYVQ36NfU0WL/c9M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o1omXiJ2epFn/dCJ1uTncCh4jnz35F56m7B1zyJHVW4=; b=GXWSddjo0PQQiU046WQxm6tOVMz/B8qkKa2CWdFhNAgPfiIPDtDV0WtWKXAuMq8Mqo F5rww7dyxnF/Ke70LHDjIJ3hPBOkn0YyjuTlBtQFMV5R+by31srNyGBUE5vuscybz7/O x8ycf1Ek4aSohtZ89WnMr46mZlgf/X2xvcpos+MTL8O5YX3nIGjz9mUlytxSUMz92JKM /xV5vTVxDRceMR4iQzw5qQEH8WSrJABxsxyHhQ2t+ldiLPGWhPka/jq8PTpmFdlmx6E6 IJpoa5exSoneYNI9+Ch7L8v1i3LFbtQbsHPieLeoUN+AlM68gsCzIv+SNgvZ9rrCCGEz SAsw== X-Gm-Message-State: AIVw110rHfxkz5HE+iY/JJq9kfa1MfZotZhIb3bTUt8UEM05EWP+gwhh BxBUlb2GWqUyPhy+ X-Received: by 10.223.150.101 with SMTP id c34mr671131wra.266.1501824925390; Thu, 03 Aug 2017 22:35:25 -0700 (PDT) Received: from localhost.localdomain ([185.14.11.62]) by smtp.gmail.com with ESMTPSA id 196sm3082142wmg.36.2017.08.03.22.35.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 03 Aug 2017 22:35:24 -0700 (PDT) From: Paolo Valente To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, broonie@kernel.org, lucmiccio@gmail.com, Paolo Valente Subject: [PATCH BUGFIX/IMPROVEMENT V2 0/2] block, bfq: improve and refactor throughput-boosting logic Date: Fri, 4 Aug 2017 07:35:09 +0200 Message-Id: <20170804053511.2389-1-paolo.valente@linaro.org> X-Mailer: git-send-email 2.10.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, these two patches improve throughput-boosting logic in two aspects. The first patch refactors the parts of the device-idling logic, related to throughput boosting, that are still scattered across the source file bfq-iosched.c. The patch concetrates all the logic in one function. The second patch fixes/improves device idling for flash-based devices that have no internal queueing of I/O requests. The contribution in the first patch has been triggered by that in the second patch: finding the change made by the second patch has been more difficult than it had to be, because the logic that decides whether to idle the device is scattered across three functions. The second patch provides a significant throghput boost, for random I/O with flash-based non-queueing devices. For example, on a HiKey board, throughput increases by up to 125%, growing, e.g., from 6.9MB/s to 15.6MB/s with two or three random readers in parallel. Thanks, Paolo Paolo Valente (2): block,bfq: refactor device-idling logic block, bfq: boost throughput with flash-based non-queueing devices block/bfq-iosched.c | 144 ++++++++++++++++++++++++++++------------------------ block/bfq-iosched.h | 12 ++--- 2 files changed, 85 insertions(+), 71 deletions(-) -- 2.10.0