From: John Meneghini <jmeneghi@redhat.com>
To: Sagar.Biradar@microchip.com,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: 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: Thu, 13 Feb 2025 17:03:50 -0500 [thread overview]
Message-ID: <8433b8b8-bb9a-43e0-a760-d8745d28d0d9@redhat.com> (raw)
In-Reply-To: <PH7PR11MB757026166DDB8068830AE420FAFF2@PH7PR11MB7570.namprd11.prod.outlook.com>
> From: Martin K. Petersen
> Sent: Wednesday, February 12, 2025 6:56 PM
> [You don't often get email from "martin.petersen@oracle.comjames.bottomley@hansenpartnership.comjmeneghi"@redhat.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Appears to still be a problem. I'll work with Sagar and see if we can clean this up.
>> Add a new modparam "aac_cpu_offline_feature" to control CPU offlining.
>> By default, it's disabled (0), but can be enabled during driver load
>
>> with:
>> insmod ./aacraid.ko aac_cpu_offline_feature=1
>
> We are very hesitant when it comes to adding new module parameters. And
> why wouldn't you want offlining to just work? Is the performance penalty
> really substantial enough that we have to introduce an explicit "don't
> be broken" option?
Yes, this is something that we debated about internally, before asking Sagar to send this patch.
I agree that it would be much better if we simply fix the driver and make offline_cpu suport work.
The modparam was added as a compromise, to allow current users and customers who do NOT care about
cpu_offline support to keep the increased performance they want. People generally complain any
time there is a performance regression.
The current upstream driver is more or less unchanged when the mod param is of off, which is the default.
So upstream users will see no performance regression... but don't try to offline a cpu or you will see
a panic. This is the state of the current upstream driver.
> Thank you for your time to review and giving your valuable opinion.
> There are two reasons why I chose the modparam way
> 1) As you rightly guessed - the performance penalty is high when it comes to few RAID level configurations - which is not desired
> 2) Not a lot of people would use CPU offlining feature as part of their regular usage. This is mostly for admin purposes.
>
> These two reasons made me opt for the modparam.
> We and our folks at RedHat did venture into trying few other options - but this seemed like a nice fit.
Another option we thought about was making this a kconfig option. We have a patch that replaces the modparam with
a Kconfig option.
However, I agree it would be better to just fix the driver, performance impact notwithstanding, and ship it. For
my part I'd rather have a correctly functioning driver, that's slower, but doesn't panic.
It's really up to the upstream community. We need to understand what they want.
/John
next prev parent reply other threads:[~2025-02-13 22:03 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 [this message]
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
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=8433b8b8-bb9a-43e0-a760-d8745d28d0d9@redhat.com \
--to=jmeneghi@redhat.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=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mpatalan@redhat.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