public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question on __torture_rt_boost() else clause
@ 2023-08-22  3:12 Paul E. McKenney
  2023-08-22 16:18 ` Joel Fernandes
  0 siblings, 1 reply; 4+ messages in thread
From: Paul E. McKenney @ 2023-08-22  3:12 UTC (permalink / raw)
  To: joel; +Cc: linux-kernel

Hello, Joel!

A quick question for you...

I am doing catch-up additions of locktorture module parameters
to kernel-parameters.txt, and came across rt_boost_factor.  The
multiplication by cxt.nrealwriters_stress in the !rt_task(current)
then-clause makes sense:  No matter how many writers you have, the
number of boost operations per unit time remains roughly constant.
But I am having some difficulty rationalizing a similar multiplication
in the else-clause.  That would seem to leave boosting in effect for
longer times the more writers there were.

Is that the intent?

Also, I am rationalizing the choice of 2 as default for rt_boost by
noting that "mutex" and "ww_mutex_lock" don't do boosting and that
preemption-disabling makes non-RT spinlocks immune from priority
inversion.  Is this what you had in mind, or am I off in the weeds here?

I am putting my best guess in the patch, and am including you on CC.

						Thanx, Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-22 18:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22  3:12 Question on __torture_rt_boost() else clause Paul E. McKenney
2023-08-22 16:18 ` Joel Fernandes
2023-08-22 17:46   ` Paul E. McKenney
2023-08-22 18:52     ` Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox