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
[0025] 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). ).
[0026] Referring to FIG. 1, an embodiment of the present invention provides a method for operating system failure detection, which specifically includes:
[0027] S101: Preset an upper threshold of the number of instructions and an upper threshold of execution time.
[0028] 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;
[0029] The number of instructions requ...
Embodiment 2
[0052] 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.
[0053] Referring to FIG. 4, the embodiment of the present invention also provides a method for operating system failure detection, which specifically includes:
[0054] S201: Preset the upper threshold of the number of instructions.
[0055] 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.
[0056] S202: When a task is started to be...
Embodiment 3
[0065] Referring to Fig. 5, an embodiment of the present invention provides a device for operating system failure detection, including a register, which is used to accumulate the CPU usage of the task when the task is started in the operating system; When the occupancy reaches the overflow value of the register and an internal interrupt signal is generated, it is determined that the operating system is faulty.
[0066] Further, the above-mentioned registers may specifically include:
[0067] 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;
[0068] 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 started to be executed in the operating sy...
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