2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /******************************************************************************
18 File name : resm_cfg.h
19 ******************************************************************************/
20 #ifndef RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_
21 #define RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_
23 /******************************************************************************
25 ******************************************************************************/
26 /*************************************************
27 * Delay time from process start to monitoring start (sec)
30 *************************************************/
31 #define MONITORING_START_DELAT_TIME (60)
34 /*************************************************
35 * Delay time until authentication service monitoring start (sec)
38 * MONITORING_START_DELAT_TIME > set to this value
39 *************************************************/
40 #define EUA_MONITORING_START_DELAT_TIME (30)
43 /*************************************************
44 * Delay from drop_caches process startup (sec)
47 *************************************************/
48 #define DROP_CACHES_START_DELAT_TIME (20)
51 ///*************************************************
52 // * CPU load threshold (%)
53 // * def:70 max:100 min:0
54 // *************************************************/
55 //#define CPU_LOAD_THRESHOLD (70)
56 /*************************************************
57 * CPU load threshold(%:XX.X)
58 * threshold:875 max:1000 min:0
59 *************************************************/
60 #define CPU_LOAD_THRESHOLD (875)
63 /*************************************************
64 * Number of CPU overload processes to be logged (rows)
66 *************************************************/
67 #define CPU_HIGH_LOAD_P_LOG_NUM (5)
70 ///*************************************************
71 // * Log output frequency during CPU overload continuation (sec)
72 // * def:30 max:- min:0
74 // * Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring
75 // *************************************************/
76 //#define CPU_HIGH_LOAD_LOG_FREQ (30)
77 /*************************************************
78 * Log output frequency during CPU overload continuation (sec)
81 * Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring
82 *************************************************/
83 #define CPU_HIGH_LOAD_LOG_FREQ (60)
86 /*************************************************
87 * perf Profiling/Measurement Processes
89 *************************************************/
90 #define PERF_MAX_PROCS (1)
92 /*************************************************
93 * perf profiling/Output rows (functions)
95 *************************************************/
96 #define PERF_MAX_LINES (5)
98 /*************************************************
99 * perf pofiling/perf-record running time (sec)
101 *************************************************/
102 #define PERF_RECORD_SPAN (1)
104 #define TOP_TIMEOUT (60)
106 #define RESET_SEC (60)
109 #define WTC_CPU_INTERVAL (6)
111 #define TASK_STAT_THRESHOLD (70)
112 #define FIFO_TIMER_LIMIT (6)
113 #define TSS_TIMER_LIMIT (60)
115 #define CPU_TASK_INIT (1)
116 #define CPU_TASK_SHOW_BF (2)
117 #define CPU_TASK_SHOW_AF (3)
118 #define FIFO_TASK_SHOW (4)
119 #define TSS_TASK_SHOW (5)
120 #define CPU_FIFO_TASK_GET_ID (6)
121 #define CPU_TSS_TASK_GET_ID (7)
122 #define CPU_FIFO_TASK_GET_OCCUPANCY (8)
123 #define CPU_TSS_TASK_GET_OCCUPANCY (9)
125 #define STATUS_IDOL (1)
126 #define STATUS_CHECK_CPU (2)
127 #define STATUS_WATCH_PROCESS (3)
129 #define TASK_STAT_RANK_NUM (5)
132 #endif // RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_