-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#19134] YSQL, ASH: Setting ASH circular buffer size based on the num…
…ber of cores Summary: The default value of the guc/gflag yb_ash_circular_buffer_size is changed to zero. If the user doesn't specify the value of guc/gflag, this is overridden based on the number of cores available on the machine. If the user specifies the value, then the circular buffer is created with the size the user provides. The defaults are - - 32 MiB for 1-2 cores - 64 MiB for 3-4 cores - 128 MiB for 5-8 cores - 256 MiB for 9-16 cores - 512 MiB for 17-32 cores - 1024 MiB for > 32 cores Jira: DB-7932 Test Plan: Manually tested In mac ``` $ sysctl -n hw.ncpu 10 $ bin/yb-ctl start --tserver_flags='"allowed_preview_flags_csv=ysql_yb_enable_ash,ysql_yb_ash_enable_infra",ysql_yb_ash_enable_infra=true,ysql_yb_enable_ash=true' yugabyte=# show yb_ash_circular_buffer_size; yb_ash_circular_buffer_size ----------------------------- 256MB $ bin/yb-ctl restart --tserver_flags='"allowed_preview_flags_csv=ysql_yb_enable_ash,ysql_yb_ash_enable_infra",ysql_yb_ash_enable_infra=true,ysql_yb_enable_ash=true,ysql_yb_ash_circular_buffer_size=10240' yugabyte=# show yb_ash_circular_buffer_size; yb_ash_circular_buffer_size ----------------------------- 10MB ``` In alma linux 8 ``` $ nproc 4 $ bin/yb-ctl start --tserver_flags='"allowed_preview_flags_csv=ysql_yb_enable_ash,ysql_yb_ash_enable_infra",ysql_yb_ash_enable_infra=true,ysql_yb_enable_ash=true' yugabyte=# show yb_ash_circular_buffer_size; yb_ash_circular_buffer_size ----------------------------- 64MB $ bin/yb-ctl restart --tserver_flags='"allowed_preview_flags_csv=ysql_yb_enable_ash,ysql_yb_ash_enable_infra",ysql_yb_ash_enable_infra=true,ysql_yb_enable_ash=true,ysql_yb_ash_circular_buffer_size=10240' yugabyte=# show yb_ash_circular_buffer_size; yb_ash_circular_buffer_size ----------------------------- 10MB ``` Reviewers: jason, amitanand, hbhanawat Reviewed By: jason Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D37713
- Loading branch information
1 parent
38d8ae8
commit a180bef
Showing
7 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters