Skip to content

Question about memory domain rcache lru spin lock #9831

Answered by yosefe
huzhijiang asked this question in Q&A
Discussion options

You must be logged in to vote

Some of our use cases(tag zcopy) always hit the following spin lock code which seems to be a performance bottleneck:

ucs_spin_lock(&rcache->lru.lock);

It seems since the lock is used for portecting per-context memory domain rcache lru, all workers belong to one ucx context will compete with each other on it. So we tried to split ucx context to let each worker has its own one, and the lock can be omit. But we are not sure if it is the right way to do (ucx context and worker will be as 1:1 mapping). Any ideas?

Thanks!

Can you pls post the backtrace of this lock where you see contention?
Anyway, it should be ok to create mul…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by huzhijiang
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@huzhijiang
Comment options

Comment options

You must be logged in to vote
1 reply
@huzhijiang
Comment options

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