Skip to content

Set default for tx_page_frees_per_sec in homa_tx_pool_init - #15

Closed
Stuartwastaken wants to merge 1 commit into
mainfrom
fix/tx-pool-frees-default
Closed

Stuartwastaken wants to merge 1 commit into
mainfrom
fix/tx-pool-frees-default

Conversation

@Stuartwastaken

Copy link
Copy Markdown
Owner

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.

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.
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.

1 participant