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

Improve Thread Creation Logic #4531

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Improve Thread Creation Logic #4531

merged 2 commits into from
Sep 9, 2024

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Sep 5, 2024

Description

This PR improves various parts of thread creation in MsQuic. Most notably it adds the ability for apps to configure usage of high priority threads (not enabled by default). It also fixes/improves setting the ideal processor on systems with more than 64 procs in user mode. Also, it improves the default flags used in various places. Finally, it adds logs for various failures in thread creation.

Testing

Manual secnetperf over localhost.
CI/CD

Documentation

N/A

@nibanks nibanks requested a review from a team as a code owner September 5, 2024 12:51
@nibanks nibanks added Area: API Area: Logging Bug: Platform A code bug in platform/TLS specific code. labels Sep 5, 2024
@ami-GS
Copy link
Contributor

ami-GS commented Sep 5, 2024

Is the fix for only winuser?

@nibanks
Copy link
Member Author

nibanks commented Sep 5, 2024

Is the fix for only winuser?

Some of the fixes were.

ami-GS
ami-GS previously approved these changes Sep 5, 2024
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 85.12%. Comparing base (c0a739a) to head (7353024).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/core/worker.c 50.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4531      +/-   ##
==========================================
- Coverage   86.24%   85.12%   -1.12%     
==========================================
  Files          56       56              
  Lines       15520    15527       +7     
==========================================
- Hits        13385    13218     -167     
- Misses       2135     2309     +174     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ProjectsByJackHe
Copy link
Contributor

ProjectsByJackHe commented Sep 6, 2024

Looks really good!

Just 1 question.

Where did we get the confidence that there won't be any breaking changes in the "Scavenger" or "Real time" execution profile modes?

At least according to CodeCov bot those paths weren't exercised.

@nibanks
Copy link
Member Author

nibanks commented Sep 7, 2024

Looks really good!

Just 1 question.

Where did we get the confidence that there won't be any breaking changes in the "Scavenger" or "Real time" execution profile modes?

At least according to CodeCov bot those paths weren't exercised.

AFAIK no one uses those execution modes, so we should be fine.

@nibanks nibanks enabled auto-merge (squash) September 9, 2024 12:50
@nibanks nibanks merged commit add8a3a into main Sep 9, 2024
468 of 471 checks passed
@nibanks nibanks deleted the thread-creation branch September 9, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: API Area: Logging Bug: Platform A code bug in platform/TLS specific code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants