CN112667460A - Method for monitoring avionics system application task stack space - Google Patents
Method for monitoring avionics system application task stack space Download PDFInfo
- Publication number
- CN112667460A CN112667460A CN202011427354.6A CN202011427354A CN112667460A CN 112667460 A CN112667460 A CN 112667460A CN 202011427354 A CN202011427354 A CN 202011427354A CN 112667460 A CN112667460 A CN 112667460A
- Authority
- CN
- China
- Prior art keywords
- stack
- task
- task stack
- alarm
- rate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a method for monitoring stack space of an avionics system application task, which is used for solving system faults caused by insufficient stack space when a system application task runs. The method utilizes the dynamic monitoring thought of the avionic application task stack space to count the utilization rate of each task stack space in real time, and reports stack warning information to a system when the utilization rate of the stack exceeds a warning value set by the system; and reporting alarm information to the system when the stack use exceeds the value allocated by the system. The task stack information table, the task stack monitor and the system alarm are required to be supported when the scheme is completed. The invention can effectively solve the problem of system failure caused by insufficient stack allocation of each task of the avionics system, and improves the reliability and maintainability of the avionics system.
Description
Technical Field
The invention relates to a technology for monitoring avionics system resources, in particular to a method for monitoring an avionics system application task stack space.
Background
The integrated task processor (IMP) is used as a core computing processing platform for controlling and managing the avionics system, has the capabilities of high-speed information processing, data computing and large-capacity storage, and provides the avionics system with FC network information interaction capability. The comprehensive task processor mainly comprises a Data Processing Module (DPM), a Central Memory Module (CMM), an input/output interface module (IOM), a Network Switching Module (NSM) and a Power Supply Module (PSM). Different avionics system tasks are run on the various modules, each task having an independent stack space. The existing integrated avionics system lacks an effective monitoring mechanism of an application task stack, and when the stack space is insufficient, partial functions of the system are invalid, so that the reliability and maintainability of the avionics system are reduced.
Disclosure of Invention
The purpose of the invention is as follows: the problem of system faults caused by insufficient space of a task stack of an avionic system is solved. In order to achieve the purpose, the invention provides a method for monitoring an avionics system application task stack space, which solves the problem of system faults caused by insufficient allocated stack space of each task of the avionics system, is simple and easy to realize, and improves the reliability and maintainability of the avionics system.
The technical scheme of the invention is as follows:
a monitoring method for an avionics system application task stack space is characterized in that when a system runs, a task stack monitor monitors and calculates the utilization rate of a task stack in real time; and sending the utilization rate of the task stack to a system alarm. And when the system alarm receives the stack utilization rate sent by the task stack monitor, searching a task stack alarm configuration table to obtain the alarm rate, and sending task stack alarm information when the task stack utilization rate is higher than the alarm rate.
The completion of the method requires configuration: a task stack information table, a task stack monitor, a system alarm and a task stack alarm configuration table. The method comprises the following specific steps:
task stack information table: and recording stack space information allocated to each task by the system. The stack space information includes: the task name, the starting address of the stack, the size of the stack space and the like.
Task stack alarm configuration table: and recording the alarm information of each task stack resource. The task stack resource alarm information comprises information such as task names and alarm rates.
A task stack monitor: and monitoring the use information of the task stack in real time, calculating the use rate of each task stack space, and sending the use rate and the corresponding task name to a system alarm. The task stack monitor starts to calculate from the initial address of the task stack and calculates the size of the task stack; and calculating the utilization rate of the stack by using the use size of the task stack and the total size of the task stack and sending the utilization rate of the stack to a system alarm.
The system alarm device: by receiving the task name and the task stack utilization rate sent by the task stack monitor and inquiring the alarm rate of the task stack in the task stack alarm information table, when the utilization rate of the task stack exceeds the alarm rate of the task stack, the system is alarmed.
The method for monitoring the application task stack space of the avionics system based on the configuration specifically comprises the following steps:
1. task creation
When a task is created, the name of the task, the starting address of a stack and the size of a stack space are registered in a task stack information table, and task stack resource alarm information is registered in a task stack alarm configuration table. The system fills the entire stack space entirely to 0 xEE.
2. Stack space monitoring
The method comprises the steps of obtaining a start address StartAdrr and a Size of a stack space of a task stack from a task stack information table according to a task name, searching continuous 0x10 addresses of 0xEE in a stack range by taking the StartAdr as the start address and the StartAddr-Size as an end address, and setting the addresses as AddrendIsUse. The difference between StartAddr and AddrEndIsUse is the usage size SizeIsUsPase of the task stack. If the AddreNdiSue is StartDrr-Size, the task stack is full, the stack overflows, the SizeIsUsPasce is set to Size, and step 3 is executed; if addressusage is not StartAddrr-Size, the SizeIsUsPaspace is set to StartAddrr-addressusage and step 3 is performed.
3. Calculation of Stack utilization
The task stack monitor divides the Size of the task stack by the Size of the sizeispace, which is the current usage rate RateIsUse of the task stack. The task stack monitor sends the RateIsUse and the task name to the system alarm.
4. System alarm
When the system alarm receives the utilization Rate of the task stack sent by the task stack monitor, the alarm Rate of the task stack is searched in a system alarm configuration table according to the task name, if the utilization Rate RateIsUse of the task stack is more than or equal to the alarm Rate of the task stack, the system alarm is sent to the system, and the system processes the abnormity. And if the usage Rate RateIsUse of the task stack is less than the alarm Rate of the task stack, waiting for new task stack usage information.
The invention has the beneficial effects that: the problem of system fault caused by insufficient stack space can be effectively solved, and reliability and maintainability of the avionics system are improved.
Drawings
FIG. 1 is a monitoring scheme for a task stack.
Fig. 2 is a creation flow of a task.
FIG. 3 is a task stack monitor.
Fig. 4 is a system alarm.
Detailed Description
Various tasks run in the integrated processor, each task has own stack space, and when the stack space is insufficient, a fault occurs. In order to ensure the reliability of the system, the task stack space needs to be monitored so as to process the fault in time. The invention monitors the use condition of the task stack in real time, and when the use rate of the task stack exceeds the alarm rate of the task stack, the invention alarms the system and processes the fault in time, thereby ensuring the reliability and stability of the avionic system.
The method is completed by a task stack information table, a task stack monitor, a system alarm and a task stack alarm configuration table support.
Task stack information table: and recording stack space information allocated to each task by the system. The TaskName represents the task name, and represents the end of the table when the task name is NULL; StartDrr is the starting address of the task stack; size denotes the Size of the stack in bytes. And updating the task name, the starting address of the stack and the size of the stack into a task stack information table when the task is created.
Task stack alarm configuration table: and recording the alarm value of each task stack. The TaskName represents the task name, and represents the end of the table when the task name is NULL; rate is the stack alarm rate.
A task stack monitor: and monitoring the use condition of each task stack in the task stack information table in real time, calculating the use rate, and sending the use rate of the task stack to a system alarm.
The system alarm device: by receiving the task name and the task stack utilization rate sent by the task stack monitor and inquiring the alarm rate of the task stack in the task stack alarm information table, when the utilization rate of the task stack exceeds the alarm rate of the task stack, the system is alarmed.
The specific process is as follows:
1. task creation
When a task is created, registering the name of the task, the initial address of a stack and the size of a stack space in a task stack information table, and registering task stack resource alarm information in a task stack alarm configuration table; the system fills the whole stack space to 0 xEE;
2. stack space monitoring
And acquiring a start address StartDrr and a Size of a stack space of the task stack from the task stack information table according to the task name, searching continuous 0x10 addresses of 0xEE in the range of the stack by taking StartDr as the start address and StartDrr-Size as the end, and setting the addresses as AddreNdUSUse. The difference between StartAddr and AddrEndIsUse is the usage size SizeIsUsPase of the task stack. If the AddreNdiSue is StartDrr-Size, the task stack is full, the stack overflows, the SizeIsUsPasce is set to Size, and step 3 is executed; if addressusage is not StartAddrr-Size, the SizeIsUsPaspace is set to StartAddrr-addressusage and step 3 is performed.
3. Calculation of Stack utilization
Dividing SizeIsUsPasace by the Size of the task stack by using the task stack monitor to obtain the current utilization rate RateIsUse of the task stack; the task stack monitor sends the RateIsUse and the task name to a system alarm;
4. system alarm
When the system alarm receives the utilization Rate of the task stack sent by the task stack monitor, searching the alarm Rate of the task stack in a system alarm configuration table according to the task name, and if the utilization Rate of the task stack RateIsUse is more than or equal to the alarm Rate of the task stack, alarming the system and processing the abnormity by the system; and if the usage Rate RateIsUse of the task stack is less than the alarm Rate of the task stack, waiting for new task stack usage information.
Description of the symbols:
IMP: a comprehensive task processor;
DPM: a data processing module;
CMM: a central storage module;
IOM: an input-output module;
NSM: a network switching module;
PSM: a power supply module;
the following is the table used in this example:
table 1: task stack information table
TaskName | StartAdrr | Size |
“revTask” | 0x43205010 | 4096 |
“ProTask” | 0x43203010 | 4096 |
“SendTask” | 0x43200010 | 4096 |
“NULL” | 0 | 0 |
Table 2: task stack alarm configuration table
TaskName | Rate |
“revTask” | 80 |
“ProTask” | 80 |
“SendTask” | 80 |
“NULL” | 0 |
Claims (2)
1. A monitoring method for an avionics system application task stack space is characterized in that when a system runs, a task stack monitor monitors and calculates the utilization rate of a task stack in real time; sending the utilization rate of the task stack to a system alarm; when the system alarm receives the stack utilization rate sent by the task stack monitor, searching a task stack alarm configuration table to obtain the task stack alarm rate, and sending task stack alarm information when the task stack utilization rate is higher than the task stack alarm rate;
the completion of the method requires configuration: a task stack information table, a task stack monitor, a system alarm and a task stack alarm configuration table.
2. The method for monitoring the avionics system application task stack space according to claim 1, characterized by comprising the following steps:
task stack information table: recording stack space information distributed to each task by a system; the stack space information includes: the task name, the starting address of the stack and the size of the stack space;
task stack alarm configuration table: recording the alarm information of each task stack resource; the task stack resource alarm information comprises a task name and an alarm rate;
a task stack monitor: monitoring the use information of the task stacks in real time, calculating the use rate of each task stack space, and sending the use rate and corresponding task names to a system alarm; the task stack monitor starts to calculate from the initial address of the task stack and calculates the size of the task stack; calculating the utilization rate of a stack by using the use size of the task stack and the total size of the task stack and sending the utilization rate of the stack to a system alarm;
the system alarm device: by receiving the task name and the task stack utilization rate sent by the task stack monitor and inquiring the alarm rate of the task stack in the task stack alarm information table, when the utilization rate of the task stack exceeds the alarm rate of the task stack, alarming to a system;
the method for monitoring the application task stack space of the avionics system based on the configuration specifically comprises the following steps:
(1) task creation
When a task is created, registering the name of the task, the initial address of a stack and the size of a stack space in a task stack information table, and registering task stack resource alarm information in a task stack alarm configuration table; the system fills the whole stack space to 0 xEE;
(2) monitoring of stack space
Acquiring a start address StartDrr and a Size of a stack space of a task stack from a task stack information table according to a task name, searching continuous 0x10 addresses of 0xEE in a stack range by taking the StartDr as the start address and the StartDrr-Size as an end address, and setting the addresses as AddrendIsUse; the difference value of the StartAdrr and the AddrendIsUse is the using size SizeIsUsPasce of the task stack; if the AddreNdiSue is StartDrr-Size, the task stack is full, the stack overflows, the SizeIsUsPasce is set to Size, and step 3 is executed; if the addreduses is not StartAddr-Size, setting SizeIsUserspace to StartAddrr-addreduses, and executing the step 3;
(3) calculation of Stack utilization
Dividing SizeIsUsPasace by the Size of the task stack by using the task stack monitor to obtain the current utilization rate RateIsUse of the task stack; the task stack monitor sends the RateIsUse and the task name to a system alarm;
(4) system alarm
When the system alarm receives the utilization Rate of the task stack sent by the task stack monitor, searching the alarm Rate of the task stack in a system alarm configuration table according to the task name, and if the utilization Rate of the task stack RateIsUse is more than or equal to the alarm Rate of the task stack, alarming the system and processing the abnormity by the system; and if the usage Rate RateIsUse of the task stack is less than the alarm Rate of the task stack, waiting for new task stack usage information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011427354.6A CN112667460A (en) | 2020-12-07 | 2020-12-07 | Method for monitoring avionics system application task stack space |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011427354.6A CN112667460A (en) | 2020-12-07 | 2020-12-07 | Method for monitoring avionics system application task stack space |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112667460A true CN112667460A (en) | 2021-04-16 |
Family
ID=75401568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011427354.6A Pending CN112667460A (en) | 2020-12-07 | 2020-12-07 | Method for monitoring avionics system application task stack space |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667460A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448863A (en) * | 2021-07-12 | 2021-09-28 | 度普(苏州)新能源科技有限公司 | Method and device for testing utilization rate of dynamic stack of software of electronic control unit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168460A1 (en) * | 2007-01-05 | 2008-07-10 | Samsung Electronics Co., Ltd. | Method and apparatus for preventing stack overflow in embedded system |
CN104679645A (en) * | 2013-11-28 | 2015-06-03 | 中国航空工业集团公司航空动力控制系统研究所 | Method for detecting stack space allowance on real time |
CN108268770A (en) * | 2018-02-05 | 2018-07-10 | 烽火通信科技股份有限公司 | A kind of stack overflow detecting system and method |
US20200136988A1 (en) * | 2017-06-27 | 2020-04-30 | Alibaba Group Holding Limited | Resource optimization and update method, server, and device |
-
2020
- 2020-12-07 CN CN202011427354.6A patent/CN112667460A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168460A1 (en) * | 2007-01-05 | 2008-07-10 | Samsung Electronics Co., Ltd. | Method and apparatus for preventing stack overflow in embedded system |
CN104679645A (en) * | 2013-11-28 | 2015-06-03 | 中国航空工业集团公司航空动力控制系统研究所 | Method for detecting stack space allowance on real time |
US20200136988A1 (en) * | 2017-06-27 | 2020-04-30 | Alibaba Group Holding Limited | Resource optimization and update method, server, and device |
CN108268770A (en) * | 2018-02-05 | 2018-07-10 | 烽火通信科技股份有限公司 | A kind of stack overflow detecting system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448863A (en) * | 2021-07-12 | 2021-09-28 | 度普(苏州)新能源科技有限公司 | Method and device for testing utilization rate of dynamic stack of software of electronic control unit |
CN113448863B (en) * | 2021-07-12 | 2024-02-09 | 度普(苏州)新能源科技有限公司 | Method and device for testing utilization rate of dynamic stack of electronic control unit software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101632093A (en) | Be used to use statistical analysis to come the system and method for management of performance fault | |
CN101707632A (en) | Method for dynamically monitoring performance of server cluster and alarming real-timely | |
CN111045811A (en) | Task allocation method and device, electronic equipment and storage medium | |
CN111339466A (en) | Interface management method and device, electronic equipment and readable storage medium | |
CN115344207A (en) | Data processing method and device, electronic equipment and storage medium | |
CN112667460A (en) | Method for monitoring avionics system application task stack space | |
CN113658351A (en) | Product production method and device, electronic equipment and storage medium | |
CN114154035A (en) | Data processing system for dynamic loop monitoring | |
CN109510730A (en) | Distributed system and its monitoring method, device, electronic equipment and storage medium | |
CN112437145A (en) | Server cluster management method and device and related components | |
CN111240936A (en) | Data integrity checking method and equipment | |
CN108021463B (en) | GPU fault management method based on finite-state machine | |
CN116016276A (en) | Method and device for detecting health state of server | |
CN113391611B (en) | Early warning method, device and system for power environment monitoring system | |
CN112260902A (en) | Network equipment monitoring method, device, equipment and storage medium | |
CN113965447A (en) | Online cloud diagnosis method, device, system, equipment and storage medium | |
CN110401582A (en) | Detection method, device and the storage medium of cloud computing system storage health distress | |
CN114328549B (en) | Data processing method, device, electronic equipment and storage medium | |
CN117076185B (en) | Server inspection method, device, equipment and medium | |
CN115269341B (en) | Multidimensional monitoring method and system for GPU (graphics processing Unit) virtualized resource utilization rate | |
CN115599734A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN116781538A (en) | Internet of things equipment maintenance method and device, computer equipment and storage medium | |
CN117743085A (en) | Prometheus AlertManager-based alarm archiving method and system | |
CN117493052A (en) | Abnormality processing method, abnormality processing device, electronic device and readable storage medium | |
CN116303279A (en) | Concurrent file acquisition method, concurrent file acquisition device, concurrent file acquisition equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210416 |