Repository navigation
Conversation
|
I could build and run this PR on Mac with TBB installed via homebrew. The license of TBB is Apache License 2.0 ( https://github.com/01org/tbb/blob/tbb_2018/LICENSE ). It's OK. |
|
The docs of tbb::concurrent_unordered_map says
So, we can concurrently insert and find connection id if there're no on going erasure, right? |
|
@masaori335 Awesome! Thanks for your confirmation! |
|
@zizhong Sounds great! In many cases, multiple QUICPacketHandler on UDP threads can access this map concurrently. |
| # | ||
| TS_CHECK_TBB | ||
| if test "x${enable_tbb}" != "xyes"; then | ||
| AC_MSG_ERROR([Cannot find tbb library. Configure --with-tbb=DIR]) |
There was a problem hiding this comment.
This check shouldn't cause an error but QUIC should be enabled only if TBB is available (same approach as the check for TLS 1.3) until we use it in core.
|
@zwoop Any idea why this PR doesn't have test results on CI? (I know it doesn't run tests for QUIC code but it have ensured that code is formatted well and changes don't break build without TLS 1.3.) |
|
I am good with this. However we will want to test with TBB alloc now as these data structures have been optimized for speed with the TBB allocators. Just another options the memory allocator. |
|
This is a pretty significant change, and I don' think we should land this without further considerations.
Also, big changes like including / replacing core pieces of ATS ought to be done carefully, and with appropriate performance benchmarks and metrics. Of which we have none (or very little). |
|
I agree with @zwoop. This is a huge dependency to land in such a manner. We still have a dependency on TCL for a similar use case. We have also actively attempted to lower dependencies on large generic libraries like this, ie Boost. We should very carefully consider this course of action. |
|
@zizhong @masaori335 I presume the table is never cleaned because it gets in toto when the connection is terminated? |
|
I don't disagree with getting data. All I can say is the difference with TBB and Boost is that boost is a random set of stuff to solve problem, not concerned with speed or efficiency. TBB is all about standards and performance. Given @zwoop concerns about performance, the people that work on this care about performance as TBB is used in all the Performance libraries as MKL, OpenMP, and others from Intel. Ideally we can remove TCL depends as TBB as a collection to solve the TCL hash table problem. We can get the source as add it to our tree is we need to.. it is all apache license |
|
@SolidWallOfCode Correct. We don't need to be worried about the cleanup. The And yes, I couldn't agree more that we need to be super careful about adding this kind of large dependency to ATS. Thanks, @zwoop, @PSUdaemon for bringing that up. |
Hmm, I agree basically, but the scenario is little bit different from my understanding.
That is on our todo list. We need to erase the entry, but we haven't implemented yet. ( One of the reasons is |
|
Oh. @masaori335 is right. We never clean up the |
|
updated the PR as @maskit suggested. |
|
This PR hasn't been updated in more then 2 months and I am closing out PRs that haven't had any updates. I don't think we want to pull in TBB at this point. |
trying to fix #2478.
Introducing a new dependency, tbb, for ATS. build works for rhel7. didn't test on other systems. First time modifying automake scripts. Please feel free to leave your ideas and suggestions! @maskit @masaori335 @bryancall @zwoop @SolidWallOfCode
cc @sidhuagarwal