Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1399812rwb; Thu, 15 Dec 2022 09:37:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxoall89GyJtS2FmeRcCAIMZeNa67Ddy7ZUBG//ydDxzF1LkskRim6tNtHRroNd8s4d522 X-Received: by 2002:a17:902:7792:b0:190:fe60:48c4 with SMTP id o18-20020a170902779200b00190fe6048c4mr464913pll.21.1671125868921; Thu, 15 Dec 2022 09:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671125868; cv=none; d=google.com; s=arc-20160816; b=tSZz3YrVnz6m/PLa3lwBVKScfkvmAgNRdcoVKSMy/giajmg44IRSZ7lF7dErlTpiLK Xr9k1aiVX6dCRrmCH2iImThd8gzegaWqLRc/JjZV/iSXHyGol79UASL/70WNa4U4fcQ7 HaSt5KtLOIhAgjg5SsbkBgrHql5QG8Pcp/WOv4hHqwkcm9NqjWz/YORfz8Dz8YhXZDR2 vCNeT3hc2sFJV6k6v60JQPOXfIeq/cgIAlQbSrTa78IHxSJsOKzufzVBiIpjwx9OBQB2 g3hkHbUEBGFkbqqyKu/8uhORxpwzdUL3U9RgtZhh/wpjf4CQpYhavoLN7K+NAhXHTpOh tALQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=bOgxA915+/U8If37/BdnD3/XyRRRxssxQl2Z8drtlFU=; b=cyJBxlvg4/lmKhYCmcEicDyoZetkUcssnT+/Zj12pRxBEevA7LYYfidEhmsgMYuKyg t2AZDLwRVCJk7szcSW9WFuguS9XhbQqlbXjzVQ54Fv61/uOAbdAp1J4p4zT3j4/WpuGu o+0yZkldTs4RuzBxiRe7cyGfDkEuXGPsIQnCLiNvoOcGh0uy8/zoqQXKYaqn8DEVwt+7 yK/Ofa2m2YxmgxnmIOQblrqpObQZ7yTay/y1CE5OKvxJ6A4ySRdzA7ZKDMZJ6P0GOO0q sB1j+v041AUhcuXKsG+tUiQDI3GqgzFQ0kSq3bM+h/KrL3nJj/xCglmEwlVOKKtWFlnw GRaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZHs0yZHm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170902f10b00b00188e49e9dddsi5726980plb.52.2022.12.15.09.37.40; Thu, 15 Dec 2022 09:37:48 -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=@gmail.com header.s=20210112 header.b=ZHs0yZHm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbiLOQmk (ORCPT + 68 others); Thu, 15 Dec 2022 11:42:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiLOQmh (ORCPT ); Thu, 15 Dec 2022 11:42:37 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD6BDC9; Thu, 15 Dec 2022 08:42:37 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id gt4so11084747pjb.1; Thu, 15 Dec 2022 08:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=bOgxA915+/U8If37/BdnD3/XyRRRxssxQl2Z8drtlFU=; b=ZHs0yZHmhddja5efzdbesgNr+m1zlfrN/YnHS6P0Z9lKUWafZeZemyjvbv59Df4vm4 1H3d2fteVrh7ot92Y4AEg/5PaWOQjNcNvtm3ufmh+NZy+lEw8UQTqypTjW6Uba9HYdOC Adc5NJpWZnYgdy+Z18uk8a+TL+5SUFsmCS3enZ0ySxtDthzjCT7Soi493FLds+qPgyMO wrPjkAID2X7+1g3hCwbqrdASUGvcE2uXkRWN/B6GNtNGeUhjVzp56GfUhZtBQES8/e/h 0OHDBVXAM+d5X06CKGVFFP06/2AFhOLlBF6PGksx+XmNVbSkp8GOnplhm5Gaxem3x4Yq RMmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bOgxA915+/U8If37/BdnD3/XyRRRxssxQl2Z8drtlFU=; b=TYb3ErbesVuX4BjnHwh224XjwDRwbhoB2/IAfye1pss0NlcqK4dwocFakFnVOk2fc6 5dDPYggsolVqM67zYt7MxUawJ8X9BDdYJi4lYoBjCeNQVabLXBkOT56D7Y4QRDQNZ+Er PMBEl5Zq7uv5njHOL4FU94D9fgJEqWaneqXLMUoE/GXSNK6WdSQ/r8B8J5uc+HqTYqFg mizmlQ3r5QIPrbNiuYYTXH4Goe+wojPWf02IXw1I3l2lzcyZAbLYdgCBpCDiAbJDfoZd 3erlJSk8YztSWVF7TY/JJNk+OiubdYWZgTwDV4qqYBZRjPvOWOAy8IzoaYp7QJbwzhPW OBlg== X-Gm-Message-State: ANoB5pkyeOQcURSHbN70w3TXICT801xHkGLjUCtLJzggJYS+LVLetVOg wOXE5/X4iUiuqEfJOv6EPAU= X-Received: by 2002:a17:902:bb98:b0:188:6b9c:d17d with SMTP id m24-20020a170902bb9800b001886b9cd17dmr20204086pls.16.1671122556178; Thu, 15 Dec 2022 08:42:36 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id y20-20020a170902e19400b0018980f14ecfsm4074051pla.115.2022.12.15.08.42.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 08:42:35 -0800 (PST) Sender: Tejun Heo Date: Thu, 15 Dec 2022 06:42:34 -1000 From: Tejun Heo To: hanjinke Cc: josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [External] Re: [RFC PATCH] blk-throtl: Introduce sync queue for write ios Message-ID: References: <20221206163826.10700-1-hanjinke.666@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hello, Sorry about the delay. On Tue, Dec 13, 2022 at 11:55:16AM +0800, hanjinke wrote: > If sq->queue[] were only classfied SYNC and ASYNC, some things may become a > little difficult to handle。As we put sync write and read together into SYNC > queue, the two may influence each other. > Whit wbps=1M and rbps=100M configured, sync io likely be throtled while read > ios after it may can be dispatched within the limit. In that case, > maybe we should scan the whole SYNC queue to check read io. Ah, yeah, you're right. The configuration per-rw so we have to split within. Will review your latest patch. Thanks. -- tejun