提交 410ed0ca 编写于 作者: W willwolf

atune: add csv and yaml for tuning

上级 5aa4a8a2
此差异已折叠。
Category,"name
(Parameter to be adjusted)","desc
(Parameter description)","get
(Command for querying parameter values.)","set
(Command for setting parameter values)",needrestart(Whether require restart or not),type (discrete/continuous),"options
(For the discrete type, use"";""to split different values.)","dtype
(For discrete, the parameter value type can only be int or string.)","scope
(Minimum value of the parameter)","scope
(Maximum Value of the parameter)","step
(Step of the parameter value)","items
(Enumerated values out of parameter values. Use "";"" to split different values)",select (whether to select the parameter)
Hardware-related,prefetcher,"Hardware prefetch policy. The value 0 indicates that the policy is disabled, and the value 15 indicates that the policy is enabled.",cat /sys/class/misc/prefetch/policy,echo $value > /sys/class/misc/prefetch/policy,FALSE,discrete,0; 15,int,0,15,1,,yes
,read_unique,Whether to allow cross-numa access to cache. 0--allow 1--forbid.,cat /sys/class/misc/prefetch/read_unique,echo $value > /sys/class/misc/prefetch/read_unique,FALSE,discrete,0; 1,string,,,,,yes
,iocapacity_limit,Whether to limit the io capacity of cache. 0--unlimiet 1--limit.,cat /sys/class/misc/prefetch/iocapacity_limit,echo $value > /sys/class/misc/prefetch/iocapacity_limit,FALSE,discrete,0; 1,string,,,,,yes
,tag_rep_alg,Choose cache line algorithm. 0--random 1--drrip 2--plru 3--random.,cat /sys/class/misc/prefetch/tag_rep_alg,echo $value > /sys/class/misc/prefetch/tag_rep_alg,FALSE,discrete,,int,0,3,1,,yes
,ramswap,Full or partial when doing ramswap. 1--partial 0--Full.,cat /sys/class/misc/prefetch/ramswap,echo $value > /sys/class/misc/prefetch/ramswap,FALSE,discrete,0; 1,string,,,,,yes
,sqmerge,whether consecutive address access can occupy only one entry in the squeue to accelerate the merge process. 0--limit 1--merge.,cat /sys/class/misc/prefetch/sqmerge,echo $value > /sys/class/misc/prefetch/sqmerge,FALSE,discrete,0; 1,string,,,,,yes
,prefetch_drop_hha,Whether to merge a non-prefetch operation with the previous prefetch operation. 0--allow 1--limit.,cat /sys/class/misc/prefetch/prefetch_drop_hha,echo $value > /sys/class/misc/prefetch/prefetch_drop_hha,FALSE,discrete,0; 1,string,,,,,yes
,prime_drop_mask,Enable prefetch to retry randomly. 0--disable 1--enable.,cat /sys/class/misc/prefetch/prime_drop_mask,echo $value > /sys/class/misc/prefetch/prime_drop_mask,FALSE,discrete,0; 1,string,,,,,yes
,sequence_opt,Whether change the L3T processing to serial mode when blocking. 0--limit 1--enable.,cat /sys/class/misc/prefetch/sequence_opt,echo $value > /sys/class/misc/prefetch/sequence_opt,FALSE,discrete,0; 1,string,,,,,yes
,bankintlv,Choose bank interleaving algorithm. 0--simple 1--complex.,cat /sys/class/misc/prefetch/bankintlv,echo $value > /sys/class/misc/prefetch/bankintlv,FALSE,discrete,0; 1,string,,,,,no
,prefetch_utl_ddr,The utilization of ddr that leads to the halving the threshold of prefetch. 0--less thean 1/2 1--1/2 2--3/4 3--almost full.,cat /sys/class/misc/prefetch/prefetch_utl_ddr,echo $value > /sys/class/misc/prefetch/prefetch_utl_ddr,FALSE,discrete,,int,0,3,1,,yes
,prefetch_utl_ddr_en,Whether to allow the automatic threshold reduction according to the utilization of ddr. 0--forbid 1--allow.,cat /sys/class/misc/prefetch/prefetch_utl_ddr_en,echo $value > /sys/class/misc/prefetch/prefetch_utl_ddr_en,FALSE,discrete,0; 1,string,,,,,yes
,prefetch_utl_l3t,The utilization of l3t that leads to the halving the threshold of prefetch. 0--less thean 1/2 1--1/2 2--3/4 3--almost full.,cat /sys/class/misc/prefetch/prefetch_utl_l3t,echo $value > /sys/class/misc/prefetch/prefetch_utl_l3t,FALSE,discrete,,int,0,3,1,,yes
,prefetch_utl_l3t_en,Whether to allow the automatic threshold reduction according to the utilization of l3t. 0--forbid 1--allow.,cat /sys/class/misc/prefetch/prefetch_utl_l3t_en,echo $value > /sys/class/misc/prefetch/prefetch_utl_l3t_en,FALSE,discrete,0; 1,string,,,,,yes
,prefetch_start_level,"The number of missing addresses that leads to prefetch. 0--32 1--2 n-1--n, can be 0-31.",cat /sys/class/misc/prefetch/prefetch_start_level,echo $value > /sys/class/misc/prefetch/prefetch_start_level,FALSE,discrete,,int,0,31,1,,yes
,totem_dual,"Assign the number of totems in each socket. 0--1, 1--2.",cat /sys/class/misc/prefetch/totem_dual,echo $value > /sys/class/misc/prefetch/totem_dual,FALSE,discrete,0; 1,string,,,,,yes
,canum_sktvec,"Vector configuration of chip, active high. Range form 0 to 255.",cat /sys/class/misc/prefetch/canum_sktvec,echo $value > /sys/class/misc/prefetch/canum_sktvec,FALSE,discrete,,int,0,255,1,,yes
,skt1_tb_cavec,"Vector configuration of L3T partition in Socket1 TotemB, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt1_tb_cavec,echo $value > /sys/class/misc/prefetch/skt1_tb_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt1_ta_cavec,"Vector configuration of L3T partition in Socket1 TotemA, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt1_ta_cavec,echo $value > /sys/class/misc/prefetch/skt1_ta_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt0_tb_cavec,"Vector configuration of L3T partition in Socket0 TotemB, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt0_tb_cavec,echo $value > /sys/class/misc/prefetch/skt0_tb_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt0_ta_cavec,"Vector configuration of L3T partition in Socket0 TotemA, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt0_ta_cavec,echo $value > /sys/class/misc/prefetch/skt0_ta_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt3_tb_cavec,"Vector configuration of L3T partition in Socket3 TotemB, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt3_tb_cavec,echo $value > /sys/class/misc/prefetch/skt3_tb_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt3_ta_cavec,"Vector configuration of L3T partition in Socket3 TotemA, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt3_ta_cavec,echo $value > /sys/class/misc/prefetch/skt3_ta_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt2_tb_cavec,"Vector configuration of L3T partition in Socket2 TotemB, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt2_tb_cavec,echo $value > /sys/class/misc/prefetch/skt2_tb_cavec,FALSE,discrete,,int,0,255,1,,yes
,skt2_ta_cavec,"Vector configuration of L3T partition in Socket2 TotemA, active high. Range from 0 to 255.",cat /sys/class/misc/prefetch/skt2_ta_cavec,echo $value > /sys/class/misc/prefetch/skt2_ta_cavec,FALSE,discrete,,int,0,255,1,,yes
,rdmerge_upgrade_en,Whether to allow the RS to merge with the preceding ReadE. 0--disabl 1--allow.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,ddr_compress_opt_en,Optimization switch of support HHA compression access. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,snpsleep_en,Whether to enable snp sleep. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,prefetchtgt_en,Whether to enable the prefetchtgt. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,bankintl_stagger,Simple interleave mode fine-tuning enable. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,cpu_pf_lqos_en,Whether to enable the prefetch operation delivered by the CPU to be forcibly processed as the lqos operation. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,refillsize_com_ada_en,"Whether to enable the auto-sensing of the size of the request sent to the HHA. If the size of the continuously received requests is 128 bytes or 64 bytes, the size of the prefetched request is automatically adjusted. 0--disable 1--enable adaptive size adjustment.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,refillsize_pre_ada_en,"Whether to enable the adaptation of the size of the request sent to the HHA. If the size of the continuously received request is 128 bytes or 64 bytes, the size of the normal request is automatically adjusted. 0--disable 1--enable adaptive size adjustment.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,prefetch_overide_level,"Initial coverage priority for an operation to enter the prefetch buffer. If the value is incorrect, the threshold is decreased by 1. If the value is correct, the threshold is increased by 1. If the value is 0, the prefetch rule needs to be replaced. range 0~15.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,,int,0,15,1,,yes
,prefetch_vague_en,"Indicates whether to enable fuzzy match for prefetch. After the function is enabled, the prefetch summarizes the same 16 KB address rule. The four 4 KB address rules are the same and can be used together. 0--disable 1--enable.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,prefetch_core_en,Core prefetch enable: Bit 1 indicates that the core request needs to be prefetched. range 0~15.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,,int,0,15,1,,yes
,prefetch_match_en,Whether to enable the prefetch operation after the prefetch hit. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,reg_ctrl_prefetch_drop,Prefetch operation discard enable. 0--disable 1--enable.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,reg_ctrl_dmcassign,"DDR access address alignment enable. 0--The DDR read operation uses the wrap mode, and the address is 32-byte-aligned. The DDR write operation is always in INCR mode, and the address is aligned with the access boundary. 1--The DDR read operation is always in INCR mode, and the address is aligned with the access boundary. The DDR write operation is always in INCR mode, and the address is aligned with the access boundary.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,reg_ctrl_rdatabyp,"DDR read data bypass memory enable in the HHA. 0--disable 1--The internal data of the HHA is bypassed, and the DDR read data can be transmitted quickly.",cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,reg_dir_replace_alg,Directory replacement algorithm configuration. 0--EDIR random+SDIR random 1--EDIR random+SDIR polling 2--EDIR PLRU+SDIR random 3--EDIR PLRU+SDIR polling,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,,int,0,3,1,,yes
,prefetch_comb,Read operation and prefetchtgt merge enable. 0--The read operation can be merged with the fetchtgt operation. 1--The read operation and the fetchtgt merge operation are not allowed.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
,reg_funcdis_comb,Whether to merge write operations whose size is less than 128 bytes. 0--enable 1--disables the merge function of the write operation.,cat /sys/class/misc/prefetch/@name,echo $value > /sys/class/misc/prefetch/@name,FALSE,discrete,0; 1,string,,,,,yes
Category,"name
(Parameter to be adjusted)","desc
(Parameter description)","get
(Command for querying parameter values.)","set
(Command for setting parameter values)",needrestart(Whether require restart or not),type (discrete/continuous),"options
(For the discrete type, use"";""to split different values.)","dtype
(For discrete, the parameter value type can only be int or string.)","scope
(Minimum value of the parameter)","scope
(Maximum Value of the parameter)","step
(Step of the parameter value)","items
(Enumerated values out of parameter values. Use "";"" to split different values)",select (whether to select the parameter),Remarks
mariadb,mariadb.key_buffer_size,Index parameters of the myisam storage engine,cat /etc/my.cnf | grep key_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/key_buffer_size.*/key_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,1048576?,536870912,1048576?,,yes,
,mariadb.max_allowed_packet,Maximum number of received packets,cat /etc/my.cnf | grep max_allowed_packet | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/max_allowed_packet.*/max_allowed_packet = $value/g' /etc/my.cnf,false,discrete,,int,1048576?,1048576?00,1048576?,,yes,
,mariadb.table_open_cache,Table cache for storing data,cat /etc/my.cnf | grep table_open_cache | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/table_open_cache.*/table_open_cache = $value/g' /etc/my.cnf,false,discrete,,int,16,1000000,2,,yes,
,mariadb.back_log,The number of new requests stored in the stack,cat /etc/my.cnf | grep back_log | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/back_log.*/back_log = $value/g' /etc/my.cnf,false,continuous,,int,16,65536,,,yes,
,mariadb.sort_buffer_size,Cache used for sorting,cat /etc/my.cnf | grep sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/sort_buffer_size.*/sort_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,256,1048576?00,1024,,yes,
,mariadb.read_buffer_size,the buffer allocated to each thread during sequential table scanning.,cat /etc/my.cnf | grep read_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/read_buffer_size.*/read_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,1024,1048576?00,1024,,yes,
,mariadb.read_rnd_buffer_size,the buffer allocated to each thread when the table is read randomly,cat /etc/my.cnf | grep read_rnd_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/read_rnd_buffer_size.*/read_rnd_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,1024,1048576?00,1024,,yes,
,mariadb.myisam_sort_buffer_size,the buffer required for reordering when the MyISAM table changes,cat /etc/my.cnf | grep myisam_sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/myisam_sort_buffer_size.*/myisam_sort_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,1024,1048576?00,1024,,yes,
,mariadb.thread_cache_size,Number of threads saved in the cache that are reused,cat /etc/my.cnf | grep thread_cache_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/thread_cache_size.*/thread_cache_size = $value/g' /etc/my.cnf,false,continuous,,int,8,1000,,,yes,
,mariadb.max_connections,the max number of connections,cat /etc/my.cnf | grep max_connections | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/max_connections.*/max_connections = $value/g' /etc/my.cnf,false,continuous,,int,10,65536,,,yes,
,mariadb.max_heap_table_size,size of a memory table that can be created,cat /etc/my.cnf | grep max_heap_table_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/max_heap_table_size.*/max_heap_table_size = $value/g' /etc/my.cnf,false,discrete,,int,1024,1048576?00,1024,,yes,
,mariadb.innodb_buffer_pool_size,size of innodb buffer pool,cat /etc/my.cnf | grep innodb_buffer_pool_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/innodb_buffer_pool_size.*/innodb_buffer_pool_size = $value/g' /etc/my.cnf,false,discrete,,int,1024,137438953472?,1024,,yes,
,mariadb.innodb_log_buffer_size,size of innodb log buffer,cat /etc/my.cnf | grep innodb_log_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1',sed -i 's/innodb_log_buffer_size.*/innodb_log_buffer_size = $value/g' /etc/my.cnf,false,discrete,,int,1048576?,1048576?00,1048576?,,yes,
Category,"name
(Parameter to be adjusted)","desc
(Parameter description)","get
(Command for querying parameter values.)","set
(Command for setting parameter values)",needrestart(Whether require restart or not),type (discrete/continuous),"options
(For the discrete type, use"";""to split different values.)","dtype
(For discrete, the parameter value type can only be int or string.)","scope
(Minimum value of the parameter)","scope
(Maximum Value of the parameter)","step
(Step of the parameter value)","items
(Enumerated values out of parameter values. Use "";"" to split different values)",select (whether to select the parameter)
nginx,nginx.access_log,Enabling or Disabling nginx access_log,"cat /etc/nginx/nginx.conf | grep ""access_log"" | awk -F ';' '{print $1}' | awk '{$1="""";print}'| awk '$1=$1'","sed -i ""s#access_log.*#access_log $value;#g"" /etc/nginx/nginx.conf",false,discrete,/var/log/nginx/access.log main;off,string,,,,,yes
,nginx.error_log,Enabling or Disabling nginx error_log,"cat /etc/nginx/nginx.conf | grep ""error_log"" | awk -F ';' '{print $1}' | awk '{$1="""";print}' | awk '$1=$1'","sed -i ""s#error_log.*#error_log $value;#g"" /etc/nginx/nginx.conf",false,discrete,/var/log/nginx/access.log main;/dev/null,string,,,,,yes
此差异已折叠。
Category,"name
(Parameter to be adjusted)","desc
(Parameter description)","get
(Command for querying parameter values.)","set
(Command for setting parameter values)",needrestart(Whether require restart or not),type (discrete/continuous),"options
(For the discrete type, use"";""to split different values.)","dtype
(For discrete, the parameter value type can only be int or string.)","scope
(Minimum value of the parameter)","scope
(Maximum Value of the parameter)","step
(Step of the parameter value)","items
(Enumerated values out of parameter values. Use "";"" to split different values)",select (whether to select the parameter),Remarks
redis,redis.tcp-backlog,tcp backlog,cat /etc/redis.conf | grep tcp-backlog | awk '{print $2}',sed -i 's/tcp-backlog.*/tcp-backlog $value/g' /etc/redis.conf,false,continuous,,int,16,65536,,,yes,
,redis.tcp-keepalive,closes the connection after holding for a few seconds,cat /etc/redis.conf | grep tcp-keepalive | awk '{print $2}',sed -i 's/tcp-keepalive.*/tcp-keepalive $value/g' /etc/redis.conf,false,continuous,,int,0,3600,,,yes,
,redis.supervised ,service supervise,cat /etc/redis.conf | grep supervised | awk '{print $2}',sed -i 's/supervised .*/supervised $value/g' /etc/redis.conf,false,discrete,no;upstart;systemd;auto,string,,,,,yes,
,redis.databases,number of databases,cat /etc/redis.conf | grep databases | awk '{print $2}',sed -i 's/databases.*/databases $value/g' /etc/redis.conf,false,continuous,,int,0,100,,,yes,
,redis.rdbcompression,whether to compress character strings using LZF when backing up .rdb files,cat /etc/redis.conf | grep rdbcompression | awk '{print $2}',sed -i 's/rdbcompression .*/rdbcompression $value/g' /etc/redis.conf,false,discrete,yes;no,string,,,,,yes,
project: "mariadb"
maxiterations: 100
startworkload: ""
stopworkload: ""
object :
-
name : "mariadb.key_buffer_size"
info :
desc : "Index parameters of the myisam storage engine"
get : "cat /etc/my.cnf | grep key_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/key_buffer_size.*/key_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1,048,576‬
- 536870912
step : 1,048,576‬
items :
dtype : "int"
-
name : "mariadb.max_allowed_packet"
info :
desc : "Maximum number of received packets"
get : "cat /etc/my.cnf | grep max_allowed_packet | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/max_allowed_packet.*/max_allowed_packet = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1,048,576‬
- 1,048,576‬00
step : 1,048,576‬
items :
dtype : "int"
-
name : "mariadb.table_open_cache"
info :
desc : "Table cache for storing data"
get : "cat /etc/my.cnf | grep table_open_cache | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/table_open_cache.*/table_open_cache = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 16
- 1000000
step : 2
items :
dtype : "int"
-
name : "mariadb.back_log"
info :
desc : "The number of new requests stored in the stack"
get : "cat /etc/my.cnf | grep back_log | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/back_log.*/back_log = $value/g' /etc/my.cnf"
needrestart : "false"
type : "continuous"
scope :
- 16
- 65536
dtype : "int"
-
name : "mariadb.sort_buffer_size"
info :
desc : "Cache used for sorting"
get : "cat /etc/my.cnf | grep sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/sort_buffer_size.*/sort_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 256
- 1,048,576‬00
step : 1024
items :
dtype : "int"
-
name : "mariadb.read_buffer_size"
info :
desc : "the buffer allocated to each thread during sequential table scanning."
get : "cat /etc/my.cnf | grep read_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/read_buffer_size.*/read_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1024
- 1,048,576‬00
step : 1024
items :
dtype : "int"
-
name : "mariadb.read_rnd_buffer_size"
info :
desc : "the buffer allocated to each thread when the table is read randomly"
get : "cat /etc/my.cnf | grep read_rnd_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/read_rnd_buffer_size.*/read_rnd_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1024
- 1,048,576‬00
step : 1024
items :
dtype : "int"
-
name : "mariadb.myisam_sort_buffer_size"
info :
desc : "the buffer required for reordering when the MyISAM table changes"
get : "cat /etc/my.cnf | grep myisam_sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/myisam_sort_buffer_size.*/myisam_sort_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1024
- 1,048,576‬00
step : 1024
items :
dtype : "int"
-
name : "mariadb.thread_cache_size"
info :
desc : "Number of threads saved in the cache that are reused"
get : "cat /etc/my.cnf | grep thread_cache_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/thread_cache_size.*/thread_cache_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "continuous"
scope :
- 8
- 1000
dtype : "int"
-
name : "mariadb.max_connections"
info :
desc : "the max number of connections"
get : "cat /etc/my.cnf | grep max_connections | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/max_connections.*/max_connections = $value/g' /etc/my.cnf"
needrestart : "false"
type : "continuous"
scope :
- 10
- 65536
dtype : "int"
-
name : "mariadb.max_heap_table_size"
info :
desc : "size of a memory table that can be created"
get : "cat /etc/my.cnf | grep max_heap_table_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/max_heap_table_size.*/max_heap_table_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1024
- 1,048,576‬00
step : 1024
items :
dtype : "int"
-
name : "mariadb.innodb_buffer_pool_size"
info :
desc : "size of innodb buffer pool"
get : "cat /etc/my.cnf | grep innodb_buffer_pool_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/innodb_buffer_pool_size.*/innodb_buffer_pool_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1024
- 137,438,953,472‬
step : 1024
items :
dtype : "int"
-
name : "mariadb.innodb_log_buffer_size"
info :
desc : "size of innodb log buffer"
get : "cat /etc/my.cnf | grep innodb_log_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1'"
set : "sed -i 's/innodb_log_buffer_size.*/innodb_log_buffer_size = $value/g' /etc/my.cnf"
needrestart : "false"
type : "discrete"
scope :
- 1,048,576‬
- 1,048,576‬00
step : 1,048,576‬
items :
dtype : "int"
project: "nginx"
maxiterations: 100
startworkload: ""
stopworkload: ""
object :
-
name : "nginx.access_log"
info :
desc : "Enabling or Disabling nginx access_log"
get : "cat /etc/nginx/nginx.conf | grep "access_log" | awk -F ';' '{print $1}' | awk '{$1="";print}'| awk '$1=$1'"
set : "sed -i "s#access_log.*#access_log $value;#g" /etc/nginx/nginx.conf"
needrestart : "false"
type : "discrete"
options :
- "/var/log/nginx/access.log main"
- "off"
dtype : "string"
-
name : "nginx.error_log"
info :
desc : "Enabling or Disabling nginx error_log"
get : "cat /etc/nginx/nginx.conf | grep "error_log" | awk -F ';' '{print $1}' | awk '{$1="";print}' | awk '$1=$1'"
set : "sed -i "s#error_log.*#error_log $value;#g" /etc/nginx/nginx.conf"
needrestart : "false"
type : "discrete"
options :
- "/var/log/nginx/access.log main"
- "/dev/null"
dtype : "string"
project: "redis"
maxiterations: 100
startworkload: ""
stopworkload: ""
object :
-
name : "redis.tcp-backlog"
info :
desc : "tcp backlog"
get : "cat /etc/redis.conf | grep tcp-backlog | awk '{print $2}'"
set : "sed -i 's/tcp-backlog.*/tcp-backlog $value/g' /etc/redis.conf"
needrestart : "false"
type : "continuous"
scope :
- 16
- 65536
dtype : "int"
-
name : "redis.tcp-keepalive"
info :
desc : "closes the connection after holding for a few seconds"
get : "cat /etc/redis.conf | grep tcp-keepalive | awk '{print $2}'"
set : "sed -i 's/tcp-keepalive.*/tcp-keepalive $value/g' /etc/redis.conf"
needrestart : "false"
type : "continuous"
scope :
- 0
- 3600
dtype : "int"
-
name : "redis.supervised"
info :
desc : "service supervise"
get : "cat /etc/redis.conf | grep supervised | awk '{print $2}'"
set : "sed -i 's/supervised .*/supervised $value/g' /etc/redis.conf"
needrestart : "false"
type : "discrete"
options :
- "no"
- "upstart"
- "systemd"
- "auto"
dtype : "string"
-
name : "redis.databases"
info :
desc : "number of databases"
get : "cat /etc/redis.conf | grep databases | awk '{print $2}'"
set : "sed -i 's/databases.*/databases $value/g' /etc/redis.conf"
needrestart : "false"
type : "continuous"
scope :
- 0
- 100
dtype : "int"
-
name : "redis.rdbcompression"
info :
desc : "whether to compress character strings using LZF when backing up .rdb files"
get : "cat /etc/redis.conf | grep rdbcompression | awk '{print $2}'"
set : "sed -i 's/rdbcompression .*/rdbcompression $value/g' /etc/redis.conf"
needrestart : "false"
type : "discrete"
options :
- "yes"
- "no"
dtype : "string"
此差异已折叠。
project: "hardware"
maxiterations: 100
startworkload: ""
stopworkload: ""
object :
-
name : "prefetcher"
info :
desc : "Hardware prefetch policy. The value 0 indicates that the policy is disabled, and the value 15 indicates that the policy is enabled."
get : "cat /sys/class/misc/prefetch/policy"
set : "echo $value > /sys/class/misc/prefetch/policy"
needrestart : "false"
type : "discrete"
scope :
- 0
- 15
step : 1
items :
dtype : "int"
-
name : "read_unique"
info :
desc : "Whether to allow cross-numa access to cache. 0--allow 1--forbid."
get : "cat /sys/class/misc/prefetch/read_unique"
set : "echo $value > /sys/class/misc/prefetch/read_unique"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "iocapacity_limit"
info :
desc : "Whether to limit the io capacity of cache. 0--unlimiet 1--limit."
get : "cat /sys/class/misc/prefetch/iocapacity_limit"
set : "echo $value > /sys/class/misc/prefetch/iocapacity_limit"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "tag_rep_alg"
info :
desc : "Choose cache line algorithm. 0--random 1--drrip 2--plru 3--random."
get : "cat /sys/class/misc/prefetch/tag_rep_alg"
set : "echo $value > /sys/class/misc/prefetch/tag_rep_alg"
needrestart : "false"
type : "discrete"
scope :
- 0
- 3
step : 1
items :
dtype : "int"
-
name : "ramswap"
info :
desc : "Full or partial when doing ramswap. 1--partial 0--Full."
get : "cat /sys/class/misc/prefetch/ramswap"
set : "echo $value > /sys/class/misc/prefetch/ramswap"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "sqmerge"
info :
desc : "whether consecutive address access can occupy only one entry in the squeue to accelerate the merge process. 0--limit 1--merge."
get : "cat /sys/class/misc/prefetch/sqmerge"
set : "echo $value > /sys/class/misc/prefetch/sqmerge"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_drop_hha"
info :
desc : "Whether to merge a non-prefetch operation with the previous prefetch operation. 0--allow 1--limit."
get : "cat /sys/class/misc/prefetch/prefetch_drop_hha"
set : "echo $value > /sys/class/misc/prefetch/prefetch_drop_hha"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prime_drop_mask"
info :
desc : "Enable prefetch to retry randomly. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/prime_drop_mask"
set : "echo $value > /sys/class/misc/prefetch/prime_drop_mask"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "sequence_opt"
info :
desc : "Whether change the L3T processing to serial mode when blocking. 0--limit 1--enable."
get : "cat /sys/class/misc/prefetch/sequence_opt"
set : "echo $value > /sys/class/misc/prefetch/sequence_opt"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_utl_ddr"
info :
desc : "The utilization of ddr that leads to the halving the threshold of prefetch. 0--less thean 1/2 1--1/2 2--3/4 3--almost full."
get : "cat /sys/class/misc/prefetch/prefetch_utl_ddr"
set : "echo $value > /sys/class/misc/prefetch/prefetch_utl_ddr"
needrestart : "false"
type : "discrete"
scope :
- 0
- 3
step : 1
items :
dtype : "int"
-
name : "prefetch_utl_ddr_en"
info :
desc : "Whether to allow the automatic threshold reduction according to the utilization of ddr. 0--forbid 1--allow."
get : "cat /sys/class/misc/prefetch/prefetch_utl_ddr_en"
set : "echo $value > /sys/class/misc/prefetch/prefetch_utl_ddr_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_utl_l3t"
info :
desc : "The utilization of l3t that leads to the halving the threshold of prefetch. 0--less thean 1/2 1--1/2 2--3/4 3--almost full."
get : "cat /sys/class/misc/prefetch/prefetch_utl_l3t"
set : "echo $value > /sys/class/misc/prefetch/prefetch_utl_l3t"
needrestart : "false"
type : "discrete"
scope :
- 0
- 3
step : 1
items :
dtype : "int"
-
name : "prefetch_utl_l3t_en"
info :
desc : "Whether to allow the automatic threshold reduction according to the utilization of l3t. 0--forbid 1--allow."
get : "cat /sys/class/misc/prefetch/prefetch_utl_l3t_en"
set : "echo $value > /sys/class/misc/prefetch/prefetch_utl_l3t_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_start_level"
info :
desc : "The number of missing addresses that leads to prefetch. 0--32 1--2 n-1--n, can be 0-31."
get : "cat /sys/class/misc/prefetch/prefetch_start_level"
set : "echo $value > /sys/class/misc/prefetch/prefetch_start_level"
needrestart : "false"
type : "discrete"
scope :
- 0
- 31
step : 1
items :
dtype : "int"
-
name : "totem_dual"
info :
desc : "Assign the number of totems in each socket. 0--1, 1--2."
get : "cat /sys/class/misc/prefetch/totem_dual"
set : "echo $value > /sys/class/misc/prefetch/totem_dual"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "canum_sktvec"
info :
desc : "Vector configuration of chip, active high. Range form 0 to 255."
get : "cat /sys/class/misc/prefetch/canum_sktvec"
set : "echo $value > /sys/class/misc/prefetch/canum_sktvec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt1_tb_cavec"
info :
desc : "Vector configuration of L3T partition in Socket1 TotemB, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt1_tb_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt1_tb_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt1_ta_cavec"
info :
desc : "Vector configuration of L3T partition in Socket1 TotemA, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt1_ta_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt1_ta_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt0_tb_cavec"
info :
desc : "Vector configuration of L3T partition in Socket0 TotemB, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt0_tb_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt0_tb_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt0_ta_cavec"
info :
desc : "Vector configuration of L3T partition in Socket0 TotemA, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt0_ta_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt0_ta_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt3_tb_cavec"
info :
desc : "Vector configuration of L3T partition in Socket3 TotemB, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt3_tb_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt3_tb_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt3_ta_cavec"
info :
desc : "Vector configuration of L3T partition in Socket3 TotemA, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt3_ta_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt3_ta_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt2_tb_cavec"
info :
desc : "Vector configuration of L3T partition in Socket2 TotemB, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt2_tb_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt2_tb_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "skt2_ta_cavec"
info :
desc : "Vector configuration of L3T partition in Socket2 TotemA, active high. Range from 0 to 255."
get : "cat /sys/class/misc/prefetch/skt2_ta_cavec"
set : "echo $value > /sys/class/misc/prefetch/skt2_ta_cavec"
needrestart : "false"
type : "discrete"
scope :
- 0
- 255
step : 1
items :
dtype : "int"
-
name : "rdmerge_upgrade_en"
info :
desc : "Whether to allow the RS to merge with the preceding ReadE. 0--disabl 1--allow."
get : "cat /sys/class/misc/prefetch/rdmerge_upgrade_en"
set : "echo $value > /sys/class/misc/prefetch/rdmerge_upgrade_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "ddr_compress_opt_en"
info :
desc : "Optimization switch of support HHA compression access. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/ddr_compress_opt_en"
set : "echo $value > /sys/class/misc/prefetch/ddr_compress_opt_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "snpsleep_en"
info :
desc : "Whether to enable snp sleep. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/snpsleep_en"
set : "echo $value > /sys/class/misc/prefetch/snpsleep_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetchtgt_en"
info :
desc : "Whether to enable the prefetchtgt. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/prefetchtgt_en"
set : "echo $value > /sys/class/misc/prefetch/prefetchtgt_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "bankintl_stagger"
info :
desc : "Simple interleave mode fine-tuning enable. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/bankintl_stagger"
set : "echo $value > /sys/class/misc/prefetch/bankintl_stagger"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "cpu_pf_lqos_en"
info :
desc : "Whether to enable the prefetch operation delivered by the CPU to be forcibly processed as the lqos operation. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/cpu_pf_lqos_en"
set : "echo $value > /sys/class/misc/prefetch/cpu_pf_lqos_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "refillsize_com_ada_en"
info :
desc : "Whether to enable the auto-sensing of the size of the request sent to the HHA. If the size of the continuously received requests is 128 bytes or 64 bytes, the size of the prefetched request is automatically adjusted. 0--disable 1--enable adaptive size adjustment."
get : "cat /sys/class/misc/prefetch/refillsize_com_ada_en"
set : "echo $value > /sys/class/misc/prefetch/refillsize_com_ada_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "refillsize_pre_ada_en"
info :
desc : "Whether to enable the adaptation of the size of the request sent to the HHA. If the size of the continuously received request is 128 bytes or 64 bytes, the size of the normal request is automatically adjusted. 0--disable 1--enable adaptive size adjustment."
get : "cat /sys/class/misc/prefetch/refillsize_pre_ada_en"
set : "echo $value > /sys/class/misc/prefetch/refillsize_pre_ada_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_overide_level"
info :
desc : "Initial coverage priority for an operation to enter the prefetch buffer. If the value is incorrect, the threshold is decreased by 1. If the value is correct, the threshold is increased by 1. If the value is 0, the prefetch rule needs to be replaced. range 0~15."
get : "cat /sys/class/misc/prefetch/prefetch_overide_level"
set : "echo $value > /sys/class/misc/prefetch/prefetch_overide_level"
needrestart : "false"
type : "discrete"
scope :
- 0
- 15
step : 1
items :
dtype : "int"
-
name : "prefetch_vague_en"
info :
desc : "Indicates whether to enable fuzzy match for prefetch. After the function is enabled, the prefetch summarizes the same 16 KB address rule. The four 4 KB address rules are the same and can be used together. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/prefetch_vague_en"
set : "echo $value > /sys/class/misc/prefetch/prefetch_vague_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "prefetch_core_en"
info :
desc : "Core prefetch enable: Bit 1 indicates that the core request needs to be prefetched. range 0~15."
get : "cat /sys/class/misc/prefetch/prefetch_core_en"
set : "echo $value > /sys/class/misc/prefetch/prefetch_core_en"
needrestart : "false"
type : "discrete"
scope :
- 0
- 15
step : 1
items :
dtype : "int"
-
name : "prefetch_match_en"
info :
desc : "Whether to enable the prefetch operation after the prefetch hit. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/prefetch_match_en"
set : "echo $value > /sys/class/misc/prefetch/prefetch_match_en"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "reg_ctrl_prefetch_drop"
info :
desc : "Prefetch operation discard enable. 0--disable 1--enable."
get : "cat /sys/class/misc/prefetch/reg_ctrl_prefetch_drop"
set : "echo $value > /sys/class/misc/prefetch/reg_ctrl_prefetch_drop"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "reg_ctrl_dmcassign"
info :
desc : "DDR access address alignment enable. 0--The DDR read operation uses the wrap mode, and the address is 32-byte-aligned. The DDR write operation is always in INCR mode, and the address is aligned with the access boundary. 1--The DDR read operation is always in INCR mode, and the address is aligned with the access boundary. The DDR write operation is always in INCR mode, and the address is aligned with the access boundary."
get : "cat /sys/class/misc/prefetch/reg_ctrl_dmcassign"
set : "echo $value > /sys/class/misc/prefetch/reg_ctrl_dmcassign"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "reg_ctrl_rdatabyp"
info :
desc : "DDR read data bypass memory enable in the HHA. 0--disable 1--The internal data of the HHA is bypassed, and the DDR read data can be transmitted quickly."
get : "cat /sys/class/misc/prefetch/reg_ctrl_rdatabyp"
set : "echo $value > /sys/class/misc/prefetch/reg_ctrl_rdatabyp"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "reg_dir_replace_alg"
info :
desc : "Directory replacement algorithm configuration. 0--EDIR random+SDIR random 1--EDIR random+SDIR polling 2--EDIR PLRU+SDIR random 3--EDIR PLRU+SDIR polling"
get : "cat /sys/class/misc/prefetch/reg_dir_replace_alg"
set : "echo $value > /sys/class/misc/prefetch/reg_dir_replace_alg"
needrestart : "false"
type : "discrete"
scope :
- 0
- 3
step : 1
items :
dtype : "int"
-
name : "prefetch_comb"
info :
desc : "Read operation and prefetchtgt merge enable. 0--The read operation can be merged with the fetchtgt operation. 1--The read operation and the fetchtgt merge operation are not allowed."
get : "cat /sys/class/misc/prefetch/prefetch_comb"
set : "echo $value > /sys/class/misc/prefetch/prefetch_comb"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
-
name : "reg_funcdis_comb"
info :
desc : "Whether to merge write operations whose size is less than 128 bytes. 0--enable 1--disables the merge function of the write operation."
get : "cat /sys/class/misc/prefetch/reg_funcdis_comb"
set : "echo $value > /sys/class/misc/prefetch/reg_funcdis_comb"
needrestart : "false"
type : "discrete"
options :
- "0"
- "1"
dtype : "string"
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册