-
Notifications
You must be signed in to change notification settings - Fork 391
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
sendChunk, releaseChunk latencies #2286
Comments
got a measurment on the releaseChunk just now, equally bad...
|
maybe related to #2221 ? -Because slow consumers (with the DISCARD_OLDEST_DATA setting on publisher & subscriber, and subscriber queueCapacity=256) can't ever trigger this right ? |
I don't think it is related to #2221 since it also effects the allocation not only the release of the chunks. Do the publisher allocate from the same mempool? If this is the case, they compete for the same chunk and there is also high contention which slow down each other. You could try to create multiple mempools with slightly different chunk sizes and let each core allocate from a different mempool. Do you also use the WaitSet/Listener? This might introduce additional latencies due to context switches. How many subscriber does a publisher have? Do you have multiple publisher publishing to the same topic? |
Oh, can you also check with dmesg whether the TSC clock is deactivated? It would also be helpful to check with https://github.com/KDAB/hotspot where the bottleneck lies. It helped us to indemnify why my new shiny AMD Ryzen laptop was slower with iceoryx2 than my 6 year old Intel Laptop. It seems on some AMD CPUs the TSC clock is deactivated which results in a context switch each time |
Thanks for the reply. Yes using the 4 listeners on separate cores in this case receiving high frequency publications (size1). Will try investigate the overhead of that using hotspot... Half of the publishers per core/listener have one subscriber (size3) the other half three subscribers (size2). There's one publisher publishing on a shared topic (alerts) but it does so very infrequent and not during the above measurements. The TSC clock is active on our EPYC CPU. |
The issue with the contention is fixed in iceoryx2. There, each publisher has it's own data segment. With iceoryx2 we try to fix all the issues which user encounter when iceoryx is pushed to its limits. |
I have a PR for a design doc to implement just this: #2140 I implemented it in our fork and haven't had a chance to upstream it. I also solved #2221 in a fork. Upstreaming is a bit trickier to do cleanly. We likely need new experimental untyped API' and it is considerable work. |
For partitioning mempools you can have a look at this PR chain: gpalmer-latai#4 It is out of date with upstream and now there are merge conflicts with the experimental multiple runtime node concept which does some shared memory segment name mangling. |
Required information
Operating system:
Ubuntu 22.04.4 LTS
Compiler version:
clang 18.1.4
Eclipse iceoryx version:
main / b9ab7ee
Observed result or behaviour:
Expected result or behaviour:
sendChunk latencies are way up there (as is tryAllocateChunk in my mind), especially the tails, even though we're sending with ~1000 untyped publishers split over four threads all set to iox::popo::ConsumerTooSlowPolicy::DISCARD_OLDEST_DATA (& historyCapacity = 0)
Conditions where it occurred / Performed steps:
Publishing with high frequency
Additional helpful information
Built with;
-Roudi runs on a dedicated core and the publishers on four dedicated cores
The text was updated successfully, but these errors were encountered: