Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1002817rda; Sun, 22 Oct 2023 21:39:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7KtB4mxi0evqvbf0zdkv2IISrIoIRNV9exV8KiuCfDLi36TC9pFuBR4Xv6nSWuPmvFrEt X-Received: by 2002:a9d:69cc:0:b0:6b7:43eb:c1a with SMTP id v12-20020a9d69cc000000b006b743eb0c1amr8490904oto.36.1698035955940; Sun, 22 Oct 2023 21:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698035955; cv=none; d=google.com; s=arc-20160816; b=0SzyTWOvK7EGkdhqgU36SUWwR6svuZcGT7mj2OLoqBzpigEQossYLJn/dmeOrb+AR/ GAK5Ezod+0bwR7WPh7cUNrPbuw1js6/qYnc5NlHjCyrmGYZlkfPf+tr+vmpkwPHVwLE3 3Z0NiPfRw/aMs8u9GtkO1YQAVAbcZMzuu3xIGbNMt/jRI8g3ggW7kt5bVVhmvGbYhJoK ReqEQ/n2IiKVGRJSk6Vc+qtbFXdWGo9/BS7vr1fp8011WDVgm3I0tm8zAW/tGrvM4aUX jQa794JXvL0UixjezFwTAXYOmRhKZJNkZhmP/dpkqTrQk/1xkW7Kvg3D0JTpDaBjAfyu +qGg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=h+eSKGQ2xN4ZLbjlbyzfe4wcaqVlBtIbGPZ+opB2sEI=; fh=fc3teJ22KEuQTkNP9cgtEvB6MYF/rQvHlrBZAeRG/Fs=; b=XX8k49SHBDoA5sPE08cJDCddx32u8SLg5NxmPNdroHAbjV87N1Pv/pInjl1qWpyVUe kHWAWckjHo8KfAvY7KP9SGValdFznPNCoPSLB1hm3ew5jOJVrghpc5b2DF3JvP8mr2kP /zzMievGmUogas1GtQo3KXvqGI/CvVMYFifdpbmT4QAqivtwQdpjAxMyUVoesutE14QZ pI63ZidzVe88SnHWP0bO4Hp2wMNDNdli/WA+2dVGU5iH/xOzyjHiDCzq4oDwZgIby/rC vHaDRjuoYyuMXOrUHFh9ScpQX4RYw4snGLUNtrXTfVcj4iE8Ee+sQLBeqMEvgZZLunkM Uepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K4b3HbXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e63-20020a17090a6fc500b00252d84b7af0si5722457pjk.181.2023.10.22.21.39.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 21:39:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K4b3HbXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F2994805D5E2; Sun, 22 Oct 2023 21:39:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbjJWEjF (ORCPT + 99 others); Mon, 23 Oct 2023 00:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjJWEjD (ORCPT ); Mon, 23 Oct 2023 00:39:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0961A4 for ; Sun, 22 Oct 2023 21:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698035898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=h+eSKGQ2xN4ZLbjlbyzfe4wcaqVlBtIbGPZ+opB2sEI=; b=K4b3HbXUSPKFCbeXpp5gK/XX7oQ9nDpxuw84yWRkqPGfVvNSl2klgbXdP9kL/dhw2fj6Cm ge8p/W+rUMM6xhndg6xBD6pDu2btAovg4L28xzUPsqwWI2bRLisXAvhdTPgcUoGecirtN3 AGLlUn9nuvmq4N6kVo8zkNzHq7slKwU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-489-a26jCd1OMpGLjClclRW9ew-1; Mon, 23 Oct 2023 00:38:14 -0400 X-MC-Unique: a26jCd1OMpGLjClclRW9ew-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CB33310201E4; Mon, 23 Oct 2023 04:38:13 +0000 (UTC) Received: from fedora (unknown [10.72.120.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3D3E91C060AE; Mon, 23 Oct 2023 04:38:07 +0000 (UTC) Date: Mon, 23 Oct 2023 12:38:03 +0800 From: Ming Lei To: Yu Kuai Cc: bvanassche@acm.org, hch@lst.de, kbusch@kernel.org, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: Re: [PATCH RFC v2 0/8] blk-mq: improve tag fair sharing Message-ID: References: <20231021154806.4019417-1-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231021154806.4019417-1-yukuai1@huaweicloud.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 21:39:14 -0700 (PDT) Hello Yu Kuai, On Sat, Oct 21, 2023 at 11:47:58PM +0800, Yu Kuai wrote: > From: Yu Kuai > > Current implementation: > - a counter active_queues record how many queue/hctx is sharing tags, > and it's updated while issue new IO, and cleared in > blk_mq_timeout_work(). > - if active_queues is more than 1, then tags is fair shared to each > node; Can you explain a bit what the problem is in current tag sharing? And what is your basic approach for this problem? Just mentioning the implementation is not too helpful for initial review, cause the problem and approach(correctness) need to be understood first. Thanks, Ming