Skip to content

pressure: Fix missing IRQ on older kernels#3263

Merged
SuperQ merged 1 commit intomasterfrom
superq/missing_psi_irq
Mar 31, 2025
Merged

pressure: Fix missing IRQ on older kernels#3263
SuperQ merged 1 commit intomasterfrom
superq/missing_psi_irq

Conversation

@SuperQ
Copy link
Member

@SuperQ SuperQ commented Mar 3, 2025

Fix "no data" error on kernels that support some PSI status, but don't yet have IRQ presure metrics. Only report "no data" error if pressure is enabled and no PSI metrics were found.

Fixes: #3259

@SuperQ SuperQ force-pushed the superq/missing_psi_irq branch from 5ed7196 to 17e4c71 Compare March 3, 2025 18:22
@SuperQ SuperQ requested a review from jkroepke March 31, 2025 14:15
Copy link
Member

@jkroepke jkroepke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I see new constants. Maybe it make sense to use them between line 120 and 150 as well.

A side from that, LGTM

Fix "no data" error on kernels that support some PSI status, but don't
yet have IRQ presure metrics. Only report "no data" error if `pressure`
is enabled and no PSI metrics were found.

Fixes: #3259

Signed-off-by: Ben Kochie <superq@gmail.com>
@SuperQ SuperQ force-pushed the superq/missing_psi_irq branch from 17e4c71 to 72ac9eb Compare March 31, 2025 15:42
@SuperQ
Copy link
Member Author

SuperQ commented Mar 31, 2025

Good suggestion on the other const use.

@SuperQ SuperQ merged commit 38d32a3 into master Mar 31, 2025
14 checks passed
@SuperQ SuperQ deleted the superq/missing_psi_irq branch March 31, 2025 15:52
SuperQ added a commit that referenced this pull request Apr 1, 2025
Fix "no data" error on kernels that support some PSI status, but don't
yet have IRQ presure metrics. Only report "no data" error if `pressure`
is enabled and no PSI metrics were found.

Fixes: #3259

Signed-off-by: Ben Kochie <superq@gmail.com>
SuperQ added a commit that referenced this pull request Apr 1, 2025
* [BUGFIX] pressure: Fix missing IRQ on older kernels #3263
* [BUGFIX] Fix Darwin memory leak #3277

Signed-off-by: Ben Kochie <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request Apr 1, 2025
SuperQ added a commit that referenced this pull request Apr 1, 2025
* [BUGFIX] pressure: Fix missing IRQ on older kernels #3263
* [BUGFIX] Fix Darwin memory leak #3277

Signed-off-by: Ben Kochie <superq@gmail.com>
SuperQ added a commit that referenced this pull request Apr 1, 2025
* Avoid memory leak by using value rather than reference. (#3277)

Signed-off-by: Rolf Klemenz <tickez@madnet.ch>

* pressure: Fix missing IRQ on older kernels (#3263)

Fix "no data" error on kernels that support some PSI status, but don't
yet have IRQ presure metrics. Only report "no data" error if `pressure`
is enabled and no PSI metrics were found.

Fixes: #3259

Signed-off-by: Ben Kochie <superq@gmail.com>

* Release v1.9.1

* [BUGFIX] pressure: Fix missing IRQ on older kernels #3263
* [BUGFIX] Fix Darwin memory leak #3277

Signed-off-by: Ben Kochie <superq@gmail.com>

---------

Signed-off-by: Rolf Klemenz <tickez@madnet.ch>
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Rolf Klemenz <tickez@madnet.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In 1.9.0, the Linux pressure collector "fails" if you don't have /proc/pressure/irq

2 participants