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

Add max thread count options to CMake build #9883

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

JosiahWI
Copy link
Contributor

This adds an option that defaults to 4096: TS_MAX_EVENT_THREADS, and an option that defaults to 3072: TS_MAX_THREADS_PER_TYPE.

This adds an option that defaults to 4096: TS_MAX_EVENT_THREADS,
and an option that defaults to 3072: TS_MAX_THREADS_PER_TYPE.
@JosiahWI JosiahWI self-assigned this Jun 20, 2023
@JosiahWI JosiahWI added Build work related to build configuration or environment CMake work related to CMakes scripts or issues Threads labels Jun 20, 2023
@JosiahWI JosiahWI added this to the 10.0.0 milestone Jun 20, 2023
@JosiahWI
Copy link
Contributor Author

JosiahWI commented Jun 20, 2023

There is a discrepancy between the default MAX_THREADS_PER_TYPE value in the CMake and autotools builds and in I_EventProcessor.h. The former has a default value of 3072, and the latter has a default value of 3071.

@JosiahWI JosiahWI marked this pull request as ready for review June 20, 2023 16:53
@JosiahWI JosiahWI requested a review from cmcfarlen June 20, 2023 16:53
This renames the options by removing the TS_ prefix to make it
clear they are options, and uses the TS_ for internal variables
of the same name as the defines that are set to the option values.
@bneradt bneradt merged commit 1e454d7 into apache:master Jun 20, 2023
@JosiahWI JosiahWI deleted the feat/cmake-thread-options branch June 22, 2023 16:19
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master: (90 commits)
  doc: fix the internal libraries section formatting (apache#9879)
  Add max thread count options to CMake build (apache#9883)
  Add yaml libs reference to HTTP proxy test suite. Closes apache#9882 (apache#9885)
  Add transparent proxy support to CMake build (apache#9884)
  Check for symbol IP_TOS in CMake build (apache#9870)
  RAT license fix: renamed_records.out -> .gold (apache#9876)
  Add traffic_wccp to CMake build (apache#9867)
  cleanup cast warning with reinterpret_cast (apache#9866)
  Fixes Coverity 1513058, introduced with apache#9643 (apache#9860)
  add some missing libs for clang (apache#9865)
  Add support for libunwind in CMake build (apache#9862)
  Add option to build regression tests (apache#9863)
  Fix crash on config reload with BoringSSL (apache#9840)
  Check for SO_PEERCRED in CMake build (apache#9855)
  Check for SO_MARK in CMake build (apache#9854)
  Clean up UnixNetProcessor entanglements. (apache#9825)
  Remove unneeded DEBUG conditionals. (apache#9849)
  Add option to enable fast SDK in CMake build (apache#9853)
  Add support for POSIX Cap in CMake build (apache#9852)
  WCCP: remove ts::Buffer (apache#9824)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build work related to build configuration or environment CMake work related to CMakes scripts or issues Threads
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants