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

core.packet: Extend max packets from 100K to 1M #890

Merged
merged 1 commit into from
May 12, 2016

Conversation

lukego
Copy link
Member

@lukego lukego commented Apr 22, 2016

Packets are allocated dynamically on demand and this is only an artifical limit of "more than anybody should ever need" for catching unbounded allocations (leaks). (The limit also serves to make the freelist simple i.e. a fixed-size array.)

The previous value of 100,000 is too low to serve its purpose: it is reasonable to allocate more than 100,000 packet buffers when managing many network receive queues and wanting to avoid packet drops.

See discussion at: #882 (comment)

Packets are allocated dynamically on demand and this is only an
artifical limit of "more than anybody should ever need" for catching
unbounded allocations (leaks). (The limit also serves to make the
freelist simple i.e. a fixed-size array.)

The previous value of 100,000 is too low to serve its purpose: it is
reasonable to allocate more than 100,000 packet buffers when managing
many network receive queues and wanting to avoid packet drops.

See discussion at:
snabbco#882 (comment)
@eugeneia eugeneia self-assigned this Apr 26, 2016
@eugeneia eugeneia merged commit b04ff7c into snabbco:master May 12, 2016
takikawa pushed a commit to takikawa/snabb that referenced this pull request Aug 5, 2017
takikawa pushed a commit to takikawa/snabb that referenced this pull request Aug 5, 2017
takikawa pushed a commit to takikawa/snabb that referenced this pull request Sep 4, 2017
raj2569 pushed a commit to raj2569/snabb that referenced this pull request Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants