Repository navigation
Set default for tx_page_frees_per_sec in homa_tx_pool_init - #15
Closed
Stuartwastaken wants to merge 1 commit into
Closed
Stuartwastaken wants to merge 1 commit into
Stuartwastaken wants to merge 1 commit into
Conversation
The default of 1000 (skb_page_frees_per_sec) was dropped when homa_skb.c was replaced by homa_tx_pool.c. With the field left at 0, homa_tx_pool_gc never returns pages from the tx page pools. In the stripped code there is no sysctl to set it.
Stuartwastaken
force-pushed
the
fix/tx-pool-frees-default
branch
from
November 18, 2026 01:23
4038cdc to
ae8d4d1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tx_page_frees_per_sec is never assigned, so it stays at 0 after homa_init and homa_tx_pool_gc computes release_max = 0: pages are never returned from the tx page pools, and each NUMA pool can hold up to HOMA_TX_POOL_LIMIT pages until the module is unloaded. The old homa_skb_init set skb_page_frees_per_sec = 1000, but that line didn't carry over to homa_tx_pool_init in d00a93b. In the unstripped build the sysctl can still set it; in the stripped code there's no way to.
This restores 1000 next to the tx_page_pool_min_kb default. homa_tx_pool_init__success now checks the value; it fails without the change.