Skip to content

Conversation

@traeak
Copy link
Contributor

@traeak traeak commented Jan 17, 2024

This removes an extra snippet of code added with the libswoc implementation of IntrusiveHashMap which causes a noticeable performance hit (expansion of the critical section) when inserting items into the session pool. Specific test case used saw on average an increase of about 6x in the HttpSessionManager critical sections.

The change introduced with libswoc (not documented in any checkin) appends the new item to the bucket list, which was not done with the tscore (ats92) version.

@traeak traeak self-assigned this Jan 17, 2024
@traeak traeak added the libswoc label Jan 17, 2024
@traeak traeak added this to the 10.0.0 milestone Jan 17, 2024
Copy link
Contributor

@ywkaras ywkaras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before Alan's passing, the code in the lib/swoc tree was copied from labeled version in https://github.com/SolidWallOfCode/libswoc . We have to decide where the maintained source is going to be, to make PRs against it.

@bneradt bneradt linked an issue Jan 22, 2024 that may be closed by this pull request
@ywkaras ywkaras dismissed their stale review January 22, 2024 23:23

To not block fix.

Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that this block was added in libswoc and wasn't in tscore. I'm sure this was added for a reason, but it since it introduces serious origin side connection problems, I'm OK with backing it out at least for now.

@traeak traeak merged commit dc8d761 into apache:master Jan 24, 2024
phongn pushed a commit to phongn/trafficserver that referenced this pull request Feb 1, 2024
@bneradt bneradt mentioned this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

9.x -> 10.x: Increase in Origin Connection Counts

4 participants