Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ucc_context_create seems to take a constant time #881

Open
nirandaperera opened this issue Nov 17, 2023 · 1 comment
Open

ucc_context_create seems to take a constant time #881

nirandaperera opened this issue Nov 17, 2023 · 1 comment

Comments

@nirandaperera
Copy link

Hi, I am trying to see the overhead of creating a ucc communication context in a 4 node cluster with 64 slots/node.
AVERAGE of create ctx and AVERAGE of destroy ctx

This is a graph of calling ucc_context_create and ucc_context_destroy for 50 iterations and the average time spent on each operation. I was surprised to see that context creation takes constant time across the 4 nodes. Is this the expected behavior?

I measured the timings for the oob allgather operation (time between when the request was created and when the request completes) and it doesn't come close to this 3s mark. Can anyone shed some light on this?

@Sergei-Lebedev
Copy link
Contributor

This is a graph of calling ucc_context_create and ucc_context_destroy for 50 iterations and the average time spent on each operation. I was surprised to see that context creation takes constant time across the 4 nodes. Is this the expected behavior?

ucc_context create time depends on multiple factors, e.g. what UCC TLs you are using and whether it's global context or not. It's expected if you run with TL UCP only, since we don't connect endpoints in advance and instead connection between peers is established only if it's really needed.

I measured the timings for the oob allgather operation (time between when the request was created and when the request completes) and it doesn't come close to this 3s mark. Can anyone shed some light on this?

Again it depends on TLs being used. Context create for TL UCP includes initializing UCP context and UCP worker.

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

No branches or pull requests

2 participants