Skip to content
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

Speedup ebpf_handle_table_terminate by avoiding acquire/release of lock #3605

Merged
merged 7 commits into from
Jun 25, 2024

Conversation

Alan-Jowett
Copy link
Member

Description

Replace calls to ebpf_handle_close, which acquired and released the handle table lock each time an emulated handle was closed, with a lock acquire and close on each valid handle.

Testing

CI/CD

Documentation

No.

Installation

No.

mtfriesen
mtfriesen previously approved these changes Jun 4, 2024
@Alan-Jowett
Copy link
Member Author

Before:
image

After:
image
image

@mtfriesen
Copy link
Collaborator

Before: image

After: image image

Wow - is this a unit test for this handle table specifically, or all unit tests are accelerated by this?

@Alan-Jowett
Copy link
Member Author

Before: image
After: image image

Wow - is this a unit test for this handle table specifically, or all unit tests are accelerated by this?

This affects every single unit test, adding a few hundred ms delay to it. It ends up modifying thread priority and affinity 1024*2 times per each test, which adds up fast.

mikeagun
mikeagun previously approved these changes Jun 10, 2024
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Jun 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 10, 2024
@saxena-anurag saxena-anurag added this pull request to the merge queue Jun 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 13, 2024
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Jun 13, 2024
dthaler
dthaler previously approved these changes Jun 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 13, 2024
@dthaler
Copy link
Collaborator

dthaler commented Jun 15, 2024

@Alan-Jowett please check unit test failure that caused this to be removed from the merge queue

@Alan-Jowett Alan-Jowett dismissed stale reviews from dthaler, mtfriesen, and mikeagun via 5c32e97 June 17, 2024 20:02
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Jun 25, 2024
Merged via the queue into microsoft:main with commit 83a35d3 Jun 25, 2024
88 checks passed
@Alan-Jowett Alan-Jowett deleted the speedup_handle_table branch June 25, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants