Message ID | 20190312085935.11340-2-paolo.valente@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 05F1B139A for <patchwork-linux-block@patchwork.kernel.org>; Tue, 12 Mar 2019 09:00:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E699B295A9 for <patchwork-linux-block@patchwork.kernel.org>; Tue, 12 Mar 2019 09:00:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E48FB29595; Tue, 12 Mar 2019 09:00:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78B24294A5 for <patchwork-linux-block@patchwork.kernel.org>; Tue, 12 Mar 2019 09:00:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbfCLJAG (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Tue, 12 Mar 2019 05:00:06 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40522 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727611AbfCLJAF (ORCPT <rfc822;linux-block@vger.kernel.org>); Tue, 12 Mar 2019 05:00:05 -0400 Received: by mail-wr1-f68.google.com with SMTP id t5so564426wri.7 for <linux-block@vger.kernel.org>; Tue, 12 Mar 2019 02:00:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=zPxdu4FfztX2fjTuYHQF2xv6a9EM4Wt9HqApVzFZrNQ=; b=nxSGFbhgUV0GSjJ9o0aDkRUnhb7rF4cJZtG3yJI9SPaZe2touaWmq6dTzIQY4cRU5+ M7c7dYRu+uAfqfNYcdYt9snPLYlW8d7Y9FDxZNoAUq193PlzQyJBqYdKkoGkR5xLeWpd wwyU9CrT9T4ZqluwiVHQGN0Susi9hncsYO3TS9lR+fv5qvLyDtapVYBQ7ItRP1j86pWY /5gbuYUSKD+RkoG1EduH4lBiCwb6lpIsAHe7mPJvj4d/j+EwwlMuhlqIAVILdaq2TN/I j/1IhcQT57Tj4Zu5ODQPBcj2ndBq6dU7vAsvwfG1LpPKyhnqsdJV0MlQSVzMs2GWttMC SxCg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zPxdu4FfztX2fjTuYHQF2xv6a9EM4Wt9HqApVzFZrNQ=; b=B+XbPLcponSHnogVUe5tXly+NTWMfxsOvbdLqf2y3uJB3kWJfoGE+jmfNiHRU6Nocx zL1x6NGUCKxHowZjnvrt5Xehn+AoceRL1tb+Coq13+kSpdSmZ1iD4Wpk1T5YtNSHqSaQ vTchNNcYP9iekSG3mqrasHR27DnUHkYAios0tsGXyncACJptNxux1JyCKDx8GfXe9i5C oltrqegtSRNQnMQti+Xr7NzwGQyNPZEFlWZTMTr3eFqingYuu8Nfv1Cow4LEujFvkQXx AqNIp8ZeTM8npF44a1ec+Y6qOYAE8xqfjf+fhNZJtFBxQbxkjNsEI0y2n8fRUaONYE+g oiJw== X-Gm-Message-State: APjAAAVOsINSuaELyOTvJQXMrH1mfB8F5TApVs7gdULwuEzA4k6wZEtQ GHP3YjhuaiSDJstOGorLJRz+AA== X-Google-Smtp-Source: APXvYqyKWP8lF9pFQ0dLb8HO7lbor9P7IFQ0hqr4pM3qiOTw9FiJNUIz/DbqEYEjIIernPF2ufnULw== X-Received: by 2002:adf:fe05:: with SMTP id n5mr10000720wrr.160.1552381203408; Tue, 12 Mar 2019 02:00:03 -0700 (PDT) Received: from localhost.localdomain ([84.33.65.66]) by smtp.gmail.com with ESMTPSA id y20sm3953043wmi.34.2019.03.12.02.00.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 02:00:02 -0700 (PDT) From: Paolo Valente <paolo.valente@linaro.org> To: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, broonie@kernel.org, bfq-iosched@googlegroups.com, oleksandr@natalenko.name, fra.fra.800@gmail.com, alessio.masola@gmail.com, holger@applied-asynchrony.com, Paolo Valente <paolo.valente@linaro.org> Subject: [PATCH BUGFIX IMPROVEMENT V3 1/9] block, bfq: increase idling for weight-raised queues Date: Tue, 12 Mar 2019 09:59:27 +0100 Message-Id: <20190312085935.11340-2-paolo.valente@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312085935.11340-1-paolo.valente@linaro.org> References: <20190312085935.11340-1-paolo.valente@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
lock, bfq: fix bugs, reduce exec time and boost performance
|
expand
|
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 4c592496a16a..eb658de3cc40 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -2545,6 +2545,8 @@ static void bfq_arm_slice_timer(struct bfq_data *bfqd) if (BFQQ_SEEKY(bfqq) && bfqq->wr_coeff == 1 && bfq_symmetric_scenario(bfqd)) sl = min_t(u64, sl, BFQ_MIN_TT); + else if (bfqq->wr_coeff > 1) + sl = max_t(u32, sl, 20ULL * NSEC_PER_MSEC); bfqd->last_idling_start = ktime_get(); hrtimer_start(&bfqd->idle_slice_timer, ns_to_ktime(sl),