Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2056136rwd; Tue, 13 Jun 2023 19:23:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pI8pQ7bkU/aEMugvHmxAWOq11d2DuNPECm5XEgYTMXIh0owBKcvYo3xUSPBWoUqhrb10O X-Received: by 2002:a17:906:6a02:b0:97e:38ab:b287 with SMTP id qw2-20020a1709066a0200b0097e38abb287mr11260038ejc.68.1686709407584; Tue, 13 Jun 2023 19:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686709407; cv=none; d=google.com; s=arc-20160816; b=W7DGUHaCGTmkiEgXLsZkhkamzKSek1ol7WlM8WN+05KVh6w42qnyde9NVaYbaGRXDY JluuAv15630ujxwlcbhME0ZIu6JYCrtFjzT/eF/KSYcLuOr5k+kG4TdAiBnVFe7Uu7Ge vq33x7dAF+D3j1mJYq7RNtLSEh7JfAC/Sw2ZBLY1iv5UH5Zaz79aGRr2YlaXnfiQtyXG himY1b3mCiI7Nr/KUZ4zDvLoX/p4MkzU0rEju6dsOUiFRlx2UkqfvfrU5BYDJ8XIvy/h tsJrakh1RSdDxbrZ+wjGSYIRQU8Pa3BIvFWdbBANUTpSHEUD6pAM5zaxFMsFiRBfQoii JQDg== 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=WWaerykVoN19nLsUZB8SxFVSci3kU4XGaRz74fJbPjQ=; b=m5Nq8XtlcdHYs1F6R6GWnFs3Hak55+nM3Hx/tVYZYFlpIxdul2cDzKwN2olhVBw3J+ RydBY7iexZWSqhECa3Nh4+JFh6uSkx5zuj9iJkiJtH6ouQVNeK8/qc+riDk5kHBqUnAu kxtaLC3leWTZSy1GZ7s2Z5ZopfGk52LmCISxde3D5hpQBW5KDx5umVZYxf8nPHi5FSeZ r5k61RhXRq8W1Y/mkDPzmgKB0EOC//9a1a4lyS3DkgDdtcXCVBmIabACxq17PBdajncO LrLgmsB5qYgV3L2tFG2XHz2X+PBUzXrZkjLA/RvwzyXdrH+nN5KtlHeXCoKmwXPUj2Kx +Biw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec13-20020a170906b6cd00b00965cb784a27si8461327ejb.699.2023.06.13.19.23.02; Tue, 13 Jun 2023 19:23:27 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237348AbjFNB6n (ORCPT + 99 others); Tue, 13 Jun 2023 21:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233260AbjFNB6m (ORCPT ); Tue, 13 Jun 2023 21:58:42 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17ED1FC9; Tue, 13 Jun 2023 18:58:26 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QgpVR0MJpz4f3tNm; Wed, 14 Jun 2023 09:58:23 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgCnD7O+HolkasWdLg--.26820S3; Wed, 14 Jun 2023 09:58:23 +0800 (CST) Subject: Re: [PATCH 2/2] ufs: don't use the fair tag sharings To: Bart Van Assche , Yu Kuai , Christoph Hellwig Cc: Ed Tsai , axboe@kernel.dk, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, stanley.chu@mediatek.com, peter.wang@mediatek.com, chun-hung.wu@mediatek.com, alice.chao@mediatek.com, powen.kao@mediatek.com, naomi.chu@mediatek.com, wsd_upstream@mediatek.com, "yukuai (C)" References: <20230509065230.32552-1-ed.tsai@mediatek.com> <20230509065230.32552-3-ed.tsai@mediatek.com> <2740ee82-e35f-1cbf-f5d0-373f94eb14a5@acm.org> <86065501-ab2e-09b4-71cd-c0b18ede00ed@acm.org> <097caed2-10b3-7cd1-7c06-90f983e5c720@acm.org> <66906bd5-d73f-af96-bf38-c6aee576fa73@acm.org> <04a4d0db-2f2d-e2fc-5458-4ddf852ffc8a@acm.org> From: Yu Kuai Message-ID: <3e9e42aa-9a0d-2b73-194b-5c229e9ed533@huaweicloud.com> Date: Wed, 14 Jun 2023 09:58:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <04a4d0db-2f2d-e2fc-5458-4ddf852ffc8a@acm.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgCnD7O+HolkasWdLg--.26820S3 X-Coremail-Antispam: 1UD129KBjvJXoW7tF43JrWUJr4fWrykXrW3Awb_yoW8Jw4Upa y8tFZIkFs7J398AwsrX3W8uayftwn3Jr97Jr1fG347Zwn09w4fZw4Ut3909rZ3Zr97Cr12 gay8Xr95X3s5Z37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9214x267AKxVW5JVWrJwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka 0xkIwI1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7x kEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E 67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCw CI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWr Zr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYx BIdaVFxhVjvjDU0xZFpf9x0JUAxhLUUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi, 在 2023/06/13 22:07, Bart Van Assche 写道: > On 5/18/23 00:55, Yu Kuai wrote: >> 在 2023/05/18 10:23, Bart Van Assche 写道: >>> On 5/17/23 18:49, Yu Kuai wrote: >>>> Currently, fair share from hctx_may_queue() requires two >>>> atomic_read(active_queues and active_requests), I think this smoothing >>>> method can be placed into get_tag fail path, for example, the more >>>> times >>>> a disk failed to get tag in a period of time, the more tag this disk >>>> can >>>> get, and all the information can be updated here(perhaps directly >>>> record how many tags a disk can get, then hctx_may_queue() still only >>>> require 2 atomic_read()). >>> >>> That sounds interesting to me. Do you perhaps plan to implement this >>> approach and to post it as a patch? >> >> Of course, I'll try to send a RFC patch. > > Hi Kuai, > > Has this RFC patch already been posted or did I perhaps miss it? Sorry for the delay, I finished switch from not share to fair share directly verion, however, I found that it's not that simple to add a smoothing method, and I'm stuck here for now. I'll try to send a RFC verion soon, the smoothing method may not be flexible, but I'll make sure it can work for your simple case that 2 device share tags, and one only issue few io while the other issue lots of io. Thanks, Kuai > > Thanks, > > Bart. > > > . >