Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp180069lqk; Wed, 13 Mar 2024 22:42:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX19zVqjGzApSoQQJWlSK4Kd2SVctMC1E+/nmWDoP1wfMYoxJoQlRx+garhVpO1DZqSkLOwVoDcbbd2jWKsu5ix80PgNwnhk0UoFDLzlg== X-Google-Smtp-Source: AGHT+IHi8iFbyYgfqh3662swrYWQs0eVkkEQPA2/g0yyRv63TFiVJHMXgzSBzVpDPwEotnAsGPma X-Received: by 2002:a2e:3613:0:b0:2d4:57c5:8862 with SMTP id d19-20020a2e3613000000b002d457c58862mr407446lja.4.1710394972839; Wed, 13 Mar 2024 22:42:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710394972; cv=pass; d=google.com; s=arc-20160816; b=Qvj5SbE2m5gTwTc0Q2l7mR1AFkElXBCAEWgnzzAa/fnTz+XIDBwwkl18AVzWHnFJ6F jTjHv7tg03gZStMTetpNdF/1njwVMJ0YSRDVo3+YaTN+clonE4fi1Zo6iTQxZEjam/6A R9LV/tEMFjNu1EcaKMjOGD8QjSc51BeXI8gIO6HKxeyCaCNO3c3EnCC6VRqNLh1VTUO7 AncxFqujmjeaZQMlT4fR41D8QCExvAEkvBYZRuZpu/BTPgWjrPiNVjbAAAGAhicLOjLr 2LPPDx8My4CfdTBMyGtvU2fgfy2Z2qvS3doi+3FRWVDYCiFmim0QeTXOsvaK6xTXrQ92 mA1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=q4opjsWHj+629bWbOdiv1U772HYHuAhm44wPQjZJhmQ=; fh=rAYU/3hYejemRbNBszf/qK5TWqhD9zd3RE5VnX8wIY4=; b=VgMgzgO2gM99x/TFLSRLwK5p1id8Jc/eYeIALq9axlYZJfCsWo0ITtvR8hJcIXjAHh AlxKCFJDi7BXJKasUnptJNXUCczyNySPCFjJe1BrbsJuDRMIqevS8RlSMTTLfxKBXEv/ ZQKinanayKm+9jbJYZ1ZZxPgyubeeNwP7gQnI/HRyUriARhpwGmuGAwfnve0wwLwVOUd C5HTsS3bHRAqygqDB2SIEm74SMfN/xdkCK8DXLHNtFn69+HdnEDqdUVZmS/lMTHl1PCz TUd/Ox0JxzrurFx8+GJoSZ5i3tVjR75ZzDqWzt+BR31ZrORQdqW/BwnDTDOzCCvFonm1 9CAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-102792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102792-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b13-20020a056402278d00b005687e605dabsi390553ede.210.2024.03.13.22.42.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 22:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-102792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102792-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8C91B1F2350F for ; Thu, 14 Mar 2024 05:42:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09421DDDF; Thu, 14 Mar 2024 05:42:42 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FEA0DDA7; Thu, 14 Mar 2024 05:42:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710394961; cv=none; b=YgIIhBf0kl6Mlql4SGdOIjw2XQ2ZRWI3qgMLkD7YLw/bPFI+PABMh/2mDtIkiT0pFGJ3kWhknZX/jsZ4G5GrfqG7DXPTR14K82UqnIimjLn35wKS/UPYfS59k6AJUNfU8VOXHB/W27C7vKU99ujbC4M6QRiBHpI4txIyhixBaKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710394961; c=relaxed/simple; bh=q4opjsWHj+629bWbOdiv1U772HYHuAhm44wPQjZJhmQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bpoY4LnqeqTR/fPZf9w569OSU5vRTvT42fJ7rMljBPxQUkR7sfFAkM5BBhQ8ASV7NB+pOreGzhdxqNzkxJPIjeJrKgcxiFWgYgGUiXzO97xz79VFspAHcR506Ud+7k8LzBVBmX4sOoQmEtGdXUK5CAh1FIDfzhRF6oIs/7KgzQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 32181cd6d7b44b34a71fd0a955640ca6-20240314 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:a2ddc792-8023-47b7-9472-28572f865d8c,IP:10, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-10 X-CID-INFO: VERSION:1.1.37,REQID:a2ddc792-8023-47b7-9472-28572f865d8c,IP:10,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-10 X-CID-META: VersionHash:6f543d0,CLOUDID:879afc84-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240314134234G2IK928B,BulkQuantity:0,Recheck:0,SF:24|17|19|44|64|66|3 8|102,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil, BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 32181cd6d7b44b34a71fd0a955640ca6-20240314 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1457791164; Thu, 14 Mar 2024 13:42:33 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id F2DB9B80758A; Thu, 14 Mar 2024 13:42:32 +0800 (CST) X-ns-mid: postfix-65F28E48-94542613 Received: from [172.30.60.81] (unknown [172.30.60.81]) by node2.com.cn (NSMail) with ESMTPA id 649E3B80758A; Thu, 14 Mar 2024 05:42:32 +0000 (UTC) Message-ID: <4acb6f4e-5d91-462f-a741-d7839593cbdc@kylinos.cn> Date: Thu, 14 Mar 2024 13:42:31 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: megaraid_sas: disabled shared host tagset feature by default Content-Language: en-US To: John Garry , kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, chandrakanth.patil@broadcom.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240311085412.2391632-1-mengfanhui@kylinos.cn> <03afee77-3d5e-44fc-9e03-eec70c9cee2a@oracle.com> From: mengfanhui In-Reply-To: <03afee77-3d5e-44fc-9e03-eec70c9cee2a@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable We are analyzing the kylinos issue and found that the performance degrada= tion caused by patch 103fbf8e4020845e4fcf63819288cedb092a3c91. It will change the working mode of the disk, It will lead to performance = degradation.Currently driver has provision to disable host-wide=20 tags using "host_tagset_enable" module parameter. =E5=9C=A8 2024/3/11 17:30, John Garry =E5=86=99=E9=81=93: > On 11/03/2024 08:54, mengfanhui wrote: >> By default, the host_tagset_enable feature is disabled=EF=BC=8CFio per= formance >> has improved significantly >> >> fio test command: >> sudo fio -filename=3D/fio_test -direct=3D1 -iodepth 32 -thread -rw=3Dw= rite -ioengine=3Dlibaio >> -bs=3D4K -size=3D5120M -runtime=3D600 -numjobs=3D$CPUN -group_reportin= g -name=3D**.result >> **.result >> >> The test data results bw=C2=A0 are as follows=EF=BC=9A >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 v6.8_kernel=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 v6.8_kernel_= disable_host_tagset >> 4k randwrite=C2=A0=C2=A0=C2=A0=C2=A0 375=C2=A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0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 415=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3122 >> >=20 > There are some huge differences in those numbers. Can you find out what= is going on? >=20 >> Signed-off-by: mengfanhui >> --- >> =C2=A0 drivers/scsi/megaraid/megaraid_sas_base.c | 4 ++-- >> =C2=A0 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/= megaraid/megaraid_sas_base.c >> index 3d4f13da1ae8..da19c4c07f2f 100644 >> --- a/drivers/scsi/megaraid/megaraid_sas_base.c >> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c >> @@ -123,9 +123,9 @@ MODULE_PARM_DESC(poll_queues, "Number of queues to= be use for io_uring poll mode >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "High iops queu= es are not allocated &\n\t\t" >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ); >> =C2=A0 -int host_tagset_enable =3D 1; >> +int host_tagset_enable; >> =C2=A0 module_param(host_tagset_enable, int, 0444); >> -MODULE_PARM_DESC(host_tagset_enable, "Shared host tagset enable/disab= le Default: enable(1)"); >> +MODULE_PARM_DESC(host_tagset_enable, "Shared host tagset enable/disab= le Default: disable(0)"); >> =C2=A0 =C2=A0 MODULE_LICENSE("GPL"); >> =C2=A0 MODULE_VERSION(MEGASAS_VERSION); >=20