MONITORING OF A PROCESSING SYSTEM
20170262325 · 2017-09-14
Inventors
Cpc classification
G06F11/3055
PHYSICS
G06F9/485
PHYSICS
G06F11/3024
PHYSICS
International classification
G06F11/34
PHYSICS
Abstract
A processing system is configured to dynamically carry out processes. A method for monitoring the processing system includes steps of determining a number of processes running on the processing system; of determining a maximum expected number of processes; of determining that more processes than expected are running; and of deactivating the processing system.
Claims
1. A method for monitoring a processing system which is configured to dynamically carry out processes, the method comprising: determining a number of processes running on the processing system; determining a maximum expected number of processes; determining that more processes than expected are running; and deactivating the processing system.
2. The method as recited in claim 1, further comprising: determining system rights of the running processes; comparing the determined system rights with predetermined system rights; determining that one of the running processes has obtained extended system rights; and deactivating processing system.
3. The method as recited in claim 1, wherein the deactivation includes the resetting of the processing system.
4. The method as recited in claim 3, wherein the resetting includes carrying out a software resetting request.
5. The method as recited in claim 3, wherein the processing system includes a processing unit and a monitoring circuit, and the deactivation is controlled by the monitoring circuit.
6. The method as recited in claim 1, wherein the method is carried out periodically.
7. The method as recited in claim 5, wherein the monitoring circuit includes a watchdog timer, which, when running, deactivates the processing system, the timer being set to a predetermined value if the processing system is not to be deactivated.
8. The method as recited in claim 1, wherein the processing system includes a communication interface, and the deactivation includes a switching-off of the communication interface.
9. The method as recited in claim 1, wherein one of the processes is assigned multiple lightweight processes and the processing system is deactivated if a number of lightweight processes exceeds an expected maximum number of lightweight processes.
10. A non-transitory computer readable storage medium on which is stored program code for monitoring a processing system which is configured to dynamically carry out processes, the program code, when executed by a processing unit, causing the processing unit to perform: determining a number of processes running on the processing system; determining a maximum expected number of processes; determining that more processes than expected are running; and deactivating the processing system.
11. A processing system configured to carry out dynamic processes, the processing system configured to monitor the processes and to determine a number of processes running on the processing system, determine a maximum expected number of processes, determine that more processes than expected are running, and deactivate the processing system.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The present invention is described in greater detail below with reference to the figures.
[0024]
[0025]
[0026]
[0027]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0028]
[0029] Processing system 100 is configured to dynamically carry out processes 135. Processes 135 may be dynamically started and terminated, whereby the starting may take place through the operating system 130, through another process 135 or on the basis of, for example, a chronological event. Each process 135 may include one or multiple lightweight processes (threads) 140. In this case, all threads 140 of a process 135 normally run as user threads in the same environment and with the same operating means that are assigned to higher-level process 135.
[0030] A process 135 may carry out, in particular, a control task, whereby a surroundings variable may be scanned with the aid of a sensor 110, the result may be processed and an actuator, which normally directly or indirectly retroacts on sensor 110, may be actuated with the aid of communication interface 115.
[0031] In order to enable processes 135 to be carried out on processing system 100, which were not yet known at a point in time of the conception of processing system 100, have changed since the conception (refined) or were only later installed on processing system 100, it is provided not only to use an operating system 130, which allows dynamic processes 135 to be carried out, but also to ensure that an excessive number of processes 135 does not run on processing system 100.
[0032]
[0033] It is provided to use monitoring function 205 to obtain and to analyze information about running processes 135 or threads 140 with the aid of a method 215. If an anomaly is detected in the process, a measure may be initiated, which may include sending a signal 220, which ensures that preferably all processes 135 running on processing system 100 are preferably immediately terminated, inhibited or their communication, in particular, to an actuator, is disrupted.
[0034]
[0035] On the other hand, both functionalities may also be effectuated independently of one another via watchdog timer 305. In this case, it is of particular advantage that watchdog timer 305 may be activated to initiate the described measure if a complementary signal 220, which indicates that no anomaly was detected, is absent for longer than a predetermined period. Method 215 is carried out preferably periodically, and whenever no anomaly has been determined, watchdog timer 305 is set to a time which corresponds to or exceeds the period duration of the implementation of method 215. Method 215 may be carried out every second, for example, and watchdog timer 305 may be set to a runtime of 1 second whenever no anomaly has been detected. If method 215 cannot be carried out, for example, because its implementation takes longer than one second, or important system resources of processing system 100 are not available, watchdog timer 305 then runs and causes the disruption of communication via communication interface 115 or a resetting of processing system 100 or of control unit 105 or even of just one of processing units 125.
[0036]
[0037] In a first step 405, a maximum number of processes 135 is determined, of which it is expected that they run (simultaneously) on processing system 100. This maximum number may be permanently predefined and, for example, changed only if a new process 135 is installed or upgraded on processing system 100. In another specific embodiment, by sending a corresponding message to operating system 130 before the start of a process 135, the maximum number of processes 135 may also be dynamic in order to adapt the maximum number of processes 135 accordingly.
[0038] In a step 410, the instantaneous number of processes 135 is determined. For this purpose, monitoring function 205, in particular, may be used. In another specific embodiment, additional information may also be queried via processes 135, in particular, the present system authorizations of running processes 135.
[0039] In a step 415, the information obtained is then examined as to whether an irregularity is present. It may be checked, in particular, whether the instantaneous number of processes 135 exceeds the determined maximum number of processes 135. If this is the case, method 400 may continue with a step 435, which is described below in greater detail.
[0040] Otherwise, predetermined system rights of one or multiple processes 135 may be determined in a step 420. In a step 425, information about system rights of processes 135 on processing system 100 may then be determined, similar to step 410. In a step 430, the predetermined and the actual system rights are compared with one another and step 435 may be activated if the actual system rights of a process 135 exceed the predetermined system rights. Otherwise, method 400 may return to and undergo step 405 again.
[0041] In step 435, a communication with the aid of communication interface 115 is optionally prevented. For this purpose, communication interface 115 may be switched off or a part of operating system 130 required for using communication interface 115 may refuse access.
[0042] In addition or alternatively, a resetting of processing system 100 may be prompted in a step 440. Steps 435 and 440 may be prompted, independently of one another, in each case via software or via hardware, in particular, with the aid of watchdog timer 305, as explained above.