Re-organized sub-directory by category
[staging/basesystem.git] / service / system / resource_manager / server / include / resm_cfg.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
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_
22
23 /******************************************************************************
24 Configuration
25 ******************************************************************************/
26 /*************************************************
27  *  Delay time from process start to monitoring start (sec)
28  *    def:60    max:-   min:0
29  *      (0: stop timer)
30  *************************************************/
31 #define MONITORING_START_DELAT_TIME (60)
32
33
34 /*************************************************
35  *  Delay time until authentication service monitoring start (sec)
36  *      def:30  max:-   min:0
37  *      (0: stop timer)
38  *  MONITORING_START_DELAT_TIME > set to this value
39  *************************************************/
40 #define EUA_MONITORING_START_DELAT_TIME (30)
41
42
43 /*************************************************
44  *  Delay from drop_caches process startup (sec)
45  *    def:20    max:-   min:0
46  *      (0: stop timer)
47  *************************************************/
48 #define DROP_CACHES_START_DELAT_TIME  (20)
49
50
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)
61
62
63 /*************************************************
64  * Number of CPU overload processes to be logged (rows)
65  *  def:5   max:-   min:0
66  *************************************************/
67 #define CPU_HIGH_LOAD_P_LOG_NUM   (5)
68
69
70 ///*************************************************
71 // * Log output frequency during CPU overload continuation (sec)
72 // *  def:30    max:-   min:0
73 // *
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)
79  *  def:60    max:-   min:0
80  *
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)
84
85
86 /*************************************************
87  * perf Profiling/Measurement Processes
88  *  def:1   max:-   min:1
89  *************************************************/
90 #define PERF_MAX_PROCS  (1)
91
92 /*************************************************
93  * perf profiling/Output rows (functions)
94  *  def:5   max:-   min:1
95  *************************************************/
96 #define PERF_MAX_LINES  (5)
97
98 /*************************************************
99  * perf pofiling/perf-record running time (sec)
100  *  def:1   max:-   min:1
101  *************************************************/
102 #define PERF_RECORD_SPAN  (1)
103
104 #define TOP_TIMEOUT (60)
105
106 #define RESET_SEC (60)
107
108
109 #define WTC_CPU_INTERVAL (6)
110
111 #define TASK_STAT_THRESHOLD (70)
112 #define FIFO_TIMER_LIMIT (6)
113 #define TSS_TIMER_LIMIT (60)
114
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)
124
125 #define STATUS_IDOL (1)
126 #define STATUS_CHECK_CPU (2)
127 #define STATUS_WATCH_PROCESS (3)
128
129 #define TASK_STAT_RANK_NUM (5)
130
131
132 #endif  // RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_