Skip to content

UCT/IB/MLX5/GDAKI: Added knob to control retaining inactive ctx.#11348

Open
rakhmets wants to merge 2 commits intoopenucx:masterfrom
rakhmets:topic/gdaki-do-not-retain-inactive-ctx-2
Open

UCT/IB/MLX5/GDAKI: Added knob to control retaining inactive ctx.#11348
rakhmets wants to merge 2 commits intoopenucx:masterfrom
rakhmets:topic/gdaki-do-not-retain-inactive-ctx-2

Conversation

@rakhmets
Copy link
Copy Markdown
Contributor

@rakhmets rakhmets commented Apr 15, 2026

What?

Added UCX_IB_GDA_RETAIN_INACTIVE_CTX knob to control retaining inactive CUDA primary device context at RC_GDA component creation.

Why?

It increases start up time if there is no active CUDA primary device context at RC_GDA component creation. As the context is required to check DMA_BUF and UAR support.
It can also consume all the memory when running multiple processes on a system with a single GPU. As each process creates the context.

@rakhmets rakhmets force-pushed the topic/gdaki-do-not-retain-inactive-ctx-2 branch from bdb5f74 to 518337c Compare April 15, 2026 19:02
@rakhmets rakhmets force-pushed the topic/gdaki-do-not-retain-inactive-ctx-2 branch from 518337c to 47d7345 Compare April 15, 2026 19:05
@rakhmets rakhmets marked this pull request as ready for review April 16, 2026 08:34
@rakhmets rakhmets force-pushed the topic/gdaki-do-not-retain-inactive-ctx-2 branch from 8c54f9c to 9aea8e3 Compare April 16, 2026 15:06
@rakhmets rakhmets requested a review from ofirfarjun7 April 17, 2026 09:41
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