Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net class: split out attribute parser and export it #511

Merged
merged 1 commit into from
May 5, 2023

Conversation

dcbw
Copy link
Contributor

@dcbw dcbw commented May 3, 2023

Can be used by other projects (eg node_exporter) to read a single sysfs file rather than all of them at once, which can cause lock contention in the kernel as many sysfs net files grab the RTNL lock.

Immediate consumer: prometheus/node_exporter#2669

@dcbw
Copy link
Contributor Author

dcbw commented May 4, 2023

@discordianfish is this what you were thinking of?

Can be used by other projects (eg node_exporter) to read a single
sysfs file rather than all of them at once, which can cause
lock contention in the kernel as many sysfs net files grab the
RTNL lock.

Signed-off-by: Dan Williams <dcbw@redhat.com>
@dcbw dcbw force-pushed the ParseSysfsNetClassAttribute branch from 7b879a0 to 03e2a93 Compare May 4, 2023 14:56
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Thanks

@SuperQ SuperQ merged commit 5fce84b into prometheus:master May 5, 2023
8 checks passed
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.

None yet

3 participants