Operating system failure testing method and device
An operating system and fault detection technology, which is applied in the field of operating systems, can solve problems such as operating system reliability reaching 99.999% or 99.9999%, unfavorable detection time, etc., and achieve the effect of reducing fault discovery time and improving speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] In this embodiment, the number of instructions and the execution time that have been executed when the CPU executes the task describe the occupation of the CPU by the task, and two of the performance statistics registers of the CPU are used as InstCounter (instruction register) and CycleCounter (clock cycle register). ).
[0056] see figure 1 , the embodiment of the present invention provides a method for operating system failure detection, specifically including:
[0057] S101: Preset an upper threshold of the number of instructions and an upper threshold of execution time.
[0058] For different operating systems, the number of instructions required by the CPU to execute tasks and the determination of the execution time are different. For a system based on time slice scheduling, the time length of the time slice is fixed, for example, 100ms. The length of the time slice is taken as upper threshold of execution time;
[0059] The number of instructions required by t...
Embodiment 2
[0082] In this embodiment, the CPU occupation of the task is described by the number of instructions executed by the CPU when executing the task, and one of the performance statistics registers of the CPU is used as an instruction register to record the number of instructions continuously executed by the task.
[0083] see Figure 4 , the embodiment of the present invention also provides a method for operating system failure detection, specifically including:
[0084] S201: Preset the upper threshold of the number of instructions.
[0085] In this embodiment, the number of instructions required by the CPU to execute a task with a higher priority or a task with a heavier load is preset as the upper threshold of the number of instructions, and the calculation method for the number of instructions required by the CPU to execute the task is the same as that in Embodiment 1. The above are the same and will not be repeated here.
[0086] S202: When a task is started to be executed...
Embodiment 3
[0095] see Figure 5 , the embodiment of the present invention provides a device for operating system failure detection, including a register, the register is used to accumulate the CPU usage of the task when the task is started to be executed in the operating system; when the cumulative usage of the register reaches When the overflow value of the register generates an internal interrupt signal, it is determined that the operating system is faulty.
[0096] Further, the above-mentioned registers may specifically include:
[0097] The setting module is used to preset the upper threshold and initial value of the number of instructions, and the initial value is the difference obtained by subtracting the upper threshold of the number of instructions from the overflow value of the register;
[0098] The recording module is used to increase and record the number of instructions continuously executed by the task from the initial value preset by the setting module when the task is st...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com