Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3066004pxj; Mon, 10 May 2021 17:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnwxGex1ZF7hMxoJwG8+m/C2XYNcxb65rkS9VzrrHV/RQruoyFTHy9RCDSyWtbddfd+3z9 X-Received: by 2002:a05:6e02:e0a:: with SMTP id a10mr22855362ilk.271.1620694488594; Mon, 10 May 2021 17:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620694488; cv=none; d=google.com; s=arc-20160816; b=M+F9/L67bw+gJ6T68RojzEa63nt6muTg6EiiiDTdP83au1LVbGmfJhRIrFRX1uGqi4 jlXnOLM+cUp7z6ZiEI69ecFgsH5mEV9By0hlpCBgRpcSsyZFeELm2aNWqV+byvdVJHZ7 iiluRYwMpZBeis4Tz0atMSemYV2OPSvHfU6N3BGrcKSFi829wqb1lDBabvVw+j3LUpYx euzcCtdbRN3O+JWAMy48N+BVuNVgxWQ1sGEx12M3n5TtctjKKA8H9GEWM3ybd2+2jTpe FXfqtEaYep20ZEqVmWinc9KqL9UquZYgEnnKTPkawoh42Znuxnro568V6L7YgeMd2HuJ sOfw== 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=bQ3gkSBPzPzqQG3dgvJ3x0/jyj50xlvHB4Qu61/jDzk=; b=Bm5TqU9w9l/no3tBnS3orkSpndaVGDKAJshV3OpyZdDt5W7CrYhH/UCp20Pxk1/gJD kxkv1S/SCiFsSwjAFLqeQHdQHcdPjZFclKdCopIw1H7XtKQl/K5G/Rul+jkB0Wd0e4Ia BffneWteME6xFRi0VUrqymTLqTFiP8Ov8m84Z0Ry0WVRljEz7EwDxRoYVClJo5+CZyAN Jflq+Fn7SHQtMCsLU+1PZ8Q6wh6DHjuRgOm2TnycVrwgaQyH4pUXlA9Ngwz70c6AoWAe 1CVvEgHqBKO+jCjUfXr4ioxRAtD4K2OW5+B9ViepWq3iTNW8LunqATklpTampU22UlO5 bCiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MDAeg4tH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si19977523ill.120.2021.05.10.17.54.35; Mon, 10 May 2021 17:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MDAeg4tH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbhEKAy2 (ORCPT + 99 others); Mon, 10 May 2021 20:54:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38828 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbhEKAy1 (ORCPT ); Mon, 10 May 2021 20:54:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620694401; 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=bQ3gkSBPzPzqQG3dgvJ3x0/jyj50xlvHB4Qu61/jDzk=; b=MDAeg4tHtdfYGZu91e1P2NIzyGqcU2GsH/WXYGXYqPKxq05nq4/aHt4kJk+da9F8J4u0Vg MDQaHLJRe09m39aBfUE7JCtKW9O/qz0tVQfdiocNogi3ygssRbeFieK3Bu2XioLmvEpV0s IyJHI7jrCxqCzDYcCOzvmPjvQiMhcb4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-522-WrwrASQEPzGgbYKcXwfZEA-1; Mon, 10 May 2021 20:53:18 -0400 X-MC-Unique: WrwrASQEPzGgbYKcXwfZEA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F03A4501E1; Tue, 11 May 2021 00:53:16 +0000 (UTC) Received: from T590 (ovpn-12-106.pek2.redhat.com [10.72.12.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 04BDC60BF1; Tue, 11 May 2021 00:53:03 +0000 (UTC) Date: Tue, 11 May 2021 08:52:58 +0800 From: Ming Lei To: John Garry Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kashyap.desai@broadcom.com, chenxiang66@hisilicon.com, yama@redhat.com Subject: Re: [PATCH] blk-mq: Use request queue-wide tags for tagset-wide sbitmap Message-ID: References: <1620037333-2495-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1620037333-2495-1-git-send-email-john.garry@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 03, 2021 at 06:22:13PM +0800, John Garry wrote: > The tags used for an IO scheduler are currently per hctx. > > As such, when q->nr_hw_queues grows, so does the request queue total IO > scheduler tag depth. > > This may cause problems for SCSI MQ HBAs whose total driver depth is > fixed. > > Ming and Yanhui report higher CPU usage and lower throughput in scenarios > where the fixed total driver tag depth is appreciably lower than the total > scheduler tag depth: > https://lore.kernel.org/linux-block/440dfcfc-1a2c-bd98-1161-cec4d78c6dfc@huawei.com/T/#mc0d6d4f95275a2743d1c8c3e4dc9ff6c9aa3a76b > No difference any more wrt. fio running on scsi_debug with this patch in Yanhui's test machine: modprobe scsi_debug host_max_queue=128 submit_queues=32 virtual_gb=256 delay=1 vs. modprobe scsi_debug max_queue=128 submit_queues=1 virtual_gb=256 delay=1 Without this patch, the latter's result is 30% higher than the former's. note: scsi_debug's queue depth needs to be updated to 128 for avoiding io hang, which is another scsi issue. Thanks, Ming