Skip to content

private ctx is more expensive? #1164

Answered by davidozog
zhongchen530 asked this question in Q&A
Discussion options

You must be logged in to vote

I think the specification does not go into specifics regarding the resource intensity of contexts. This offers some freedom to the OpenSHMEM library implementations. However, in practice, I think the intent was for SHMEM_CTX_PRIVATE to indicate that a transmit context (which often corresponds to an underlying hardware resource in multi-queue NICs) will not be accessed simultaneously by other threads. For example, this might mean the transport layer would be able to remove some costly locking around the context (as in SOS).

So yes, I'd say private contexts are more resource intensive in SOS, and in general. When it comes to performance measurement... not many libfabric providers have great…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zhongchen530
Comment options

@davidozog
Comment options

@zhongchen530
Comment options

Answer selected by davidozog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants