CN105404577A - Time monitoring method for partition operating system based on information sharing processing mechanism - Google Patents

Time monitoring method for partition operating system based on information sharing processing mechanism Download PDF

Info

Publication number
CN105404577A
CN105404577A CN201510901582.5A CN201510901582A CN105404577A CN 105404577 A CN105404577 A CN 105404577A CN 201510901582 A CN201510901582 A CN 201510901582A CN 105404577 A CN105404577 A CN 105404577A
Authority
CN
China
Prior art keywords
subregion
time
working time
operating system
empty
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.)
Granted
Application number
CN201510901582.5A
Other languages
Chinese (zh)
Other versions
CN105404577B (en
Inventor
贠海顺
李运喜
陈晓磊
梅涛
徐晓光
张东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201510901582.5A priority Critical patent/CN105404577B/en
Publication of CN105404577A publication Critical patent/CN105404577A/en
Application granted granted Critical
Publication of CN105404577B publication Critical patent/CN105404577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention belongs to the field of embedded real-time operation system development, and particularly relates to a time monitoring method for a partition operating system based on an information sharing processing mechanism. The method comprises the following steps: 1. establishing a shared data block; 2. establishing an accumulator resource; 3. calculating operating time outside a partition; 4. recording operating time outside the partition on the shared data block; and 5. carring out time monitoring on an operating entity inside the partition. According to the method provided by the present invention, time monitoring of operating time for the partition, the process inside the partition, and virtual interruption is achieved. so as to help an embedded real-time operating system developer acquire real operating information of the system from the perspective of operating time.

Description

A kind of partition operating system time monitoring method based on information sharing treatment mechanism
Technical field
The invention belongs to embedded real-time operating system development field, be specifically related to a kind of partition operating system time monitoring method based on information sharing treatment mechanism.
Background technology
Along with the development of synthesization, modular system, embedded OS, from the operating system of single plate armature, develops into the operating system of complicated multi partition structure.In partition operating system, there is the scheduling of two levels.
In the core, the time sequencing that multiple subregion distributes according to dispatch list configuration is run, and after a zone time window has run, can be switched to next partition running;
In subregion, the process in subregion adopts the dispatching algorithm based on priority, and in subregion, void interrupts the working time that also can take subregion, and whether process and empty interruption perception cannot there occurs subregion switching in its working time.Time is extremely crucial resource to Embedded Application, and embedded system development person is concerned about process in subregion and subregion, empty execution time of interrupting usually very much, needs the true operation information by time monitoring data-acquisition system.For partition operating system, due to process in subregion, empty interruption cannot the switching of subregion in perception core, brings difficulty true working time to the process in monitored partition, empty interruption.
Summary of the invention
In order to solve the problem in background technology, the invention provides a kind of partition operating system time monitoring method based on information sharing treatment mechanism making system developer can obtain process in subregion and subregion, empty time monitoring data of interrupting.
Concrete technical scheme of the present invention:
1) be that each subregion distributes a shared data block of jointly accessing for core and subregion at operating system kernel initial phase; Described shared data block is used for the subregion outer working time of each subregion, this cut-in timing of subregion;
2) in subregion initialization procedure, initialization accumulator resource; Described accumulator resource comprises the subregion accumulator for record partition running time last update time of record partitioning simultaneously, void for recording an empty interrupt run time interrupts accumulator, for recording multiple process accumulators of multiple process run time;
3) working time is calculated outside subregion;
3.1) obtain subregion and cut out the time
In kernel operating system runs, when subregion occurring and switching, for each subregion, the time that this subregion last time of kernel operating system record cuts out;
3.2) this cut-in timing of subregion is obtained
When again cutting this subregion, this cut-in timing of this subregion cut in kernel operating system record;
3.3) working time is calculated outside subregion;
The time cut out according to the subregion last time and this cut-in timing of subregion, calculate the subregion outer working time of this subregion;
4) by outer for this subregion working time, this cut-in timing of subregion is recorded in shared data block corresponding to this subregion;
5) time monitoring is carried out to run entity in subregion; Described run entity comprises process and the interior empty interruption of subregion in subregion body, subregion
The time monitoring of process in A, subregion;
In partition operating system runs, when process switches, first query steps 4) described in shared data block in subregion outer working time of recording, judge whether that there occurs subregion switches;
If subregion does not occur switch, then according to process operation starting time and process end time, difference is asked to calculate this working time of process in subregion; This working time of process in subregion is increased in process accumulator;
Switch if there occurs subregion, then to revising this working time, is deducted working time outside subregion this working time of process in subregion; This working time of process in revised subregion is increased in process accumulator;
The empty time monitoring interrupted in B, subregion;
In partition operating system runs, when being switched to empty interrupt processing, record the start time of empty interrupt processing, when exiting empty interruption, the end of record (EOR) time;
If subregion does not occur switch, calculate this empty interrupt processing time according to end time and start time;
If generation subregion switches, then interrupt start time and end time according to void, ask difference to calculate void in subregion and interrupt this working time; Interrupt being increased to this working time in empty interruption accumulator by empty in subregion;
C, the partition running time to be monitored;
In partition operating system runs, when process or empty interruption switch, check whether that subregion occurs to be switched, and switches if there occurs subregion, then calculate this working time subregion simultaneously; Specific as follows:
Update time, step 3 by the last subregion in subregion integrating instrument) described in subregion outer working time and current time calculate, formula is:
Subregion this working time=(current time)-(update time of last subregion)-(subregion outer working time)
Subregion is increased in subregion accumulator this working time;
6) step 3 is repeated) to step 5), realize the event-monitoring interrupted empty in process in subregions all in operating system, subregion and subregion.
The invention has the advantages that:
1, The inventive method achieves process in subregion, subregion and the time monitoring of empty interrupt run time, help embedded real-time operating system developer to obtain the true operation information of system from angle working time.
Accompanying drawing explanation
Fig. 1 calculates the schematic diagram of subregion outer working time.
The schematic diagram that Fig. 2 core and subregion transmit by sharing data block deadline monitor message.
In Fig. 3 subregion, in process, subregion, empty break period monitors process flow diagram.
Embodiment
The invention provides a kind of partition operating system time monitoring method based on information sharing treatment mechanism, the concrete steps of the method are:
1) be that each subregion distributes a shared data block of jointly accessing for core and subregion at operating system kernel initial phase; Described shared data block is used for the subregion outer working time of each subregion, this cut-in timing of subregion;
2) in subregion initialization procedure, initialization accumulator resource; Described accumulator resource comprises the subregion accumulator for record partition running time last update time of record partitioning simultaneously, void for recording an empty interrupt run time interrupts accumulator, for recording multiple process accumulators of multiple process run time;
3) working time is calculated outside subregion;
3.1) obtain subregion and cut out the time
In kernel operating system runs, when subregion occurring and switching, for each subregion, the time that this subregion last time of kernel operating system record cuts out;
3.2) this cut-in timing of subregion is obtained
When again cutting this subregion, this cut-in timing of this subregion cut in kernel operating system record;
3.3) working time is calculated outside subregion;
The time cut out according to the subregion last time and this cut-in timing of subregion, calculate the subregion outer working time of this subregion;
4) by outer for this subregion working time, this cut-in timing of subregion is recorded in shared data block corresponding to this subregion; Be set to more new state, allow the process in subregion or empty interruption can know the information that subregion switches.The subregion shared in data block can add up outer working time, after run entity in subregion (process or empty interruption) reads these data, and the data dump that can will record in shared data block.
5) time monitoring is carried out to run entity in subregion; Described run entity comprises process and the interior empty interruption of subregion in subregion body, subregion
The time monitoring of process in A, subregion;
In partition operating system runs, when process switches, first query steps 4) described in shared data block in subregion outer working time of recording, judge whether that there occurs subregion switches;
If subregion does not occur switch, then according to process operation starting time and process end time, difference is asked to calculate this working time of process in subregion; This working time of process in subregion is increased in process accumulator;
Switch if there occurs subregion, then to revising this working time, is deducted working time outside subregion this working time of process in subregion; This working time of process in revised subregion is increased in process accumulator;
The empty time monitoring interrupted in B, subregion;
In partition operating system runs, when being switched to empty interrupt processing, record the start time of empty interrupt processing, when exiting empty interruption, the end of record (EOR) time;
If subregion does not occur switch, calculate this empty interrupt processing time according to end time and start time;
If generation subregion switches, then interrupt start time and end time according to void, ask difference to calculate void in subregion and interrupt this working time; Interrupt being increased to this working time in empty interruption accumulator by empty in subregion;
C, the partition running time to be monitored;
In partition operating system runs, when process or empty interruption switch, check whether that subregion occurs to be switched, and switches if there occurs subregion, then calculate this working time subregion simultaneously; Specific as follows:
Update time, step 3 by the last subregion in subregion integrating instrument) described in subregion outer working time and current time calculate, formula is:
Subregion this working time=(current time)-(update time of last subregion)-(subregion outer working time)
Subregion is increased in subregion accumulator this working time.
6) step 3 is repeated) to step 5), realize the event-monitoring interrupted empty in process in subregions all in operating system, subregion and subregion.

Claims (1)

1., based on a partition operating system time monitoring method for information sharing treatment mechanism, it is characterized in that, comprise the following steps:
1) be that each subregion distributes a shared data block of jointly accessing for core and subregion at operating system kernel initial phase; Described shared data block is used for the subregion outer working time of each subregion, this cut-in timing of subregion;
2) in subregion initialization procedure, initialization accumulator resource; Described accumulator resource comprises the subregion accumulator for record partition running time last update time of record partitioning simultaneously, void for recording an empty interrupt run time interrupts accumulator, for recording multiple process accumulators of multiple process run time;
3) working time is calculated outside subregion;
3.1) obtain subregion and cut out the time
In kernel operating system runs, when subregion occurring and switching, for each subregion, the time that this subregion last time of kernel operating system record cuts out;
3.2) this cut-in timing of subregion is obtained
When again cutting this subregion, this cut-in timing of this subregion cut in kernel operating system record;
3.3) working time is calculated outside subregion;
The time cut out according to the subregion last time and this cut-in timing of subregion, calculate the subregion outer working time of this subregion;
4) by outer for this subregion working time, this cut-in timing of subregion is recorded in shared data block corresponding to this subregion;
5) time monitoring is carried out to run entity in subregion; Described run entity comprises process and the interior empty interruption of subregion in subregion body, subregion
The time monitoring of process in A, subregion;
In partition operating system runs, when process switches, first query steps 4) described in shared data block in subregion outer working time of recording, judge whether that there occurs subregion switches;
If subregion does not occur switch, then according to process operation starting time and process end time, difference is asked to calculate this working time of process in subregion; This working time of process in subregion is increased in process accumulator;
Switch if there occurs subregion, then to revising this working time, is deducted working time outside subregion this working time of process in subregion; This working time of process in revised subregion is increased in process accumulator;
The empty time monitoring interrupted in B, subregion;
In partition operating system runs, when being switched to empty interrupt processing, record the start time of empty interrupt processing, when exiting empty interruption, the end of record (EOR) time;
If subregion does not occur switch, calculate this empty interrupt processing time according to end time and start time;
If generation subregion switches, then interrupt start time and end time according to void, ask difference to calculate void in subregion and interrupt this working time; Interrupt being increased to this working time in empty interruption accumulator by empty in subregion;
C, the partition running time to be monitored;
In partition operating system runs, when process or empty interruption switch, check whether that subregion occurs to be switched, and switches if there occurs subregion, then calculate this working time subregion simultaneously; Specific as follows:
Update time, step 3 by the last subregion in subregion integrating instrument) described in subregion outer working time and current time calculate, formula is:
Subregion this working time=(current time)-(update time of last subregion)-(subregion outer working time)
Subregion is increased in subregion accumulator this working time;
6) step 3 is repeated) to step 5), realize the event-monitoring interrupted empty in process in subregions all in operating system, subregion and subregion.
CN201510901582.5A 2015-12-08 2015-12-08 A kind of partition operating system time monitoring method based on information sharing treatment mechanism Active CN105404577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510901582.5A CN105404577B (en) 2015-12-08 2015-12-08 A kind of partition operating system time monitoring method based on information sharing treatment mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510901582.5A CN105404577B (en) 2015-12-08 2015-12-08 A kind of partition operating system time monitoring method based on information sharing treatment mechanism

Publications (2)

Publication Number Publication Date
CN105404577A true CN105404577A (en) 2016-03-16
CN105404577B CN105404577B (en) 2017-11-28

Family

ID=55470075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510901582.5A Active CN105404577B (en) 2015-12-08 2015-12-08 A kind of partition operating system time monitoring method based on information sharing treatment mechanism

Country Status (1)

Country Link
CN (1) CN105404577B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776272A (en) * 2016-11-11 2017-05-31 西北工业大学 Embedded system real-time performance testing method
CN109542610A (en) * 2018-12-04 2019-03-29 中国航空工业集团公司西安航空计算技术研究所 A kind of multi partition operating system void interrupt criteria component realization method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009043244A (en) * 2002-09-24 2009-02-26 Toshiba Corp Network information terminal for monitoring and measurement
CN102799512A (en) * 2012-07-04 2012-11-28 南京邮电大学 Virtual machine monitoring method in vector-autoregression-based cloud computing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009043244A (en) * 2002-09-24 2009-02-26 Toshiba Corp Network information terminal for monitoring and measurement
CN102799512A (en) * 2012-07-04 2012-11-28 南京邮电大学 Virtual machine monitoring method in vector-autoregression-based cloud computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李运喜 等: "时间分区的设计与实现", 《航空计算学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776272A (en) * 2016-11-11 2017-05-31 西北工业大学 Embedded system real-time performance testing method
CN106776272B (en) * 2016-11-11 2019-11-05 西北工业大学 Embedded system real-time performance testing method
CN109542610A (en) * 2018-12-04 2019-03-29 中国航空工业集团公司西安航空计算技术研究所 A kind of multi partition operating system void interrupt criteria component realization method
CN109542610B (en) * 2018-12-04 2023-06-30 中国航空工业集团公司西安航空计算技术研究所 Method for realizing virtual interrupt standard component of multi-partition operating system

Also Published As

Publication number Publication date
CN105404577B (en) 2017-11-28

Similar Documents

Publication Publication Date Title
EP2341411A1 (en) Time synchronization method and system for multicore system
TW201535266A (en) Resource adjustment methods and systems for virtual machines
EP2894827A1 (en) Method, apparatus, and system for managing migration of virtual machine
US9323553B2 (en) Reducing virtual machine suspension time in checkpoint system
US8813089B2 (en) Managing resources for maintenance tasks in computing systems
CN104360923A (en) Monitoring method and monitoring system for batch application process
CN105404577A (en) Time monitoring method for partition operating system based on information sharing processing mechanism
CN108540341B (en) Resource monitoring method and device
JP2013161149A (en) Information processing system, virtual machine management program and virtual machine management method
CN110263093B (en) Data synchronization method, device, node, cluster and storage medium
CN101109960A (en) Coal pushing and charging car automatic aligning control method based on machine vision technology
CN103678024A (en) Fault tolerant system and method for performing fault tolerant
CN103561055A (en) Web application automatic elastic extension method under cloud computing environment based on sessions
CN103337266A (en) Back-up disk function analytic method of nuclear power plant using digital man-machine interface
JP2014164568A (en) Terminal device, distributed processing method, distributed processing program, and distributed processing system
WO2024077881A1 (en) Scheduling method and system for neural network training, and computer-readable storage medium
CN106873918A (en) Storage method to set up and device in a kind of virtualization system
US10956238B2 (en) Programmable controller, management device, and control system
CN103812911A (en) Method and system for controlling and utilizing service resources of PaaS (platform as a service) cloud computing platform
CN104794548A (en) ARIMA (Autoregressive integrated moving average) model load prediction based parallelization computing method
CN105812159B (en) A kind of cloud platform monitoring alarm method
WO2015039518A1 (en) Method and device for controlling rrc connection state between ue and network side
US8505020B2 (en) Computer workload migration using processor pooling
CN107005434B (en) Method, device and equipment for synchronizing Virtual Network Function (VNF) state
CN104216813B (en) A kind of monitoring method and device from nuclear state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant