Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3027696pxp; Tue, 8 Mar 2022 06:31:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcpuZ/wLrshqcZo7cxwBmFAlJ9rEQscRezv17ZCSsv8MgT5aNQOHDcgRrHNezHQnRkIdpq X-Received: by 2002:a05:6402:2744:b0:416:4878:879 with SMTP id z4-20020a056402274400b0041648780879mr9715981edd.151.1646749874784; Tue, 08 Mar 2022 06:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646749874; cv=none; d=google.com; s=arc-20160816; b=h1ILX3Xr0DY2+YMZHlXDQGqY5SKfD4z6nPUblC5+nlvRVQjMWCfGCdnyyLtsphO+aD kxWr5MuJut7AhNAHzxBInXTYvVQRlBXxOZdpesxBIIliGcQHEF6GsyS+LM4mkRTtC2j4 Df1jR9yDEf0hYnZwANfIpf0fKyDYIWoQDttiZ2G0NCAwYs3f1ZvQuzVKROZZDBnZQZ5q W+a7Kb4KtYL3vaqa670vLk9I4txE+yajUDNQknl677VZmd72JzvlnYKyTuBG18bGlPfE Cmhk+QYBED0TXZoYla3aBi9UJpPLvYnfH9eEjAM632vdnxNvCTaFwgC5O7jln3W6eny4 A2CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=4xwIW2FJYN5j+5RpBlcJYuBie5cHjb16/BXLSJiVNSY=; b=XdGIRQKFVMqUAlpcGQrHU2DbGhWgpHVL4uOWnIf73yc4P6vv71YUKlZ6QNuL60Yr6i GK2X7ctkOn486/p20tAYax4te9iHE8aUp2mZLF47idHSOaGC0UPQSu+WaRZjpMmsab1o MWDX1fiK0VK9dUtArlrpSlfEQpFZvIgYIvrgTrCIem7qhBFg2Qc7CpANYtt+0/XHr01T efgNJCQeYVFE5Dz00CkTiDNLkvHrWQW+u7AaJdyba65YJxuABqzqzEc2TdyXzmAQlrFM tGLLwRAnnINRK4bFWLVfMXycoUf3OV+V87IN7e5NqjQ7mSRYH5MNOpe1k42geHKAz8D5 Cdgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypJzaTlj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa12-20020a170907868c00b006dab8393b8fsi8338746ejc.46.2022.03.08.06.30.50; Tue, 08 Mar 2022 06:31:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypJzaTlj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241721AbiCHJOE (ORCPT + 99 others); Tue, 8 Mar 2022 04:14:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345228AbiCHJOB (ORCPT ); Tue, 8 Mar 2022 04:14:01 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D58C229C8A for ; Tue, 8 Mar 2022 01:13:02 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id x5so23503956edd.11 for ; Tue, 08 Mar 2022 01:13:02 -0800 (PST) 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=4xwIW2FJYN5j+5RpBlcJYuBie5cHjb16/BXLSJiVNSY=; b=ypJzaTljTOo6hefJ35LpGKLHL3EV/E+qUm7RmOF7jFkbNwvnZ7NE7pj1pciq1eaGEx A9+HaBmn4ZwWdKhvzi4CxYEcga8QQKxMNXjQIL+PPRXQN8l4TjfuaBfxRf1oQWGvsv36 pIxBpWfjRGX8AWwqWEKtMrRLWhVuRldd5fsXMySEv+e0RBX6aMBjjfHNdq4xqB87p2MX Pbx5+z+G9WrfaIyRL3RocGY17/KjWur1G4PQx2H4kUqYFv1T4y26wfq8zZKaZIk8C85Q zSuczI3jgq+AWeWFuJvqXZ88sWFey3H4gKdsoC9UWGCJCHmZv/FSUGeSmgY7a6Yo8qjo XBkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4xwIW2FJYN5j+5RpBlcJYuBie5cHjb16/BXLSJiVNSY=; b=1mGRqu9Aj1ZNYBhvTRnhAFxIKTqLmR2UCoALeb0GG7lacula94TtcHDaTk1lk1HPtA GwqvTZY3obB7XmHJ65aHfC/YNxYiVeShY+Je+UbtvlhyrhBvxuZkBFnnjdFYKfIX756i o0LFcqy9IRFwdpQ7LLKbvx5LBsjFCotxjGzCX5fRUcXTaUaPRu9/dNue0zlKNjIJYFKe bo0dOwuVeHdEqCeKn/o0hQSnAdg4+3giMv4kBHA8gte1OAtACMUjqAlJxF4mtsYDXdew lFM0QJPVotQ/W/QFHwK6feUu+cPlhIfSDDhoGpF836xMVPxr5TOU4nY2WeCqRDEi9hru 9RRw== X-Gm-Message-State: AOAM531iS+YSkmwiwyagW8bcmf4TFbx6cPG+EWTa7+M1t3ic5J7/GQs7 wCvDa0KEsMPEfnkavbsislVPbA== X-Received: by 2002:a50:e08c:0:b0:407:cdc6:809e with SMTP id f12-20020a50e08c000000b00407cdc6809emr14953408edl.162.1646730781303; Tue, 08 Mar 2022 01:13:01 -0800 (PST) Received: from [192.168.0.15] ([83.216.184.132]) by smtp.gmail.com with ESMTPSA id q11-20020a170906144b00b006cf61dfb03esm5663090ejc.62.2022.03.08.01.13.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Mar 2022 01:13:00 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] bfq: default slice_idle to 0 for SSD From: Paolo Valente In-Reply-To: <20220308000253.645107-1-khazhy@google.com> Date: Tue, 8 Mar 2022 10:12:59 +0100 Cc: Jens Axboe , linux-block , LKML Content-Transfer-Encoding: quoted-printable Message-Id: <61B4B869-1B0B-4FE9-9AEE-712A3F50EDA6@linaro.org> References: <20220308000253.645107-1-khazhy@google.com> To: Khazhismel Kumykov X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 8 mar 2022, alle ore 01:02, Khazhismel Kumykov = ha scritto: >=20 > This improves performance on SSDs dramatically, and was default for = CFQ >=20 Ho, unfortunately it is unacceptable, because it simply switches BFQ off = with sync I/O. Thanks, Paolo > Signed-off-by: Khazhismel Kumykov > --- > block/bfq-iosched.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c > index 36a66e97e3c2..f3196036940c 100644 > --- a/block/bfq-iosched.c > +++ b/block/bfq-iosched.c > @@ -7105,7 +7105,8 @@ static int bfq_init_queue(struct request_queue = *q, struct elevator_type *e) > bfqd->bfq_fifo_expire[1] =3D bfq_fifo_expire[1]; > bfqd->bfq_back_max =3D bfq_back_max; > bfqd->bfq_back_penalty =3D bfq_back_penalty; > - bfqd->bfq_slice_idle =3D bfq_slice_idle; > + /* Default to no idling for SSDs */ > + bfqd->bfq_slice_idle =3D blk_queue_nonrot(q) ? 0 : = bfq_slice_idle; > bfqd->bfq_timeout =3D bfq_timeout; >=20 > bfqd->bfq_large_burst_thresh =3D 8; > --=20 > 2.35.1.616.g0bdcbb4464-goog >=20