Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10391749rwl; Wed, 11 Jan 2023 19:41:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXs1S6yTD1Z3zEFh4UUyYmc3C5eI2XMcR+ApD0mlOZLXIZXxolg3PUHGX9PF0Zb0oH/AAf3I X-Received: by 2002:a05:6a20:7d9c:b0:ad:2abb:5a5e with SMTP id v28-20020a056a207d9c00b000ad2abb5a5emr6631616pzj.61.1673494880619; Wed, 11 Jan 2023 19:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673494880; cv=none; d=google.com; s=arc-20160816; b=lS7VFlyZ+oObeco3jV+kJY/bdVKyJCo2hi7DeJTSNGfyPS+R+GtDDVHGAHxNAdYUGw oWQemRT8aEYQR8xanAgYxb5E2cb82Azdx/VaUH+ZVVtpXAlSB583td3E8fnK5vLPeQaP YdAQO82pBgdbDyOhtjI4b60EdlXtGxT6Z5I/KVk1fLV/hODhhB3pS8ijq7FgK/crdgUA xUlC6N08ZJ8nitAq77ycG6OPLhNhAT81Cz4ACgAfVeT7JmVmTgfjkUxKBmAB2nugAqEA 6f+WnnNZC3YXZ2PaiBTrW67AI3/d7qDbM3MSGfb3nlYK65mnOToakpAhLSbR/9hCb6UP s4sA== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=SsH0mjnH0SeMzrOGfLla9s5TybpBmyzM+PHEYBJpLrQ=; b=g7V7H4wn0X1vNx+FL5ntdvOJ/mBhP9rBVcROeO8qRS3FMWOsv5hgRPQBp9hLKNmiY/ wi899pedI9qnzSgiSeF8R9CeSMomTU0719ghoiB/vBwk3GyZ4rbjLRayiKBfmif31XX+ e4O8JHStyLe9A08UyJ7r8RuxjTHSvYjP0oZXPl4f272Ko4ZQVc1dMw4ZKvUlCkcjRnvm l7LlVYMGACU4lxewLdScdi71ffOzjP89N5l3Ri+IZ7XLGaRmk/+L3UEmipNP/CHKuBU+ hSdRC/crU73mBqZel193ZN3bhuq+9KnhGp7y0pUOYOa0IvLzD2U5ttr0OL90uq71r+yg aEhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=8NifJggs; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w62-20020a638241000000b004b3b04315cbsi9939894pgd.365.2023.01.11.19.41.11; Wed, 11 Jan 2023 19:41:20 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=8NifJggs; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbjALD1U (ORCPT + 50 others); Wed, 11 Jan 2023 22:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbjALD1N (ORCPT ); Wed, 11 Jan 2023 22:27:13 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63E48C75E for ; Wed, 11 Jan 2023 19:26:49 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id n12so17840725pjp.1 for ; Wed, 11 Jan 2023 19:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=SsH0mjnH0SeMzrOGfLla9s5TybpBmyzM+PHEYBJpLrQ=; b=8NifJggs/yh5SMPhQK1Rns2F/N9YHJzl2Ypi9i9jYMCq8JvNLfeXx0wDvwNbHAEYZS aiNsnWSqgv0g2jFpnl9MK1Y2zgFOOtY1/Cr1ukz7V2f3c//7jqoojUzeAWiPtkAkNsu3 y5NrTN9VglZvUCli+KS+Fuep2brgdFlSuTBp++iYWwI3HI8Urzjnp02w/NY3kipmZii8 UqqCazVNBK5ELchNv1pdLGUa9DDY77/ME9StIercWWbZEJGmjbAcWyWNj+BuzivqdALs /zWjgQfVGjobtikFVWg83AqJJYWvGhvXR0D+XrKxLiyTjTVPhVt3cnyakg9mR7p1e29N I3Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=SsH0mjnH0SeMzrOGfLla9s5TybpBmyzM+PHEYBJpLrQ=; b=akXGTqwsMQvm6GYjAOA2weCDqn8cOEAYUzbJD7Go8hmCCv2b0Dfy563NtOcHzIvI7c RtHHrYJIrpCDlL3YrUzvZhFvKCDeU3MJ2UizzvBO6Cc9mFIqjjRu2KXquY1P3NZH0Wt8 ht72uXQ4bJ0Bou2dU2LCnmW4m591Lgi03GrE8yYyuXroWxiWQGw2K9CPppc5ybI8peCo sYWRpXQAWd4XHV0ZjCgwljDm/hS/bdeejhzxijqoNbfqmDZOXLNVJYNOwJR7suNNvyx+ 2T9gNOP2zP2l7glQSJ/K5FGy62/J39PhIEXGpMk1otUwc6ZRQM7E0f2+nzuwxq/PlB0W Vbiw== X-Gm-Message-State: AFqh2kqNYhV58avyi6Hwv0nDuNiOAD4MzEkXk2mvGnLAe6iSwmFHV87r HaeXju7/qwyABzTMV1qquDOABQ== X-Received: by 2002:a17:902:76cb:b0:18d:dd85:303c with SMTP id j11-20020a17090276cb00b0018ddd85303cmr4554834plt.8.1673494008887; Wed, 11 Jan 2023 19:26:48 -0800 (PST) Received: from [10.254.85.126] ([139.177.225.248]) by smtp.gmail.com with ESMTPSA id t1-20020a170902d14100b00186b3c3e2dasm10959022plt.155.2023.01.11.19.26.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 19:26:48 -0800 (PST) Message-ID: <0e03867e-54ea-fb10-1f8a-f098c9dbb026@bytedance.com> Date: Thu, 12 Jan 2023 11:26:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [External] Re: [PATCH v3] blk-throtl: Introduce sync and async queues for blk-throtl To: =?UTF-8?Q?Michal_Koutn=c3=bd?= , Tejun Heo Cc: Jan Kara , josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yinxin.x@bytedance.com References: <20221226130505.7186-1-hanjinke.666@bytedance.com> <20230105161854.GA1259@blackbody.suse.cz> <20230106153813.4ttyuikzaagkk2sc@quack3> <20230111123532.GB3673@blackbody.suse.cz> From: hanjinke In-Reply-To: <20230111123532.GB3673@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 在 2023/1/11 下午8:35, Michal Koutný 写道: > Hello. > > Thanks all for sharing ideas and more details (in time-previous messages). > > On Sat, Jan 07, 2023 at 02:07:38AM +0800, hanjinke wrote: >> But for some specific scenarios with old kernel versions, blk-throtl >> is alose needed. The scenario described in my email is in the early stage of >> research and extensive testing for it. During this period,some priority >> inversion issues amoug cgroups or within one cgroup have been observed. So I >> send this patch to try to fix or mitigate some of these issues. > > Jinke, do you combine blk-throtl with memory limits? (As that could in theory > indirectly reduce async requests as dirtier would be slowed down.) > Hi In fact, some of those tests above are done in vm with only total 16g memory. Agree with what you said, if we further tighten the memory usage, things will get better because this will indirectly reduces writeback pages in blk-throtl queue. Thanks.