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

Need Assistance | Configuring Socket Buffer Size for nfacctd to Handle High Traffic Volumes #845

Open
smit1682 opened this issue Dec 26, 2024 · 1 comment

Comments

@smit1682
Copy link

Hello @paololucente,

I am using the nfacctd executable to parse NetFlow/IPFIX traffic. In one of our networks, we are receiving a high volume of traffic, exceeding 50,000 FPS. This load causes the core process to consume significant CPU and memory resources as it tries to parse all incoming flows.

To manage this situation, I need a configuration parameter to control the socket buffer size used by nfacctd. I am okay with dropping excess packets if the incoming traffic rate exceeds the buffer capacity.

Is there a parameter available in nfacctd that allows me to set the size of the socket buffer? If so, could you provide guidance or examples for configuring this?

Thank you!

Version
NetFlow Accounting Daemon, nfacctd 1.7.9 [RELEASE]

@msune
Copy link
Contributor

msune commented Jan 10, 2025

Is this helping?

Nevertheless, if what you want is to limit CPU or memory usage, you can probably use cgroups/nice to control the maximum amount of resources the process can use, or use a the nfacctd docker container with cpu and memory limits (which uses cgroups under the hood).

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

No branches or pull requests

2 participants