Skip to content

Add ucm-toolkit for posix aio test&nic monitor and copy bandwidth test#1012

Open
harrisonyhq wants to merge 8 commits into
developfrom
dev-toolkit
Open

Add ucm-toolkit for posix aio test&nic monitor and copy bandwidth test#1012
harrisonyhq wants to merge 8 commits into
developfrom
dev-toolkit

Conversation

@harrisonyhq

Copy link
Copy Markdown
Contributor

Purpose

Add ucm-toolkit as a unified CLI entry for POSIX AIO testing, NIC monitoring, and copy bandwidth testing.

Modifications

  • Added the ucm-toolkit package and CLI entry point.
  • Integrated posix-aio, nic-monitor, and dev-sandbox tooling.
  • Added documentation and install support for toolkit usage.
  • Updated formatting and codespell configuration for toolkit sources.

Test

Comment thread toolkit/src/dev-sandbox/module/aio/aio_impl.cc
Comment thread toolkit/src/dev-sandbox/module/aio/aio_impl.cc
std::vector<const CopyBuffer*> srcBuffers(ctx.nDevice);
std::vector<const CopyBuffer*> dstBuffers(ctx.nDevice);
for (size_t device = 0; device < ctx.nDevice; device++) {
srcBuffers[device] = new HostCopyBuffer{device, ctx.size, ctx.num};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Critical: Memory allocation with new followed by instance.DoCopyBatch(...) without exception handling. If DoCopyBatch throws an exception, the HostCopyBuffer and DeviceCopyBuffer objects will not be deleted, causing memory leaks. Consider wrapping this in a try-catch block or using smart pointers (e.g., std::unique_ptr).

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