Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7776635rwl; Tue, 10 Jan 2023 05:23:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXssVy9dc1grKSAT3wnaGmfIpjsvF63vycGZcfOSvDOZ6XzDDMD0itzBRgVXbX57ap9uWnxB X-Received: by 2002:a17:907:7e9f:b0:7c1:7d81:d2a8 with SMTP id qb31-20020a1709077e9f00b007c17d81d2a8mr70394334ejc.3.1673357011656; Tue, 10 Jan 2023 05:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673357011; cv=none; d=google.com; s=arc-20160816; b=oM5ccGVvArsMBPyRS6Tn5OKs9hHoAH56pkgHdAd/PL6xTif7PsVXNs5mWhSPm/qHnR LWaTe42JrqhxOoySTPEoOolvPO/fkMuqkVrfOO7xrYlKTrM4zfVRU5/C2U68rmsRpXpJ a9Su5h9OEpRS6AGBsDthr7/1IX+WNsoWmnfImbFRxiVa+PyGdTTMA9tYyfld678eVKTo MoKldjSlVeDr+bvGlnpX18yaUBZ+bvIElvfU709cOUv6Mfh/E6lriHlZ4/Gv0m11QFTs G92hbo5bevKALtYytoNmkwNGqPy/R/XuFNMIc9LlgiciNMTp+e7mpoVuOV2hd4/2TFkM TM/w== 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=0b3RSYe8mQauTsHJUs6ykMcTgur4za2xftvbQNqIJa0=; b=EJVkck/kIIeaG387HDnI1/5K5MHjw5zzli2R051m4tnyLAnzrxVaiyslqTStDkhwUT 04ehdduwLTgciInnVypfH5PTy40CfkduVu2sA4YqVV8AiC9QYFAHIJ64uAL3+dBNhpsF xlBskpl2/lWvv4jbOZ/vBR7wCoz9JTXFstpDj4cJX50UF1jXci2MAhVJ/QrDHEB0Vyls WJMdLIOORF9xaMsxCMlrd2uLiu25yngc54ZSn8zNsNGTrhkp3wdr5al55BNS2Lhyj6Co 5TTa43iBCiX25w8AJe12aPtedAb1ZyyD0TKoaWXdfvYIDpTXXuNdEIr4oIk/IGHYArIM vjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=RLUlg0vA; 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 xb13-20020a170907070d00b0084d1310711dsi11643266ejb.315.2023.01.10.05.23.17; Tue, 10 Jan 2023 05:23:31 -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=RLUlg0vA; 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 S230191AbjAJNHf (ORCPT + 55 others); Tue, 10 Jan 2023 08:07:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbjAJNHd (ORCPT ); Tue, 10 Jan 2023 08:07:33 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F9559D2B for ; Tue, 10 Jan 2023 05:07:31 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id c26so4333075pfp.10 for ; Tue, 10 Jan 2023 05:07:31 -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=0b3RSYe8mQauTsHJUs6ykMcTgur4za2xftvbQNqIJa0=; b=RLUlg0vAPGTz4hMSALnOAbA95CQ2QhiAPu67CW1t5ndi5fYQvoHNRfl2s9mmbfxynC n5Hl26i2wnPo3Po7VVrtnQueuJ9LNMFdRz54SOR0UzQpuEPMsDS42Z/bO4BEb4COnlqZ Yhl/RGwxFnAkY+cH1otEhavspwfCl0FOYahc2kH+YxTr3TQTFwyb+jOHwd6AbOmhbT/k UrCTqXrRr5OpYjY6+L/mYlkYPUtgEqwUoG1lp5ywtifFjrif5++oGbE8puNRSkItokP8 ieNDdz1XkqTFKhhlST3mTca31Q50kVpZqKIC7YfgyJEYf+TFUH4gcW9m3mBKjOdd53dv s+jQ== 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=0b3RSYe8mQauTsHJUs6ykMcTgur4za2xftvbQNqIJa0=; b=xtShRCrYePs9hf5hTyGbvwX10prvFNhwQgl1WX5Ui7EsMJSiOnDCqXAIfXarNXrUA7 xGRWWAH2kAcc22eiU7edswZYkUsyZytl/IaAQ2iFKgQ96XdwCYjuYAR+V+gC/tR1sAty caticxwNjw4HVGkkKoZ2VyROAPAuSC/6A+vFS7G7mbtReVPONhWJwWavGXLnYyer/bKo UQk+9M+olrtnRO5WMCJK76cVLyhyk786PXjCNujX8/SVWZ3j2Mmy0zsDsm9pLUfZMitz jaNIQ0/gHfC6NUBXlJZZbBIyQO11bO0O3i8bKDYOndnFNogC8SL7S+rQz1ElG2gV+HrG cqMA== X-Gm-Message-State: AFqh2krFMQ7qQDrbvzIWlzApM36uCJ2k/hiTJLldftQZufKbCgI9ZuWd iPYmDjOrefVBwcsn7rS2TX1JEg== X-Received: by 2002:aa7:85c8:0:b0:588:14ce:7e64 with SMTP id z8-20020aa785c8000000b0058814ce7e64mr7017731pfn.30.1673356051158; Tue, 10 Jan 2023 05:07:31 -0800 (PST) Received: from [10.3.157.223] ([61.213.176.11]) by smtp.gmail.com with ESMTPSA id v67-20020a622f46000000b00581ad007a9fsm8004776pfv.153.2023.01.10.05.07.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jan 2023 05:07:30 -0800 (PST) Message-ID: Date: Tue, 10 Jan 2023 21:07:25 +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: Tejun Heo Cc: Jan Kara , =?UTF-8?Q?Michal_Koutn=c3=bd?= , 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> From: hanjinke In-Reply-To: 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=unavailable 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/10 上午2:08, Tejun Heo 写道: > Hello, > > On Sat, Jan 07, 2023 at 12:44:35PM +0800, hanjinke wrote: >> For cost.model setting, We first use the tools iocost provided to test the >> benchmark model parameters of different types of disks online, and then save >> these benchmark parameters to a parametric Model Table. During the >> deployment process, pull and set the corresponding model parameters >> according to the type of disk. >> >> The setting of cost.qos should be considered slightly more,we need to make >> some compromises between overall disk throughput and io latency. >> The average disk utilization of the entire disk on a specific business and >> the RLA(if it is io sensitive) of key businesses will be taken as >> important input considerations. The cost.qos will be dynamically fine-tuned >> according to the health status monitoring of key businesses. > > Ah, I see. Do you use the latency targets and min/max ranges or just fixate > the vrate by setting min == max? Currently we use the former. > >> For cost.weight setting, high-priority services will gain greater >> advantages through weight settings to deal with a large number of io >> requests in a short period of time. It works fine as work-conservation >> of iocost works well according to our observation. > > Glad to hear. > >> These practices can be done better and I look forward to your better >> suggestions. > > It's still in progress but resctl-bench's iocost-tune benchmark is what > we're starting to use: > > https://github.com/facebookexperimental/resctl-demo/blob/main/resctl-bench/doc/iocost-tune.md > > The benchmark takes like 6 hours and what it does is probing the whole vrate > range looking for behavior inflection points given the scenario of > protecting a latency sensitive workload against memory leak. On completion, > it provides several solutions based on the behavior observed. > > The benchmark is destructive (to the content on the target ssd) and can be > tricky to set up. There's installable image to help setting up and running > the benchmark: > > https://github.com/iocost-benchmark/resctl-demo-image-recipe/actions > > The eventual goal is collecting these benchmark results in the following git > repo: > > https://github.com/iocost-benchmark/iocost-benchmarks > > which generates hwdb files describing all the found solution and make > systemd apply the appropriate configuration on boot automatically. > > It's still all a work in progress but hopefully we should be able to > configure iocost reasonably on boot on most SSDs. > > Thanks. > These methodologies are worthy of our study and will definitely help our future deployment of iocost. Thanks a lot. Thanks.