Skip to content

Conversation

@PalakTripathi1
Copy link
Contributor

Enhance rds.py to report RDMA restrack resource usage (PD, CQ, QP, CM_ID, MR, CTX, SRQ) per RDS interface. This is based on the xa-for-each traversal of res[] arrays in struct ib_device. Useful for visibility into actual RDMA object usage and correlating with rdma resource show script

Enhance rds.py to report RDMA restrack resource usage (PD, CQ, QP,
CM_ID, MR, CTX, SRQ) per RDS interface. This is based on the
xa-for-each traversal of res[] arrays in struct ib_device.
Useful for visibility into actual RDMA object usage and correlating
with rdma resource show script

Signed-off-by: Palak Tripathi <[email protected]>
@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

  • PR author: PalakTripathi1

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Jul 10, 2025
Copy link

@anandakhoje anandakhoje left a comment

Choose a reason for hiding this comment

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

Overall, as "rdma res show" tracks all RDMA resources and not only of that being used by RDS devices, this should be more non-RDS specific. Provided comments inline.

Copy link

@anandakhoje anandakhoje left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Reviewed-by: Anand Khoje <anand.a.khoje.oracle.com>

Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

Just a few small changes requested, otherwise this looks quite good, thank you!

@brenns10
Copy link
Member

One last thing, check the pre-commit outputs here and ensure that the hooks pass. You can either apply the changes shown in the output, or you can setup pre-commit according to the developer workflow doc, and use pre-commit run --all-files to get it to apply the changes automatically.

@brenns10
Copy link
Member

Another thing - can you file a bug for these RDS improvements (targetting "next" -- this is also covered in the workflow doc). Then include the "Orabug: " statement in the commit messages? It can be the one Orabug for both this and #177.

Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

So, pre-commit still reports formatting issues, but I'm willing to approve this PR and fix-up those myself.

@brenns10 brenns10 merged commit 928e8ae into oracle-samples:main Jul 23, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants