summaryrefslogtreecommitdiffstats
path: root/systemservice/resource_manager/server/include/resm_cfg.h
blob: e48cdcee94b52adb5435393f70bfac0ebcc97b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/******************************************************************************
File name   : resm_cfg.h
******************************************************************************/
#ifndef RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_
#define RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_

/******************************************************************************
Configuration
******************************************************************************/
/*************************************************
 *  Delay time from process start to monitoring start (sec)
 *    def:60    max:-   min:0
 *      (0: stop timer)
 *************************************************/
#define MONITORING_START_DELAT_TIME (60)


/*************************************************
 *  Delay time until authentication service monitoring start (sec)
 *  	def:30  max:-   min:0
 *      (0: stop timer)
 *  MONITORING_START_DELAT_TIME > set to this value
 *************************************************/
#define EUA_MONITORING_START_DELAT_TIME	(30)


/*************************************************
 *  Delay from drop_caches process startup (sec)
 *    def:20    max:-   min:0
 *      (0: stop timer)
 *************************************************/
#define DROP_CACHES_START_DELAT_TIME  (20)


///*************************************************
// *  CPU load threshold (%)
// *    def:70    max:100   min:0
// *************************************************/
//#define CPU_LOAD_THRESHOLD    (70)
/*************************************************
 *  CPU load threshold(%:XX.X)
 *    threshold:875  max:1000  min:0
 *************************************************/
#define CPU_LOAD_THRESHOLD    (875)


/*************************************************
 * Number of CPU overload processes to be logged (rows)
 *  def:5   max:-   min:0
 *************************************************/
#define CPU_HIGH_LOAD_P_LOG_NUM   (5)


///*************************************************
// * Log output frequency during CPU overload continuation (sec)
// *  def:30    max:-   min:0
// *
// *  Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring
// *************************************************/
//#define CPU_HIGH_LOAD_LOG_FREQ    (30)
/*************************************************
 * Log output frequency during CPU overload continuation (sec)
 *  def:60    max:-   min:0
 *
 *  Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring
 *************************************************/
#define CPU_HIGH_LOAD_LOG_FREQ    (60)


/*************************************************
 * perf Profiling/Measurement Processes
 *  def:1   max:-   min:1
 *************************************************/
#define PERF_MAX_PROCS  (1)

/*************************************************
 * perf profiling/Output rows (functions)
 *  def:5   max:-   min:1
 *************************************************/
#define PERF_MAX_LINES  (5)

/*************************************************
 * perf pofiling/perf-record running time (sec)
 *  def:1   max:-   min:1
 *************************************************/
#define PERF_RECORD_SPAN  (1)

#define TOP_TIMEOUT (60)

#define RESET_SEC (60)


#define WTC_CPU_INTERVAL (6)

#define TASK_STAT_THRESHOLD (70)
#define FIFO_TIMER_LIMIT (6)
#define TSS_TIMER_LIMIT (60)

#define CPU_TASK_INIT (1)
#define CPU_TASK_SHOW_BF (2)
#define CPU_TASK_SHOW_AF (3)
#define FIFO_TASK_SHOW (4)
#define TSS_TASK_SHOW (5)
#define CPU_FIFO_TASK_GET_ID (6)
#define CPU_TSS_TASK_GET_ID (7)
#define CPU_FIFO_TASK_GET_OCCUPANCY (8)
#define CPU_TSS_TASK_GET_OCCUPANCY (9)

#define STATUS_IDOL (1)
#define STATUS_CHECK_CPU (2)
#define STATUS_WATCH_PROCESS (3)

#define TASK_STAT_RANK_NUM (5)


#endif  // RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_