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

Check API command length, allow up to 16384 #339

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

champtar
Copy link
Contributor

When using the API to ban cpus or irqs, the command can easily be longer than 500, so increase the buffer to 16384, which fits ~3250 cpus or irqs, and add a check to log and exit if it is still not enough.

I went the simple route of just bumping the buffer size, tell me if you prefer a recvmsg + realloc loop or ...

When using the API to ban cpus or irqs, the command can easily be longer
than 500, so increase the buffer to 16384, which fits ~3250 cpus
or irqs, and add a check to log and exit if it is still not enough.

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
@nhorman nhorman merged commit f45f62c into Irqbalance:master Jan 31, 2025
10 checks passed
@champtar champtar deleted the api-command-len branch January 31, 2025 15:08
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.

2 participants