From: John Garry <john.g.garry@oracle.com>
To: Sagar.Biradar@microchip.com, jmeneghi@redhat.com, hare@suse.de,
martin.petersen@oracle.com, pheidologeton@protonmail.com,
kernel@roadkil.net, maokaman@gmail.com
Cc: James.Bottomley@HansenPartnership.com,
linux-scsi@vger.kernel.org, thenzl@redhat.com,
mpatalan@redhat.com, Scott.Benesh@microchip.com,
Don.Brace@microchip.com, Tom.White@microchip.com,
Abhinav.Kuchibhotla@microchip.com
Subject: Re: [PATCH] [v2]aacraid: Reply queue mapping to CPUs based on IRQ affinity
Date: Tue, 25 Mar 2025 01:54:42 +0000 [thread overview]
Message-ID: <01aaa273-f068-4013-b4ce-25cab5ad7d4f@oracle.com> (raw)
In-Reply-To: <PH7PR11MB7570A7E66942E50167648A56FAA72@PH7PR11MB7570.namprd11.prod.outlook.com>
On 25/03/2025 00:16, Sagar.Biradar@microchip.com wrote:
>>>>
>>>> I've added the original authors of Bugzilla 217599[1] to the cc list to
>>>> get their attention and review.
>>>>
> Historically, the aacraid driver relied on the can_queue member of the scsi_host structure to determine the total number of cmds the FW could manage.
> With FW supporting 32 queues, each capable of handling 32 commands, the total command capacity was effectively 1024 (32*32).
>
> This limit is a HW/FW limitation specific to the aacraid controller, which restricts each queue to a maximum of 32 cmds.
>
> Starting from kernel version 6.4, the introduction of the map queue mechanism treated all queues as having the same capacity as can_queue, inadvertently exceeding the 1024 command limit.
> Consequently, relying solely on scsi_host->can_queue became unfeasible.
> To address this, the patch introduces logic to dynamically assign can_queue based on the number of available MSIX vectors (i.e., the number of queues) multiplied by 32.
I have not read all this thread, but ....
in case unknown, if you set shost->host_tagset when setting
shost->nr_hw_queues > 1, this means that the total queue depth of the
adapter (from block layer PoV) == each HW queue depth == shost->can_queue
If you don't set shost->host_tagset, then total queue depth (from block
layer PoV) is shost->can_queue * shost->nr_hw_queues
> This approach ensures can_queue correctly reflects the hardware’s total command capacity, preventing issues caused by exceeding the 1024 limit.
> But this change causes a performance drop in some configurations.
> It's important to mention that the patch does not modify the queue depth itself but rather aligns can_queue with the hardware's fixed limit.
>
> For comparison, competitor controllers typically support up to 256 commands per queue with an overall capacity of 8192 (256*32) cmds or more.
> While the aacraid controller's design has stricter hardware constraints, the patch ensures it functions optimally within these limits and hence the reduced performance.
>
> Conclusion :
> A generic fix is not practical - given the performance drop.
> As John Meneghini suggested, instead of a modparam we could embed the same fix inside a kconfig option.
>
> Should I submit a new version with the kconfig option?
next prev parent reply other threads:[~2025-03-25 1:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-30 17:33 [PATCH] [v2]aacraid: Reply queue mapping to CPUs based on IRQ affinity Sagar Biradar
2025-02-10 17:20 ` John Meneghini
2025-02-10 20:24 ` John Meneghini
2025-02-13 2:56 ` Martin K. Petersen
2025-02-13 21:26 ` Sagar.Biradar
[not found] ` <PH7PR11MB7570E9E65153C48BA7C5679EFAFF2@PH7PR11MB7570.namprd11.prod.outlook.com>
2025-02-13 21:31 ` Sagar.Biradar
2025-02-13 22:03 ` John Meneghini
2025-02-13 22:21 ` John Meneghini
2025-02-21 2:38 ` Martin K. Petersen
2025-02-24 21:15 ` John Meneghini
2025-03-10 16:44 ` Hannes Reinecke
2025-03-11 1:16 ` Martin K. Petersen
2025-03-12 1:52 ` John Meneghini
2025-03-25 0:16 ` Sagar.Biradar
2025-03-25 1:54 ` John Garry [this message]
2025-04-17 16:02 ` Sagar.Biradar
2025-04-22 6:42 ` Hannes Reinecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01aaa273-f068-4013-b4ce-25cab5ad7d4f@oracle.com \
--to=john.g.garry@oracle.com \
--cc=Abhinav.Kuchibhotla@microchip.com \
--cc=Don.Brace@microchip.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=Sagar.Biradar@microchip.com \
--cc=Scott.Benesh@microchip.com \
--cc=Tom.White@microchip.com \
--cc=hare@suse.de \
--cc=jmeneghi@redhat.com \
--cc=kernel@roadkil.net \
--cc=linux-scsi@vger.kernel.org \
--cc=maokaman@gmail.com \
--cc=martin.petersen@oracle.com \
--cc=mpatalan@redhat.com \
--cc=pheidologeton@protonmail.com \
--cc=thenzl@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox