Re: [PATCH v2 3/8] genirq: soft_moderation: implement fixed moderation
From: Thomas Gleixner
Date: Tue Nov 18 2025 - 03:34:46 EST
On Tue, Nov 18 2025 at 00:59, Luigi Rizzo wrote:
> On Tue, Nov 18, 2025 at 12:16 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>> There are a couple of other fundamental questions to answer upfront:
>>
>> 1) Is this throttle everything on a CPU the proper approach?
>>
>> To me this does not make sense. The CPU hogging network adapter or
>> disk drive has no business to delay low frequency interrupts,
>> which might be important, just because.
>
> while there is some shared fate, a low frequency source (with interrupts
> more than the adaptive_delay apart) on the same CPU as a high frequency
> source, will rarely if ever see any additional delay:
> the first interrupt from a source is always served right away,
> there is a high chance that the timer fires and the source
> is re-enabled before the next interrupt from the low frequency source.
I understand that from a practical point of view it might not make a real
difference, but when you look at it conceptually, then the interrupt
which causes the system to slow down is the one you want to switch over
into polling mode. All others are harmless as they do not contribute to
the overall problem in a significant enough way.
As a side effect of that approach the posted MSI integration then mostly
falls into place especially when combined with immediate masking.
Immediate masking is not a problem at all because in reality the high
frequency interrupt will be masked immediately on the next event (a few
microseconds later) anyway.
Thanks,
tglx