Commit Graph

4 Commits (7dbae32eda0118fefccee25c53134242d0df8d76)

Author SHA1 Message Date
Jeff Lucovsky f8c9390ca3 stream/cache: Return sessions to correct pool
Issue: 5563

This commit fixes the release of TCP resources. The sessions were being
returned to the segment thread pool instead of the sessions pool.
3 years ago
Philippe Antoine 62352ad030 src: fix remaining cppclean warnings 4 years ago
Philippe Antoine 1f066cbbe8 unittest: fix unneeded includes as per cppclean
Especially because there is conditional inclusion from a header
4 years ago
Victor Julien 235f369ab9 stream: reduce pool locking overhead
Add thread local cache to avoid locking overhead for ssns and segments.

A thread will return segments/ssns to a local cache first, and if that
is full, to a return queue where the actual return to the pool returns
a batch, to amortize locking overhead.

Adds segment and session pool/cache counters to see where how effective
the cache is.
4 years ago