Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2083749rwi; Tue, 1 Nov 2022 03:44:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5W/qdJ6VmpU2Hrykgc0DykZYv3PfQahKTbjvu8ghrdsLXGMzYdW0wc50uEQiHffHCjefZI X-Received: by 2002:a17:907:2672:b0:734:a952:439a with SMTP id ci18-20020a170907267200b00734a952439amr16603896ejc.539.1667299486890; Tue, 01 Nov 2022 03:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667299486; cv=none; d=google.com; s=arc-20160816; b=Gulnv68aKY2egatgNq7cwq1s5uu5GK8blDvIUMAVIDl02V0MfCM2KC6Pfg9pAdpm9F ENF7h4hsegXzOsMY/cfBm54rIpxblxS35DWKbs8zeomy6Aq+UzXZdus79UBmJH0r61e4 wH4xhtpwPDteEiiiEoHMMsK6CdHxfwSQff50AKhTTkU4/p9jhUIUuS3m9PkU+3/lh4wC JkBTXXoBSoOmUi8Sms/yY1JYdKju/cFH840B7iKsjuVT+lEje/TMZuNEwOThZLyp8Cd4 XMhsJ2hyBBD80FpD+gX6qHSIltxCMOzOlh9q3f1hxrkRrrWcqpiiqT0lTNOUJHlPQgX0 HWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=lVTsCf1HeL1dCnxOfgE2oH2i82Qc2JfnAFEHBSzXOzU=; b=opwBe/2SEAIA8JS0a1dQFoAg5M4MlPAZjJwKxdXfrhbWq+nAPKRjn/Bz+IgCKwj1L1 2uTEj1Nam/sJiq4tGAjZoSWezi9+howOIrvM3Pxz14AP9RU56NrhoKN4scYV1SrU9V0P NZIeDiu2385i3XVzmacHdrlxyTFYOloUFGnoMWFU0EjiYi1gajXrfhepiLV622brZ56G jjvIcVlnXzdN0lTOsnyzx4fOs06strfY0uNma/OmzGf1eIh88OFaNmbU8Fsf2+AS88q5 7JiFlGeuBBM7Yhb3s2KJe/KCHm94orlH9Q/4jhs5BtpF4PneMl8uiZ9pIhBIXt9dBmqF PY3A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa32-20020a1709076d2000b007add6008ef8si7152054ejc.635.2022.11.01.03.44.21; Tue, 01 Nov 2022 03:44:46 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbiKAJkL (ORCPT + 97 others); Tue, 1 Nov 2022 05:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230395AbiKAJjn (ORCPT ); Tue, 1 Nov 2022 05:39:43 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4FE19C0B; Tue, 1 Nov 2022 02:39:00 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N1lMH5m6MzHvT0; Tue, 1 Nov 2022 17:38:35 +0800 (CST) Received: from [10.174.178.129] (10.174.178.129) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 1 Nov 2022 17:38:53 +0800 Subject: Re: [PATCH v2 2/3] block: Correct comment for scale_cookie_change To: , , CC: , , References: <20221018111240.22612-1-shikemeng@huawei.com> <20221018111240.22612-3-shikemeng@huawei.com> From: Kemeng Shi Message-ID: Date: Tue, 1 Nov 2022 17:38:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20221018111240.22612-3-shikemeng@huawei.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.129] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 Friendly ping. on 10/18/2022 7:12 PM, Kemeng Shi wrote: > Default queue depth of iolatency_grp is unlimited, so we scale down > quickly(once by half) in scale_cookie_change. Remove the "subtract > 1/16th" part which is not the truth and add the actual way we > scale down. > > Signed-off-by: Kemeng Shi > --- > block/blk-iolatency.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c > index b24d7b788ba3..2c574f98c8d1 100644 > --- a/block/blk-iolatency.c > +++ b/block/blk-iolatency.c > @@ -364,9 +364,11 @@ static void scale_cookie_change(struct blk_iolatency *blkiolat, > } > > /* > - * Change the queue depth of the iolatency_grp. We add/subtract 1/16th of the > + * Change the queue depth of the iolatency_grp. We add 1/16th of the > * queue depth at a time so we don't get wild swings and hopefully dial in to > - * fairer distribution of the overall queue depth. > + * fairer distribution of the overall queue depth. We halve the queue depth > + * at a time so we can scale down queue depth quickly from default unlimited > + * to target. > */ > static void scale_change(struct iolatency_grp *iolat, bool up) > { > -- Best wishes Kemeng Shi