Skip to content

pktgen: increase buffer depth & housekeeping freq#8588

Open
tristan-carter wants to merge 1 commit intofiredancer-io:mainfrom
tristan-carter:tristan-carter/pktgen-stall-fix
Open

pktgen: increase buffer depth & housekeeping freq#8588
tristan-carter wants to merge 1 commit intofiredancer-io:mainfrom
tristan-carter:tristan-carter/pktgen-stall-fix

Conversation

@tristan-carter
Copy link
Contributor

@tristan-carter tristan-carter commented Mar 1, 2026

Replicates the shred tile's house keeping frequency (shown here) and link ring depth (shown here)to solve pktgen running out of producer credits near continuously thus stalling pktgen tx to the net tile.

Copilot AI review requested due to automatic review settings March 1, 2026 01:35
@tristan-carter tristan-carter changed the title Increase pktgen link ring depth and increase pktgen housekeeping freq pktgen: increase buffer depth & housekeeping freq Mar 1, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the fddev pktgen topology/tile tuning to reduce pktgen stalls caused by running out of producer credits when transmitting into the net tile.

Changes:

  • Increased pktgen_out link ring depth to 32768 to provide more producer credits to pktgen.
  • Increased pktgen stem housekeeping frequency by setting STEM_LAZY to ~384µs (matching shred tile behavior).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/app/shared_dev/commands/pktgen/pktgen.c Increases pktgen_out link depth to reduce credit exhaustion/backpressure into net tile.
src/app/shared_dev/commands/pktgen/fd_pktgen_tile.c Adjusts STEM_LAZY to run housekeeping more frequently to help prevent prolonged credit starvation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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